Model
piqtree.Model(submod_type, freq_type=None, rate_model=None, *, invariable_sites=False)
Specification for substitution models.
Stores the substitution model with base frequency settings.
| PARAMETER | DESCRIPTION |
|---|---|
submod_type
|
The substitution model to use.
TYPE:
|
freq_type
|
State frequency specification, by default None (defaults to empirical base frequencies if not specified by model).
TYPE:
|
rate_model
|
Rate heterogeneity across sites model, by default None (no Gamma and no FreeRate).
TYPE:
|
invariable_sites
|
Invariable sites, by default False. If a float in the range [0,1), specifies the proportion of invariable sites.
TYPE:
|
Source code in src/piqtree/model/_model.py
invariable_sites
property
Whether invariable sites are used.
| RETURNS | DESCRIPTION |
|---|---|
bool
|
True if invariable sites are used by the model, False otherwise. |
proportion_invariable_sites
property
The proportion of invariable sites if specified.
| RETURNS | DESCRIPTION |
|---|---|
float | None
|
The proportion of invariable sites if specified, None otherwise. |
rate_model
property
The RateModel used, if one is chosen.
| RETURNS | DESCRIPTION |
|---|---|
RateModel | None
|
The RateModel used by the Model. |
__str__()
Convert the model into the IQ-TREE representation.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The IQ-TREE representation of the model. |
Source code in src/piqtree/model/_model.py
Usage
For usage, see "Use different kinds of substitution models".