snpm2mapLD {GGtools} | R Documentation |
prepare input to mapLD function for haplotype block identification
snpm2mapLD(x, chrnum, runMAP=TRUE, ...)
x |
snp.matrix instance |
chrnum |
chromosome number |
runMAP |
logical indicating whether or not to run mapLD |
... |
additional arguments to mapLD |
sets up a data frame suitable for mapLD, and will invoke with appropriate arguments identifying columns for alleles and other identifiers if runMAP is TRUE (default).
smtest is a small snp.matrix instance
a list with element struc holding the data frame, and mapLD output if requested. Note that mapLD writes an eps file to disk *sigh*.
Vince Carey <stvjc@channing.harvard.edu>
data(smtest) ss = snpm2mapLD(smtest, chrnum=20, runMAP=FALSE) ss # you could run mapLD on ss[[1]]