Package obitools :: Package phylogeny :: Class PhylogenicNode
[hide private]
[frames] | no frames]

Class PhylogenicNode

source code


Instance Methods [hide private]
 
getLabel(self)
return label associated to this node.
source code
 
__str__(self)
str(x)
source code
int, float or None
distanceTo(self, node=None, index=None)
compute branch length between the two nodes.
source code

Inherited from graph.tree.TreeNode: componentIterator

Inherited from graph.Node: __contains__, __getitem__, __init__, __iter__, __len__, __setitem__, componentIndexSet, degree, getGraph, has_key, neighbourIndexIterator, neighbourIndexSet, neighbourIterator, shortestPathIterator, shortestPathTo

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]
  label
Label of the node

Inherited from graph.Node: graph

Inherited from object: __class__

Method Details [hide private]

getLabel(self)

source code 

return label associated to this node.

Overrides: graph.Node.getLabel
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

distanceTo(self, node=None, index=None)

source code 

compute branch length between the two nodes. If distances are not secified for this tree, None is returned.

Parameters:
  • node - a node label or None
  • index (int) - a node index or None. the parameter index has a priority on the parameter node.
Returns: int, float or None
the evolutive distance between the two nodes

Property Details [hide private]

label

Label of the node

Get Method:
getLabel(self) - return label associated to this node.