qpadm_models_old: Return all valid qpAdm models for an admixturegraph

qpadm_models_oldR Documentation

Return all valid qpAdm models for an admixturegraph

Description

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

Usage

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

## Not run: 
qpadm_models_old(igraph2, add_outgroup = TRUE)
qpadm_models_old(igraph2, add_outgroup = TRUE) %>% slice(1) %$% list(target, left, right)

## End(Not run)

uqrmaie1/admixtools documentation built on Nov. 3, 2024, 12:56 a.m.