You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: bio-phylo-modern-tree-inference
description: Build maximum likelihood phylogenetic trees using IQ-TREE2 and RAxML-ng. Use when inferring publication-quality trees with model selection, ultrafast bootstrap, or partitioned analyses from sequence alignments.
tool_type: cli
primary_tool: IQ-TREE2
measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes.
allowed-tools:
read_file
run_shell_command
Modern ML Tree Inference
Build maximum likelihood phylogenetic trees with automatic model selection and ultrafast bootstrap.
IQ-TREE2 Basic Usage
# Simple ML tree with automatic model selection
iqtree2 -s alignment.fasta -m MFP -B 1000 -T AUTO
# -s: input alignment# -m MFP: ModelFinder Plus (automatic model selection + tree inference)# -B 1000: 1000 ultrafast bootstrap replicates (minimum recommended for publication)# -T AUTO: automatic thread detection
IQ-TREE2 Output Files
File
Description
.treefile
Best ML tree in Newick format
.iqtree
Full analysis report with model parameters
.log
Run log
.contree
Consensus tree with bootstrap support
.splits.nex
Bootstrap splits in Nexus format
.model.gz
Model parameters
.bionj
Initial BIONJ tree
.mldist
ML distance matrix
.ckp.gz
Checkpoint file for resuming
Model Selection
# ModelFinder only (no tree inference)
iqtree2 -s alignment.fasta -m MF
# Use specific model
iqtree2 -s alignment.fasta -m GTR+G4 -B 1000
# Test only specific models
iqtree2 -s alignment.fasta -m MF -mset GTR,HKY,K2P
# Protein models
iqtree2 -s protein.fasta -m MFP -B 1000 -st AA
Common DNA Substitution Models
Model
Parameters
Use Case
JC
Equal rates
Very simple, rarely appropriate
K2P/K80
Ti/Tv ratio
Simple, some rate variation
HKY
Ti/Tv + base freq
Moderate complexity
GTR
6 rates + base freq
Most general, recommended default
+G4
Gamma rate variation
4 discrete rate categories
+I
Invariant sites
Sites that never change
+R4
FreeRate model
More flexible than Gamma
Ultrafast Bootstrap
# Standard ultrafast bootstrap (UFBoot2)# B>=1000: Minimum for publication. Use 10000 for final analyses.
iqtree2 -s alignment.fasta -m GTR+G4 -B 1000
# Standard bootstrap (slower but more accurate for small datasets)
iqtree2 -s alignment.fasta -m GTR+G4 -b 100
# SH-aLRT test (fast approximate likelihood ratio test)
iqtree2 -s alignment.fasta -m GTR+G4 -alrt 1000
# Both UFBoot and SH-aLRT
iqtree2 -s alignment.fasta -m GTR+G4 -B 1000 -alrt 1000
Interpreting Bootstrap Values
UFBoot
SH-aLRT
Interpretation
>= 95
>= 80
Strong support
80-94
70-79
Moderate support
< 80
< 70
Weak support
Partitioned Analysis
For multi-gene datasets with different evolutionary rates: