View source: R/HapmapToNumeric.R
hapmaptonumeric | R Documentation |
This function takes one SNP marker with the single nucleotide hapmap format of snps to convert them to numeric format: 0, 1, 2. Where 0 and 2 are the homozygous genotypes and 1 the herozygote genotypes. 0 is assigned to the major allele and 2 to the minor allele.
hapmaptonumeric(gd.snp)
gd.snp |
A single SNP vector in hapmap format |
Returns a SNP vector in numeric format
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.