encode_gwas {martini} | R Documentation |
Converts the encoding from additive to another one.
encode_gwas(X, encoding)
X |
Genotype matrix with SNPs encoded as 0 for major homozygous, 1 for heterozygous and 2 for minor homozygous. |
encoding |
Genetic model assumed: additive, recessive, dominant or codominant. |
A genotype matrix
X <- as(minigwas[["genotypes"]], "numeric") martini:::encode_gwas(X, "recessive")