View source: R/hapmap_encoding.R
hapmap_encoding | R Documentation |
Changes the encoding of a TASSEL hapmap to a rrBLUP hapmap and vice-versa
hapmap_encoding(hapmap, encoding = "rrBLUP")
hapmap |
A TASSEL-encoded or rrBLUP-encoded hapmap file read in to R as
a data.frame. See |
encoding |
The desired output encoding. Either |
The TASSEL format is as such: The first row is column names. The first 4 columns are marker name, alleles, chromosome, and position, respectively. The next 7 column are additional information for TASSEL. The remaining columns are samples. Genotypes are encoded in diploid format (i.e. AA, AC, CC) with "NN" denoting missing data.
The rrBLUP format is as such:
The first row is column names. The first 4 columns are marker name, alleles,
chromosome, and position, respectively. The next 7 column are additional information for
TASSEL. The remaining columns are samples. Genotypes are encoded in 1, 0, -1
format where 1 is homozygous for the first allele, 0 is heterozygous, and -1 is
homozygous for the second allele. Missing data is denoted with NA
.
A data.frame
of a hapmap encoded in the designated format.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.