aio | R Documentation |
Phasing of a half-sib family group.
aio(genotypeMatrix, bmh_forwardVectorSize = 30, bmh_excludeFP = TRUE,
bmh_nsap = 3, output = "phase")
genotypeMatrix |
|
bmh_forwardVectorSize |
|
bmh_excludeFP |
|
bmh_nsap |
|
output |
|
This function calls the bmh
, ssp
and phf
functions.
Returns a list of matrices. The first element (phasedHalfsibs) is a matrix with two rows (phased haplotypes) per individual (first paternal and second maternal). Data in format 0 (A), 1 (B) and 9 (unphased or missing).
The second (sireHaplotype) and third (blockStructure) elements are the same as the output of ssp
and bmh
.
Only this function needs to be called to phase a half-sib family. The genotype's matrix must contain individuals from only one half-sib family and one ordered chromosome.
bmh
, ssp
and phf
genotype <- matrix(c( # Define a Half-sib Genotype Matrix
2,1,0, # Individual 1
2,0,0, # Individual 2
0,0,2 # Individual 3
), byrow = TRUE, ncol = 3) # There are 3 individulas with three SNPs
aio(genotype) # The genotypes must include only one half-sib family and one chromosome
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.