allocate_shifts_from_regimes: Allocation of shifts to edges

View source: R/shifts_manipulations.R

allocate_shifts_from_regimesR Documentation

Allocation of shifts to edges

Description

allocate_shifts_from_regimes returns the position of the shifts induced by the allocation of the regimes. Only works in an "infinite site" model.

Usage

allocate_shifts_from_regimes(phylo, regimes)

Arguments

phylo

a phylogenetic tree, class phylo.

regimes

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

Value

Vector of edges numbers where the shifts are.


pbastide/PhylogeneticEM documentation built on Feb. 12, 2024, 1:27 a.m.