bio-phylo-modern-tree-inference
Build maximum likelihood phylogenetic trees using IQ-TREE2 and RAxML-ng. Use when inferring publication-quality trees with model selection, ultrafast…
от FridrichMethod★ 17 звёзд на GitHub
Установить bio-phylo-modern-tree-inference в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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:
# Create partition file (partitions.nex)
cat > partitions.nex << 'EOF'
#nexus
begin sets;
charset gene1 = 1-500;
charset gene2 = 501-1200;
charset gene3 = 1201-1800;
charpartition mine = HKY:gene1, GTR:gene2, GTR+G:gene3;
end;
EOF
# Run partitioned analysis
iqtree2 -s concat.fasta -p partitions.nex -m MFP -B 1000
# Edge-linked partition model (proportional branch lengths)
iqtree2 -s concat.fasta -q partitions.nex -m MFP -B 1000
# Edge-unlinked (independent branch lengths per partition)
iqtree2 -s concat.fasta -Q partitions.nex -m MFP -B 1000
RAxML-ng Basic Usage
# Simple ML tree with GTR+G
raxml-ng --all --msa alignment.fasta --model GTR+G --bs-trees 100
# --all: ML search + bootstrapping
# --msa: input alignment
# --model: substitution model
# --bs-trees: number of bootstrap replicates
RAxML-ng Model Specification
# DNA models
raxml-ng --msa alignment.fasta --model GTR+G4+I
# Protein models (automatic detection)
raxml-ng --msa protein.fasta --model LG+G8+F
# Check alignment and determine model
raxml-ng --check --msa alignment.fasta --model GTR+G
RAxML-ng Output Files
| File | Description |
|---|---|
.raxml.bestTree |
Best ML tree |
.raxml.support |
Tree with bootstrap support values |
.raxml.bootstraps |
All bootstrap trees |
.raxml.mlTrees |
All ML trees from search |
.raxml.log |
Analysis log |
.raxml.rba |
Binary alignment (for restart) |
RAxML-ng Advanced Options
# Multiple ML searches (find global optimum)
# --tree pars{10}: 10 starting parsimony trees recommended for thorough search
raxml-ng --msa alignment.fasta --model GTR+G --tree pars{10} --prefix ml_search
# Constrained tree search
raxml-ng --msa alignment.fasta --model GTR+G --tree-constraint constraint.tre
# Site likelihoods for topology tests
raxml-ng --sitelh --msa alignment.fasta --model GTR+G --tree candidate.tre
Comparing IQ-TREE2 vs RAxML-ng
| Feature | IQ-TREE2 | RAxML-ng |
|---|---|---|
| Model selection | Built-in ModelFinder | External (ModelTest-NG) |
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
read_file - 02
run_shell_command
Вложенные файлы
- examples/iqtree_basic.sh
- examples/partitioned_analysis.sh
- examples/raxml_analysis.sh
- usage-guide.md
FAQ
Что делает скилл bio-phylo-modern-tree-inference?
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.
Как установить скилл bio-phylo-modern-tree-inference?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bio-phylo-modern-tree-inference запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…