Learn R Programming

hsphase (version 1.2.4)

recombinations: 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

Run this code
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))

Run the code above in your browser using DataLab