recodeIntoDominant | R Documentation |
Recode SNP genotypes from additive to dominant.
recodeIntoDominant(X, simplify.imputed = FALSE)
X |
matrix of bi-allelic SNP genotypes encoded in allele doses in 0,1,2, with genotypes in rows and SNPs in columns; missing values should be encoded as NA |
simplify.imputed |
if TRUE, imputed genotypes will be considered as homozygotes if less than 0.66 or more than 1.33, and heterozygotes otherwise |
matrix with genotypes in 0,1
Timothee Flutre
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.