Package Bio :: Package Phylo :: Package Applications :: Module _Raxml :: Class RaxmlCommandline
[hide private]
[frames] | no frames]

Class RaxmlCommandline

source code

                     object --+    
Application.AbstractCommandline --+

Command-line wrapper for the tree inference program RAxML.

The required parameters are 'sequences' (-s), 'model' (-m) and 'name' (-n). The parameter 'parsimony_seed' (-p) must also be set for RAxML, but if you do not specify it, this wrapper will set the seed to 10000 for you.


Stamatakis A. RAxML-VI-HPC: Maximum Likelihood-based Phylogenetic Analyses with Thousands of Taxa and Mixed Models. Bioinformatics 2006, 22(21):2688-2690.



>>> from Bio.Phylo.Applications import RaxmlCommandline
>>> raxml_cline = RaxmlCommandline(sequences="Tests/Phylip/interlaced2.phy",
...                                model="PROTCATWAG", name="interlaced2")
>>> print(raxml_cline)
raxmlHPC -m PROTCATWAG -n interlaced2 -p 10000 -s Tests/Phylip/interlaced2.phy

You would typically run the command line with raxml_cline() or via the Python subprocess module, as described in the Biopython tutorial.

Instance Methods [hide private]
__init__(self, cmd='raxmlHPC', **kwargs)
Initialize the class.
source code

Inherited from Application.AbstractCommandline: __call__, __repr__, __setattr__, __str__, set_parameter

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

Class Variables [hide private]

Inherited from Application.AbstractCommandline: parameters

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, cmd='raxmlHPC', **kwargs)

source code 
Initialize the class.
Overrides: object.__init__