graph_environment: Build an environment in which f statistics can be evaluated.

Description Usage Arguments Value

Description

Constructs an environment in which the f statistics for a graph can be evaluted, based on the parameters in a graph and values for edge lengths and admixture proportions (with defaults if not specified).

Usage

1
graph_environment(parameters, edge_lengths = NULL, admix_prop = NULL)

Arguments

parameters

The parameters of a graph as returned by extract_graph_parameters.

edge_lengths

If specified, a vector of edge lengths. Otherwise defaults are used.

admix_prop

If specified, a vector of admixture proportions. Otherwise defaults are used.

Value

A list containing two values: edges, a vector of edges and admix_prop, a vector containing admixture proportions.


admixturegraph documentation built on May 2, 2019, 6:02 a.m.