Description Usage Arguments Value Author(s) Examples
Expects rows are SNPs and columns are lines. Data.table shouldn't have any metadata columns. recode changes the most common base pair to be major, second most common to be minor. Anything else is a het, except N, which is coded as NA. Can call either recode for single letter IUPAC SNPs or recodeBiallele for 2 letter SNP calls.
1 | recodeGenoTable(genoTable,coding="IUPAC")
|
genoTable |
Data.table with values to be converted. Expects rows are SNPs and columns are lines. Data.table shouldn't have any metadata columns. |
coding |
IUPAC or Biallele depending on if genoTable is coded with IUPAC SNPs or 2 letter SNP calls. |
Returns of vector of same length as input with translated values.
Greg Ziegler
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.