mpl_update_lower_root: Updates the nodal sets for a lower ("dummy") root node

View source: R/mpl_morphyex.R

mpl_update_lower_rootR Documentation

Updates the nodal sets for a lower ("dummy") root node

Description

If trees are rooted, then Morphy uppass functions require a lower or "dummy" root in order to function properly. This function should be called to set the nodal state sets to the dummy root. The nodal set will be equal to the set of the root node, unless there is an ambiguous union of applicable and gap tokens when gaps are treated as in applicable. In which case, the set union is resolved in favour of any applicable tokens in the set.

Usage

mpl_update_lower_root(l_root_id, root_id, morphyobj)

Arguments

l_root_id

The index of the lower root.

root_id

The index of the upper root node.

morphyobj

An instance of the Morphy object.

Value

A Morphy error code.

Author(s)

Thomas Guillerme

See Also

Other Morphy API functions: GapHandler(), MorphyErrorCheck(), MorphyWeights(), PhyDat2Morphy(), SingleCharMorphy(), UnloadMorphy(), is.morphyPtr(), mpl_apply_tipdata(), mpl_attach_rawdata(), mpl_attach_symbols(), mpl_delete_Morphy(), mpl_delete_rawdata(), mpl_first_down_recon(), mpl_first_up_recon(), mpl_get_charac_weight(), mpl_get_gaphandl(), mpl_get_num_charac(), mpl_get_num_internal_nodes(), mpl_get_numtaxa(), mpl_get_symbols(), mpl_init_Morphy(), mpl_new_Morphy(), mpl_second_down_recon(), mpl_second_up_recon(), mpl_set_charac_weight(), mpl_set_num_internal_nodes(), mpl_set_parsim_t(), mpl_translate_error(), mpl_update_tip(), summary.morphyPtr()


TreeSearch documentation built on Aug. 26, 2023, 9:06 a.m.