List of all members.
Detailed Description
Class that assigns classification levels to nodes of the taxonomic tree.
We will train our classifiers to predict these levels.
Constructor & Destructor Documentation
def MGT::TaxaTree::TaxaLevels::__init__ |
( |
|
self, |
|
|
|
taxaTree = None |
|
) |
| |
Constructor.
@param taxaTree instance of TaxaTree - if not None, will be modified, so that TaxaLevels.lineage() etc work after words;
otherwise TaxaLevels.setLevels(taxaTree) should be called separately.
Member Function Documentation
def MGT::TaxaTree::TaxaLevels::isNodeInLinnLevelRange |
( |
|
self, |
|
|
|
node, |
|
|
|
minLevelId, |
|
|
|
maxLevelId |
|
) |
| |
Check if Linnean level id of a node is within a (closed) range
def MGT::TaxaTree::TaxaLevels::lineageFixedList |
( |
|
self, |
|
|
|
node, |
|
|
|
null = None , |
|
|
|
format = "id" |
|
) |
| |
Return a list of taxids that correspond to the list of level names returned by getLevelNames("ascend").
If a given level is not present in this node's lineage, the corresponding element is 'null'.
Member Data Documentation
min level ID of a Linnean rank.
It should correlate with
The documentation for this class was generated from the following file: