qpadm_p | R Documentation |
qpadm
with reduced outputModels target as a mixture of left populations, given a set of outgroup right populations. Can be used to estimate admixture proportions, and to estimate the number of independent admixture events.
qpadm_p(
f2_data,
left,
right,
target = NULL,
fudge = 1e-04,
boot = FALSE,
constrained = FALSE,
rnk = length(setdiff(left, target)) - 1,
cpp = TRUE,
weights = FALSE,
f4blocks = NULL
)
left |
Left populations (sources) |
right |
Right populations (outgroups) |
target |
Target population |
fudge |
Value added to diagonal matrix elements before inverting |
boot |
If |
constrained |
Constrain admixture weights to be non-negative |
rnk |
Rank of f4-matrix. Defaults to one less than full rank. |
cpp |
Use C++ functions. Setting this to |
weights |
Return weights (default = |
f4blocks |
Instead of f2 blocks, f4 blocks can be supplied. This is used by |
Data frame with f4rank
, dof
, chisq
, p
, feasible
qpadm
left = c('Altai_Neanderthal.DG', 'Vindija.DG')
right = c('Chimp.REF', 'Mbuti.DG', 'Russia_Ust_Ishim.DG', 'Switzerland_Bichon.SG')
target = 'Denisova.DG'
qpadm_p(example_f2_blocks, left, right, target)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.