add_an_admixture2: Adds a new admixture event to a graph.

Description Usage Arguments Value See Also

View source: R/propose.R

Description

Given an admixture graph, selects a child edge and two parent edges, disconnects the child edge from its original parent node and connects it to the two parent edges with an admixture event, if possible. Thus, contrary to add_an_admixture, the resulting graph need not be an extension of the input graph in the sense that erasing one of the admixture edges we get the original admixture graph. In practice, we know that when fitting data to admixture graphs, the best graph with k admixture events is not always an extension like that from the best graph with k - 1 admixture events. Most likely it doesn't need to be an extension like this (the two new admixture edges can both go where ever) either.

Usage

1
add_an_admixture2(graph, admixture_variable_name, outgroup = "")

Arguments

graph

An admixture graph.

admixture_variable_name

A name for the new admixture proportion.

outgroup

An optional parameter for the preferred outgroup.

Value

A list of graphs made by adding a new admixture event to the input graph. The list contains duplicate elements, and may even contain graphs with eyes (two inner nodes with the property that all the paths between any two leaves visits both or neither of them).

See Also

all_graphs

fit_permutations_and_graphs

fit_graph_list

add_a_leaf

add_an_admixture

make_an_outgroup


mailund/admixture_graph documentation built on April 3, 2018, 9:28 p.m.