View source: R/count_unique_geno.R
count_unique_geno | R Documentation |
For genotype data (markers x individuals) on a set of individuals, count the unique genotypes for each marker
count_unique_geno(genotypes, na.strings = c("N", "H", "NA", ""), cores = 1)
genotypes |
Matrix of genotypes (markers x individuals) |
na.strings |
Genotypes to be considered as missing values. |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
Vector of counts of unique genotypes.
find_unique_geno()
g <- rbind(c("NA", "A", "A", "A", "T"),
c("NA", "NA", "NA", "A", "A"),
c("A", "A", "T", "G", "G"),
c("C", "C", "G", "G", "NA"))
counts <- count_unique_geno(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.