PTreeGenerator
1.0
Simple phylogenetic tree generation from multiple sequence alignment.
|
Contains an implementation of the Neighbor-Joining algorithm. More...
Public Member Functions | |
def | __init__ |
The constructor just saves the data for the execution. | |
def | tree |
Neighbor-Joining implementation. |
Private Attributes | |
_alignment | |
multiple sequence alignment | |
_names | |
taxa identification strings | |
_distMatrix | |
the distance matrix in more or less arbitrary form |
Contains an implementation of the Neighbor-Joining algorithm.
The computed tree is stored as an internal member NeighborJoining::tree.
Definition at line 14 of file neighbor_joining.py.
def ptreegen.neighbor_joining.NeighborJoining.__init__ | ( | self, | |
distMatrtix, | |||
alignment = None , |
|||
names = None |
|||
) |
The constructor just saves the data for the execution.
distMatrtix | the distance matrix |
alignment | should be specified when the names parameter is not present |
names | the names of the taxa in the distance matrix |
Definition at line 22 of file neighbor_joining.py.
def ptreegen.neighbor_joining.NeighborJoining.tree | ( | self | ) |
Neighbor-Joining implementation.
Definition at line 37 of file neighbor_joining.py.
Referenced by ptreegen.parsimony.LargeParsimony.cost().
|
private |
multiple sequence alignment
Definition at line 23 of file neighbor_joining.py.
Referenced by ptreegen.parsimony.LargeParsimony.cost(), and ptreegen.parsimony.LargeParsimony.getOptimalQuartets().
|
private |
the distance matrix in more or less arbitrary form
Definition at line 26 of file neighbor_joining.py.
|
private |
taxa identification strings
Definition at line 24 of file neighbor_joining.py.