pair.result.ld.snp: Function to calculate the pairwise D', $r^2$, LOD of a pair...

Description Usage Arguments Value Note Author(s) References See Also Examples

View source: R/ld.snp.R

Description

pair.result.ld.snp.Rd calculates the pairwise D', $r^2$, LOD of a pair of specified SNPs in a snp.matrix object. This is used mainly for debugging.

Usage

1
pair.result.ld.snp(snpdata, loc.snpA, loc.snpB)

Arguments

snpdata

An object of snp.matrix class with M samples of N snps

loc.snpA

index of the first snp; should be between 1 and N

loc.snpB

index of the second snp; should be between 1 and N

Value

Returns nothing. Results are displayed in stdout/console.

Note

Not really recommended for daily usage; the result isn't saved anywhere and this routine is primarily for debugging the details and correctness of the calculation.

Author(s)

Hin-Tak Leung htl10@users.sourceforge.net

References

Clayton, D.G. and Leung, Hin-Tak (2007) An R package for analysis of whole-genome association studies. Human Heredity 64:45-51.
GSL (GNU Scientific Library) http://www.gnu.org/software/gsl/

See Also

snp.matrix-class

Examples

1
2

chopsticks documentation built on Nov. 8, 2020, 7:51 p.m.