Learn R Programming

MPR.genotyping (version 0.8)

NumRecomEvents: calculate the number of recombination events

Description

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

Usage

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.

Value

R

the number of recombination events

Details

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

See Also

localMPR

Examples

Run this code
# NOT RUN {
set.seed(123)
data(myBaseData)
allele.random <- base2Allele(myBaseData)
NumRecomEvents(myBaseData,allele.random)
# 162
# }

Run the code above in your browser using DataLab