View source: R/shifts_manipulations.R
sample_shifts_edges | R Documentation |
sample_shifts_edges
attempts to find K shifts in the tree which allocations
are parsimonious. The actual generation of edges is done by function
sample_edges_intervals
.
sample_shifts_edges(tree, K, part.list = enumerate_tips_under_edges(tree))
tree |
: input tree |
K |
: number of edges to be sampled. |
This function uses function enumerate_tips_under_edges
to generate a list
of tips under each edge, and function check_parsimony
to check for
parsimony of a given solution, under the assumption of an "infinite site model".
vector of edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.