pair.result.ld.snp: Function to calculate the pairwise D', $r^2$, LOD of
a pair of specified SNPs
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
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.
References
Clayton, D.G. and Leung, Hin-Tak (2007) An R package for analysis of
whole-genome association studies.
Human Heredity64:45-51.
GSL (GNU Scientific Library) http://www.gnu.org/software/gsl/