write.plink {synbreed} | R Documentation |
Create input files and corresponding script for PLINK (Purcell et al. 2007) to estimate pairwise LD through function pairwiseLD
.
write.plink(gp, wdir = getwd(), prefix = paste(substitute(gp)), ld.threshold = 0, type = c("data.frame", "matrix"), ld.window=99999)
gp |
|
wdir |
|
prefix |
|
ld.threshold |
|
type |
|
ld.window |
|
No value returned. Files prefix.map
, prefix.ped
and prefixPlinkScript.txt
are created in the working directory
Valentin Wimmer
Purcell S, Neale B, Todd-Brown K, Thomas L, Ferreira MAR, Bender D, Maller J, Sklar P, de Bakker PIW, Daly MJ & Sham PC (2007) PLINK: a toolset for whole-genome association and population-based linkage analysis. American Journal of Human Genetics, 81.
## Not run: library(synbreedData) write.plink(maize,type="data.frame") ## End(Not run)