Description Usage Arguments Details Value Author(s) References
Reads snp coding information and genotype data from paired
.mlinfo
and .mldose
files, as generated by the MACH and
minimac genotype imputation programs, and returns the data in a
standard format (see snpdata) that can be used by other
functions in this package.
1 2 | read.snpdata.mach(fileroot, tol.af = 0.01, phenotypes = NULL,
isuffix = ".mlinfo", dsuffix = ".mldose")
|
fileroot |
a filename root to which suffixes (my default |
tol.af |
a tolerence for checking allele frequencies between the two files read. |
phenotypes |
if not |
isuffix |
a suffix to add to the filename root to make the name of the info file |
dsuffix |
a suffix to add to the filename root to make the name of the dosage file |
This function will (just) work as is with HapMap imputed single chromosomes and 4000 individuals. Need to comment on how to extract large numbers of SNPs before feeding to R.
If isuffix or dsuffix end in .gz extensions, the files will be decompressed on the fly.
Returns a list with snpinfo and data slots, see snpdata.
Toby Johnson Toby.x.Johnson@gsk.com
Information about the MACH and minimac programs for genotype imputation, including their output formats, can be found at http://www.sph.umich.edu/csg/abecasis/MACH.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.