View source: R/find_consensus_geno.R
find_consensus_geno | R Documentation |
For genotype data (markers x individuals) on a set of individuals from a single inbred line, find the consensus genotype at each marker.
find_consensus_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 consensus genotypes, one value per row of genotypes
find_unique_geno()
, encode_geno()
g <- rbind(c("NA", "N", "A", "A", "T", "G", NA, "H"),
c("C", "C", "G", "G", "A", NA, NA, NA),
rep(NA, 8),
c("C", "C", "G", "G", "G", "C", "G", "G"))
consensus <- find_consensus_geno(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.