shifts_to_simmap: Simmap format mapping from list of edges

View source: R/shifts_manipulations.R

shifts_to_simmapR Documentation

Simmap format mapping from list of edges

Description

shifts_to_simmap takes a vector of edges where the shifts occur, and return a simmap formatted tree, mapped with corresponding regimes.

Usage

shifts_to_simmap(tree, shifts_edges)

Arguments

tree

input tree in phylo format

shifts_edges

shifts positions on the edges

Details

Ancestral state is always 0, and other states are consecutive integers.

Value

tree a simmap object


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