ssp {hsphase} | R Documentation |
Sire Imputation and Phasing
Description
Infer (impute) and phase sire's genotype based on the block structure matrix (recombination blocks) and homozygous sites of the half-sib genotype matrix.
Usage
ssp(blockMatrix, genotypeMatrix)
Arguments
blockMatrix |
|
genotypeMatrix |
|
Value
Returns a matrix (Imputed Sire) with two rows one for each haplotype of the sire (columns are SNP in the order of the genotype matrix). Alleles are coded as 0 (A) and 1 (B). Alleles that could not be imputed are coded as 9.
See Also
Examples
genotype <- matrix(c(
0,2,1,1,1,
2,0,1,2,2,
2,2,1,0,2,
2,2,1,1,1,
0,0,2,1,0), ncol = 5, byrow = TRUE) # each row contains the SNP of individuals
(result <- ssp(bmh(genotype), genotype))
[Package hsphase version 2.0.3 Index]