lmpy.data_wrangling.tree.match_matrix_wrangler
Module containing data wranglers for subsetting a tree to match a matrix.
Module Contents
Classes
Constructor for SubsetTreeWrangler class. |
- class lmpy.data_wrangling.tree.match_matrix_wrangler.MatchMatrixTreeWrangler(matrix, species_axis, **params)[source]
Bases:
lmpy.data_wrangling.tree.base._TreeDataWrangler
Constructor for SubsetTreeWrangler class.
- Parameters
matrix (Matrix) – A matrix to get taxon names to match.
species_axis (int) – The matrix axis with taxon names.
**params (dict) – Keyword parameters to pass to _MatrixDataWrangler.
- wrangle_tree(tree)[source]
Wrangle a tree.
- Parameters
tree (TreeWrapper) – A tree to wrangle.
- Returns
The subsetted tree.
- Return type