PTreeGenerator
1.0
Simple phylogenetic tree generation from multiple sequence alignment.
|
Similar to the ptreegen::computation::Computation class. More...
Public Member Functions | |
def | __init__ |
Besides member initialization, it handles initial styling of the tree. | |
def | parseOptions |
Parses options selected by the user and prepares the necessary workflow. | |
def | saveNewick |
Creates a file in the same directory as the input alignment and saves the tree in the Newick format. | |
def | savePNG |
Creates a file in the same directory as the input alignment and saves the tree as a PNG image. | |
def | saveSVG |
Creates a file in the same directory as the input alignment and saves the tree as an SVG image. | |
def | showGUI |
Shows the tree in a windowed viewer app. | |
def | printToStdout |
Prints the tree topology to stdout. | |
def | show |
Executes the workflow specified by the Visualization::_formatingMethods member. |
Private Attributes | |
_tree | |
reference to the tree being displayed | |
_options | |
set of options (same set as in the case of the ptreegen::computation::Computation class) | |
_formatingMethods | |
A list of function pointers that represents the workflow of operations. | |
_storageDir | |
the output directory | |
_filePrefix | |
prefix for the output files | |
_style | |
Instance representing the rendered style of the tree. |
Similar to the ptreegen::computation::Computation class.
It manages the visual components of the computation process and displays results to the user.
Definition at line 18 of file visualization.py.
def ptreegen.visualization.Visualization.__init__ | ( | self, | |
tree, | |||
options | |||
) |
Besides member initialization, it handles initial styling of the tree.
tree | input phylogenetic tree that will be processed |
options | set of options (same set as in the case of the ptreegen::computation::Computation class) |
Definition at line 27 of file visualization.py.
def ptreegen.visualization.Visualization.parseOptions | ( | self, | |
options | |||
) |
Parses options selected by the user and prepares the necessary workflow.
options | set of options (same set as in the case of the ptreegen::computation::Computation class) |
Definition at line 50 of file visualization.py.
References ptreegen.visualization.Visualization._filePrefix, ptreegen.visualization.Visualization._storageDir, ptreegen.visualization.Visualization.printToStdout(), ptreegen.visualization.Visualization.saveNewick(), ptreegen.visualization.Visualization.savePNG(), ptreegen.visualization.Visualization.saveSVG(), and ptreegen.visualization.Visualization.showGUI().
def ptreegen.visualization.Visualization.printToStdout | ( | self | ) |
Prints the tree topology to stdout.
Definition at line 113 of file visualization.py.
References ptreegen.visualization.Visualization._tree, ptreegen.parsimony.SmallParsimony._tree, and ptreegen.parsimony.LargeParsimony._tree.
Referenced by ptreegen.visualization.Visualization.parseOptions().
def ptreegen.visualization.Visualization.saveNewick | ( | self | ) |
Creates a file in the same directory as the input alignment and saves the tree in the Newick format.
Definition at line 81 of file visualization.py.
References ptreegen.visualization.Visualization._filePrefix, and ptreegen.visualization.Visualization._storageDir.
Referenced by ptreegen.visualization.Visualization.parseOptions().
def ptreegen.visualization.Visualization.savePNG | ( | self | ) |
Creates a file in the same directory as the input alignment and saves the tree as a PNG image.
Definition at line 90 of file visualization.py.
References ptreegen.visualization.Visualization._filePrefix, ptreegen.visualization.Visualization._storageDir, and ptreegen.visualization.Visualization._style.
Referenced by ptreegen.visualization.Visualization.parseOptions().
def ptreegen.visualization.Visualization.saveSVG | ( | self | ) |
Creates a file in the same directory as the input alignment and saves the tree as an SVG image.
Definition at line 99 of file visualization.py.
References ptreegen.visualization.Visualization._filePrefix, ptreegen.visualization.Visualization._storageDir, and ptreegen.visualization.Visualization._style.
Referenced by ptreegen.visualization.Visualization.parseOptions().
def ptreegen.visualization.Visualization.show | ( | self | ) |
Executes the workflow specified by the Visualization::_formatingMethods member.
Definition at line 122 of file visualization.py.
References ptreegen.visualization.Visualization._formatingMethods.
def ptreegen.visualization.Visualization.showGUI | ( | self | ) |
Shows the tree in a windowed viewer app.
Definition at line 107 of file visualization.py.
References ptreegen.visualization.Visualization._style.
Referenced by ptreegen.visualization.Visualization.parseOptions().
|
private |
prefix for the output files
Definition at line 32 of file visualization.py.
Referenced by ptreegen.visualization.Visualization.parseOptions(), ptreegen.visualization.Visualization.saveNewick(), ptreegen.visualization.Visualization.savePNG(), and ptreegen.visualization.Visualization.saveSVG().
|
private |
A list of function pointers that represents the workflow of operations.
Definition at line 30 of file visualization.py.
Referenced by ptreegen.visualization.Visualization.show().
|
private |
set of options (same set as in the case of the ptreegen::computation::Computation class)
Definition at line 29 of file visualization.py.
|
private |
the output directory
Definition at line 31 of file visualization.py.
Referenced by ptreegen.visualization.Visualization.parseOptions(), ptreegen.visualization.Visualization.saveNewick(), ptreegen.visualization.Visualization.savePNG(), and ptreegen.visualization.Visualization.saveSVG().
|
private |
Instance representing the rendered style of the tree.
Definition at line 33 of file visualization.py.
Referenced by ptreegen.visualization.Visualization.savePNG(), ptreegen.visualization.Visualization.saveSVG(), and ptreegen.visualization.Visualization.showGUI().
|
private |
reference to the tree being displayed
Definition at line 28 of file visualization.py.
Referenced by ptreegen.visualization.Visualization.printToStdout().