recombinations: Recombination Number

View source: R/hsphase.R

recombinationsR Documentation

Recombination Number

Description

Counts the number of recombinations for each individual.

Usage

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

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 29, 2024, 2:20 a.m.