How iqtree/iqtree2 works
IQ-TREE is maximum-likelihood phylogenetic inference software. Its principal workflow accepts sequence alignments, represents sequence patterns and evolutionary models, searches for a likely tree, and reports the tree and analysis. The README also documents model selection, branch and topology tests, ultrafast bootstrap, partition and mixture models, and AliSim simulation. Paths for several feature branches are supported by the tree and README, but their detailed runtime connections were not sampled; those links are marked unverified rather than asserted.
Main entry points: main.cpp Command-line app · modelmixture.cpp Evolution models · phylotree.cpp Likelihood tree · myreader.h NEXUS reader
Components 20
Input data
- NEXUS reader
nclextra/myreader.h - Alignment data
alignment/alignment.cpp - Pattern summary
alignment/alignmentsummary.h
Inference engine
- Evolution models
model/modelmixture.cpp - Rate variation
model/rateheterogeneity.h - Likelihood tree
tree/phylotree.cpp - Tree search
pll/searchAlgo.c - Tree results
tree/mtreeset.h - Partition models
model/partitionmodel.cpp - Mixture models
model/modelmixture.cpp - PoMo models
model/modelpomo.cpp
Analysis features
- ModelFinder
main/phyloanalysis.cpp - Ultrafast bootstrap
main/phyloanalysis.cpp - Branch tests
main/phylotesting.cpp - Topology tests
main/treetesting.cpp
Simulation
- AliSim command
main/alisim.cpp - Alignment simulator
simulator/alisimulator.cpp - Simulated alignment
alignment/alignment.cpp
Other components
- Researcher
- Command-line app
main/main.cpp
Connections 19
- Researcher → Command-line app: runs analysis
- Command-line app → NEXUS reader: loads input
main/main.cpp - NEXUS reader → Alignment data: parses alignment
alignment/alignment.cpp - Alignment data → Pattern summary: summarizes sites
alignment/alignment.cpp - Command-line app → Likelihood tree: starts inference
- Likelihood tree → Evolution models: evaluates likelihood
- Evolution models → Rate variation: models rate variation
- Likelihood tree → Tree search: optimizes topology
- Command-line app → Tree results: writes results
main/main.cpp - Command-line app → ModelFinder: selects models
- Command-line app → Ultrafast bootstrap: assesses support
- Command-line app → Branch tests: tests branches
- Command-line app → Topology tests: tests topologies
- Evolution models → Partition models: supports partitions
- Evolution models → Mixture models: supports mixtures
model/modelmixture.cpp - Evolution models → PoMo models: supports PoMo
- Researcher → AliSim command: requests simulation
- AliSim command → Alignment simulator: runs simulator
- Alignment simulator → Simulated alignment: generates alignment