NumRecomEvents: calculate the number of recombination events

Description Usage Arguments Details Value See Also Examples

Description

As the parental genotypes we assumed, this function can calculate how many recombination events would be needed to produce genotypes of RILs.

Usage

1
NumRecomEvents(baseData, allele.matrix, genoData = NULL)

Arguments

baseData

matirx of SNP

allele.matrix

matrix: alleles of parental genotypes

genoData

matirx of SNP which has been formatted.

Details

We wrote core code for calculating the number of recombination events in C to improve computational speed.

Value

R

the number of recombination events

See Also

localMPR

Examples

1
2
3
4
5
set.seed(123)
data(myBaseData)
allele.random <- base2Allele(myBaseData)
NumRecomEvents(myBaseData,allele.random)
# 162

MPR.genotyping documentation built on May 2, 2019, 3:26 a.m.