recodeData: Recode a Genotype Data Matrix.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function recodes a genotype data matrix in a format as expected from eqtl or mdr.

Usage

1

Arguments

X

Matrix with genotype information.

Details

This function recodes the values given in the data matrix X (typically AA, AB and BB) and substitutes it with 0,1 and 2. Missing values are encoded as 3.

Value

A matrix with same dimension as the input, but in 0,1,2 encoding.

Author(s)

Daniel Fischer

See Also

eQTL , mdr

Examples

1
2
3
# genotData <- read.table("MDR_format_ready_BCR.txt",header=T)

# temp <- recodeData(genotData)


Search within the GenomicTools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.