bmh {hsphase} | R Documentation |
Block Partitioning
Description
Identifies the block structure (chromosome segments) in the half-sib family that each individual inherited from its sire.
Usage
bmh(GenotypeMatrix, forwardVectorSize = 30, excludeFP = TRUE, nsap = 3)
Arguments
GenotypeMatrix |
|
forwardVectorSize |
|
excludeFP |
|
nsap |
|
Value
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.
Note
The genotype's matrix must contain individuals from only one half-sib family and one ordered chromosome.
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)
(result <- bmh(genotype))