Public Member Functions | Static Public Attributes

MGT::TaxaTree::TaxaLevels Class Reference

Inheritance diagram for MGT::TaxaTree::TaxaLevels:
MGT::TaxaTreeDb::TaxaLevelsDb

List of all members.

Public Member Functions

def __init__
def isNodeInLinnLevelRange
def lineageFixedList

Static Public Attributes

int minLinnId = 20
 min level ID of a Linnean rank.

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: