allocate_regimes_from_shifts: Allocation of regimes to nodes.

View source: R/shifts_manipulations.R

allocate_regimes_from_shiftsR Documentation

Allocation of regimes to nodes.

Description

allocate_regimes_from_shifts allocate a number (from 0 to the number of shifts) to each node, corresponding to its regime : all nodes below shift i are numbered by i.

Usage

allocate_regimes_from_shifts(phylo, shifts_edges)

Arguments

phylo

a phylogenetic tree, class phylo.

shifts_edges

edges were the shifts are.

Value

Vector of size (ntaxa + Nnode) of the regimes of each node and tip.


PhylogeneticEM documentation built on Aug. 31, 2022, 9:16 a.m.