R/allele_frequencies.R
allele_frequencies.RdCompute allele frequencies per markers and populations. Used internally in radiator and might be of interest for users.
allele_frequencies(
data,
verbose = TRUE,
parallel.core = parallel::detectCores() - 1
)A tidy data frame object in the global environment or
a tidy data frame in wide or long format in the working directory.
How to get a tidy data frame ?
Look into radiator tidy_genomic_data.
(optional, logical) verbose = TRUE to be chatty
during execution.
Default: verbose = TRUE.
(optional) The number of core used for parallel
execution during import.
Default: parallel.core = parallel::detectCores() - 1.
A list with allele frequencies in a data frame in long and wide format, and a matrix. Local (pop) and global minor allele frequency (MAF) is also computed.