calcRec: Recombination frequencies computation

Description Usage Arguments Value Examples

View source: R/recombination.R

Description

Calculate recombination frequencies for a whole matrix

Usage

1
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

1
2
3
data(simTetra)
simTetraGen <- basesToGenotypes(simTetra, ploidy = 4)
calcRec(simTetraGen, 4)

grafab/pergola documentation built on May 17, 2019, 8:18 a.m.