bmh | R Documentation |
Identifies the block structure (chromosome segments) in the half-sib family that each individual inherited from its sire.
bmh(GenotypeMatrix, forwardVectorSize = 30, excludeFP = TRUE, nsap = 3)
GenotypeMatrix |
|
forwardVectorSize |
|
excludeFP |
|
nsap |
|
Returns a matrix of the blocking structure that contains 1s, 2s and 0s. 1s and 2s are the two sire strands. The choice of strand is arbitrary for each chromosome and not consistent across chromosomes. 0s indicate regions of unknown origin.
The genotype's matrix must contain individuals from only one half-sib family and one ordered chromosome.
ssp
, phf
, aio
and imageplot
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)
(result <- bmh(genotype))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.