read.tped.recode-deprecated: Read .tped

read.tped.recode-deprecatedR Documentation

Read .tped

Description

Reads a .tped format genotype matrix and returns the R object needed by lfa.

Usage

read.tped.recode(tped.filename, buffer.size=5e8)

Arguments

tped.filename

Path to your .tped file after tranposing and recoding.

buffer.size

Number of characters to keep in the buffer

Details

Use –transpose and –recode12 on your plink formatted genotypes to generate the proper tped file. This is a pretty terrible function that uses a growing matrix for the genotypes so it is to your benefit to have as large a buffer.size as possible.

Value

genotype matrix with elements 0, 1, 2, and NA.

See Also

lfa-deprecated()

Examples

#assuming you have a .tped file in the right directory
x = NULL
## Not run: x = read.tped.recode('file.tped')

StoreyLab/lfa documentation built on March 7, 2024, 9:59 p.m.