View source: R/genoscore_converter.R
genoscore_converter | R Documentation |
Assumes biallelic genotypes and can interchange between separated alleles ('0/0', '0/1', '1/1') or Alt allele counts (0, 1, 2).
genoscore_converter(dat)
dat |
Character/Integer: A vector of genotypes. If the class
is |
If dat
is a vector of characters, then missing values should
take the form of './.'. Otherwise, if dat
is a vector of integers,
missing values should take the form of NA
.
library(genomalicious)
genoscore_converter(c('0/0', '0/1', '1/1'))
genoscore_converter(c(0, 1, 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.