Calculate genotype frequencies from raw SNP genotypes
Calculate genotype frequencies from raw SNP genotypes, by individual or by marker
calc_raw_geno_freq(cross, by = c("individual", "marker"), cores = 1)
cross |
Object of class |
by |
Indicates whether to summarize by individual or by marker. |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
A matrix of genotypes frequencies with 3 columns (AA, AB, and BB) and with rows being either individuals or markers.
## Not run: # load example data and calculate genotype probabilities file <- paste0("https://raw.githubusercontent.com/rqtl/", "qtl2data/master/DOex/DOex.zip") DOex <- read_cross2(file) gfreq <- calc_raw_geno_freq(DOex) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.