| recodeData | R Documentation |
This function recodes a genotype data matrix in a format as expected from eqtl or mdr.
recodeData(X)
X |
Matrix with genotype information. |
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.
A matrix with same dimension as the input, but in 0,1,2 encoding.
Daniel Fischer
eQTL , mdr
# genotData <- read.table("MDR_format_ready_BCR.txt",header=T)
# temp <- recodeData(genotData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.