shifts_to_simmap: Simmap format mapping from list of edges
Description
shifts_to_simmap
takes a vector of edges where the shifts occur, and return a
simmap formated tree, mapped with corresponding regimes.
Usage
shifts_to_simmap(tree, shifts_edges)
Arguments
tree
imput tree in phylo
format
shifts_edges
shifts positions on the edges
Value
tree a simmap object
Details
Ancestral state is always 0, and other states are consecutive integers.