read.snpdata.minimac: Read genotype dosages in the format output by minimac

Description Usage Arguments Details Value Author(s) References

Description

Reads snp coding information and genotype data from paired .info.gz and .dose.gz 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.

Usage

1
2
read.snpdata.minimac(fileroot, tol.af = 0.01, phenotypes = NULL,
                  isuffix = ".info.gz", dsuffix = ".dose.gz")

Arguments

fileroot

a filename root to which suffixes (my default .info.gz and .dose.gz) will be appended.

tol.af

a tolerence for checking allele frequencies between the two files read.

phenotypes

if not NULL, a data frame of phenotypes to be merged with the genotypes; must contain a column called MACHID which is used to match against the first column of the mldose file.

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

Details

This function is just a wrapper for read.snpdata.mach with different default isuffix and dsuffix arguments.

Value

Returns a list with snpinfo and data slots, see snpdata.

Author(s)

Toby Johnson Toby.x.Johnson@gsk.com

References

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.


gtx documentation built on May 2, 2019, 5:08 a.m.