For large admixturegraph, there may be a large number of valid qpAdm models!

qpadm_models_old(graph, add_outgroup = FALSE, nested = TRUE, abbr = -1)

Arguments

graph

An admixture graph as igraph object

add_outgroup

Should the graph outgroup be added to the qpAdm right populations? Technically this shouldn't be an informative outgroup for qpAdm.

nested

Should a nested data frame be returned (TRUE), or should populations be concatenated into strings (FALSE)?

abbr

Maximum number of characters to print for each population. The default (-1) doesn't abbreviate the names.

Examples

if (FALSE) {
qpadm_models_old(igraph2, add_outgroup = TRUE)
qpadm_models_old(igraph2, add_outgroup = TRUE) %>% slice(1) %$% list(target, left, right)
}