Rank substitution models, with the margin over the runners-up
select_substitution_modelCompare substitution models for aligned nucleotide sequences and identify the best-fitting model using AIC, AICc, or BIC criteria. Get ranked models with winner and delta.
Instructions
Compare substitution models and report how much the winner won by.
A single model name reads as a finding. The ranking, the delta to the next model, and whether AIC/AICc/BIC agree are what make it one.
Args: fasta: Aligned nucleotide sequences in FASTA. criterion: "AIC", "AICc" or "BIC". BIC penalises parameters more heavily. seed: Fixes the engine's search. top_n: How many ranked models to return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | ||
| fasta | Yes | ||
| top_n | No | ||
| criterion | No | AIC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | Yes | ||
| ranking | Yes | ||
| warnings | Yes | ||
| alignment | Yes | ||
| criterion | Yes | ||
| best_model | Yes | ||
| criteria_agree | Yes | ||
| best_by_criterion | Yes | ||
| n_models_compared | Yes | ||
| indistinguishable_from_best | Yes |