Description Usage Arguments Value Examples
Converts the encoding from additive to another one.
1 | 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
1 2 | X <- as(minigwas[["genotypes"]], "numeric")
martini:::encode_gwas(X, "recessive")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.