qpadm_multi | R Documentation |
This function runs multiple qpadm models, re-using f4-statistics where possible. Supports parallel evaluation of models, which can be turned on with future::plan('multisession')
or similar, and turned off with future::plan('sequential')
.
qpadm_multi(
data,
models,
allsnps = FALSE,
full_results = TRUE,
verbose = TRUE,
...
)
data |
The input data in the form of:
|
models |
A nested list (or data frame) with qpadm models. It should consist of two or three other named lists (or columns) containing |
allsnps |
Use all SNPs with allele frequency estimates in every population of any given population quadruple. If |
verbose |
Print progress updates |
... |
Further arguments passed to |
A list where each element is the output of one qpadm model.
## Not run:
# the following specifies two models: one with 2/3/1 and one with 1/2/1 left/right/target populations
models = tibble(
left = list(c('pop1', 'pop2'), c('pop3')),
right = list(c('pop5', 'pop6', 'pop7'), c('pop7', 'pop8')),
target = c('pop10', 'pop10'))
results = qpadm_multi('/my/geno/prefix', models)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.