Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

read.mach

Read genotypes imputed by the MACH program


Description

This routine reads imputed genotypes generated by the MACH program. With the --mle and --mldetails options in force this program generates a .mlprob output file which contains probabilities of assignments. These are stored as uncertain genotype calls in a SnpMatrix object

Usage

read.mach(file, colnames = NULL, nrow = NULL)

Arguments

file

The name of the .mlprob file. This may be gzipped

colnames

The column names. If absent, names are generated as SNP1, SNP2, etc.

nrow

If known the number of rows of data on the file. If not supplied, it is determined by a preliminary pass through the data

Details

No routine is explicitly available for data on chromosome X. Such data should first be read as a SnpMatrix and then coerced to an XSnpMatrix object

Value

An object of class SnpMatrix

Author(s)

David Clayton dc208@cam.ac.uk

See Also

Examples

##---- No example available yet

snpStats

SnpMatrix and XSnpMatrix classes and methods

v1.40.0
GPL-3
Authors
David Clayton <dc208@cam.ac.uk>
Initial release
2019-10-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.