recombinations {hsphase} | R Documentation |
Counts the number of recombinations for each individual.
recombinations(blockMatrix)
blockMatrix |
|
Returns a vector of recombinations. The number of elements in this vector is equal to the number of individuals, i.e. each element holds the number of recombinations identified for each sample.
genotype <- matrix(c(
2,1,0,0,
2,0,2,2,
0,0,2,2,
0,2,0,0
), byrow = TRUE, ncol = 4)
recombinations(bmh(genotype))