View source: R/parsimonyNumber.R
equivalent_shifts_edges | R Documentation |
equivalent_shifts_edges
uses function enumerate_parsimony
to find all the shifts positions that are equivalent to a given one.
equivalent_shifts_edges(
phylo,
shifts_edges,
part.list = enumerate_tips_under_edges(phylo)
)
phylo |
a phylogenetic tree, class |
shifts_edges |
a vector of shifts positions on the edges of the tree. |
part.list |
(optional) list of partition of the tree, result of function
|
This function is uses functions enumerate_parsimony
for the
actual computation of equivalent regimes,
clusters_from_shifts
for the clustering of the tips induced
by the original set of shifts given, and
allocate_shifts_from_regimes
to convert back a parametrization
in term of regimes to a parametrization in term of shifts.
a matrix with as many columns as equivalent allocation, each column representing a possible parsimonious allocation of shifts on the tree.
equivalent_shifts
, enumerate_parsimony
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.