simmap_to_nexml: Convert phylo with attached simmap to nexml object
Description
Convert phylo with attached simmap to nexml object
Convert nexml object with simmap to phylo
Usage
simmap_to_nexml(phy, state_ids = NULL)
nexml_to_simmap(nexml)
Value
a nexml representation of the simmap
a simmap object (phylo object with a $maps element
for use in phytools functions).
Arguments
phy
a phylo object containing simmap phy$maps element,
from the phytools package
state_ids
a named character vector giving the state
names corresponding to the ids used to refer to each state
in nexml. If null ids will be generated and states taken from
the phy$states names.
nexml
a nexml object
Functions
nexml_to_simmap(): Convert nexml object with simmap to phylo