build_tree
piqtree.build_tree(aln, model, rand_seed=None, bootstrap_replicates=None, num_threads=None, other_options='')
Reconstruct a phylogenetic tree.
Given a sequence alignment, uses IQ-TREE to reconstruct a phylogenetic tree.
| PARAMETER | DESCRIPTION |
|---|---|
aln
|
The sequence alignment.
TYPE:
|
model
|
The substitution model with base frequencies and rate heterogeneity.
TYPE:
|
rand_seed
|
The random seed - None means no seed is used, by default None.
TYPE:
|
bootstrap_replicates
|
The number of bootstrap replicates to perform, by default None. If 0 is provided, then no bootstrapping is performed. At least 1000 is required to perform bootstrapping.
TYPE:
|
num_threads
|
Number of threads for IQ-TREE to use, by default None (single-threaded). If 0 is specified, IQ-TREE attempts to find the optimal number of threads.
TYPE:
|
other_options
|
Additional command line options for IQ-TREE.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
PhyloNode
|
The IQ-TREE maximum likelihood tree from the given alignment. |
Source code in src/piqtree/iqtree/_tree.py
Usage
For usage, see "Construct a maximum likelihood phylogenetic tree".