Description Usage Arguments Details Value Author(s) Examples
Transform genotypes from two-letter coding to numeric coding.
1 | transform_geno(geno, sep = "/", check = TRUE)
|
geno |
A character matrix containing the genotypes. |
sep |
A character string use to split the genotypes in |
check |
Should checks be performed? |
A genotype must consist of a sequence of three characters,
where the mittle character is the seperator as specified in
sep
. Recoding is performed based on the major allele at the
respective locus, i.e., if for instance the major allele is "A",
the recoded genotypes of "A/A", "A/B", "B/A" and "B/B" will be,
2, 1, 1, 0, given sep = "/"
.
A numeric matrix of the same dimensions as geno containing the recoded genotypes.
Dominik Mueller (dominikmueller64@yahoo.de)
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.