recombinations: Recombination Number

Description Usage Arguments Value See Also Examples

Description

Counts the number of recombinations for each individual.

Usage

1
recombinations(blockMatrix)

Arguments

blockMatrix

matrix block structure (Output of bmh)

Value

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.

See Also

bmh

Examples

1
2
3
4
5
6
7
8
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))             

hsphase documentation built on May 2, 2019, 3:44 p.m.