calcSarf: Calculates the SARF value of given input.

Description Usage Arguments Value References Examples

View source: R/sort.R

Description

The sum of adjecent recombination frequency (SARF) is a measure of how well the marker order is. This function calculates it for a given matrix of pairwise recombination frequencies and marker order. The SARF criterion can be extended to a neighborhood > 1.

Usage

1
calcSarf(rf, ord = 1:(ncol(rf)), n = 1)

Arguments

rf

Matrix of pairwise recombination frequencies.

ord

Vector with marker order.

n

Number of neighbors, which are included in the calculation.

Value

Single numeric value, which is the result of the SARF calculation.

References

Liu, B.H. 1998, Statistical genomics: linkage, mapping, and QTL analysis.

Examples

1
2
3
4
5
6
7
8
data(simTetra)
simTetrageno <- bases2genotypes(simTetra, 4)
rfMat <- calcRec(simTetrageno, 4)
split <- splitChr(rfMat, nchr = 7)
split <- sortLeafs(rfMat, split)
calcSarf(rfMat, split$order, n = 1)
calcSarf(rfMat, split$order, n = 2)
calcSarf(rfMat, split$order, n = 3)


pergola documentation built on May 19, 2017, 2:06 p.m.
Search within the pergola package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.