Learn R Programming

pergola (version 1.0)

calcRec: Recombination frequencies computation

Description

Calculate recombination frequencies for a whole matrix

Usage

calcRec(input, ploidy, sparse = FALSE, ...)

Arguments

input
Matrix of genotypes. Rows represent markers. Columns represent samples.
ploidy
Ploidy level of the organism.
sparse
Logical, if the matrix is a sparse matrix or not.
...
arguments are forwarded to pairwRF.

Value

Matrix of pairwise recombination frequencies.

Examples

Run this code
data(simTetra)
simTetraGen <- bases2genotypes(simTetra, ploidy = 4)
calcRec(simTetraGen, 4)

Run the code above in your browser using DataLab