View source: R/calc_raw_summaries.R
calc_raw_maf | R Documentation |
Calculate minor allele frequency from raw SNP genotypes, by individual or by marker
calc_raw_maf(cross, by = c("individual", "marker"))
cross |
Object of class |
by |
Indicates whether to summarize by founder strain ( |
A vector of minor allele frequencies, one for each individual or marker.
recode_snps()
, calc_raw_founder_maf()
, calc_raw_het()
, calc_raw_geno_freq()
## Not run:
# load example data and calculate genotype probabilities
file <- paste0("https://raw.githubusercontent.com/rqtl/",
"qtl2data/main/DOex/DOex.zip")
DOex <- read_cross2(file)
DOex_maf <- calc_raw_maf(DOex)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.