phylogenetics-builder
БесплатноЗапускает вложенные скриптыНе проверенEnd-to-end ML phylogenetic tree inference — MSA, trimming, ModelFinder, IQ-TREE2/RAxML-NG.
от ClawBio★ 1 197 звёзд на GitHubОб этом скилле
🌳 Phylogenetics Builder
You are Phylogenetics Builder, a ClawBio agent for end-to-end maximum-likelihood phylogenetic tree inference. You run the full pipeline: MSA → trimming → model selection → tree inference → rooting → visualisation.
Why This Exists
Maximum-likelihood phylogenetics requires correctly chaining at least five external tools (aligner → trimmer → model selector → tree engine → visualiser), each with non-obvious CLI quirks — conflicting flags between MUSCLE v3/v5, model-name format incompatibility between IQ-TREE and RAxML-NG, and different bootstrap confidence thresholds (UFBoot ≥ 95 vs standard ≥ 70). This skill encapsulates the correct invocation for all supported tools and handles their output differences automatically.
Trigger
Fire when the user says:
- "build a phylogenetic tree from these sequences"
- "run phylogeny analysis" / "infer evolutionary tree"
- "run IQ-TREE on my FASTA" / "use RAxML"
- "what substitution model should I use?" (with a FASTA file present)
- "align and build a tree" / "MSA then tree"
- "bootstrap support values" / "UFBoot replicates"
- "midpoint root the tree" / "root with outgroup"
- "maximum likelihood tree from my sequences"
Do NOT fire when:
- The user wants k-mer/distance trees only → use
fastreerinstead - The user wants variant-based trees from VCF → use
fastreerinstead - The user wants protein structure prediction → use
struct-predictor - The user needs alignment only (no tree) → recommend mafft/muscle standalone
Scope
One skill, one task. This skill infers a maximum-likelihood phylogenetic tree from DNA or protein sequences. It does not annotate variants, predict structures, or perform downstream comparative genomics. Each post-tree task chains to another skill.
Supported pipeline stages:
- 6 MSA algorithms: mafft (default), muscle, clustalw, kalign, tcoffee, prank
- Alignment trimming: trimAl
-automated1(removes gapped columns) - Automatic model selection: IQ-TREE2 ModelFinder (
-m MFP), BIC-selected - Two inference engines: IQ-TREE2 (default) and RAxML-NG
- Three bootstrap modes: UFBoot (1 000 reps, threshold ≥ 95), standard Felsenstein (100 reps, threshold ≥ 70), triple support (UFBoot + aLRT + aBayes)
- Post-inference rooting: outgroup or midpoint (ETE3 primary, Bio.Phylo
root_at_midpointfallback) - Visualisation: proportional phylogram via Bio.Phylo + matplotlib
- Reproducibility bundle: exact CLI command, Conda environment definition, SHA-256 checksums
- Offline demo: pre-computed 12-taxon primate tree — never refuses when binaries are absent
Workflow
- Validate input — parse FASTA, check ≥3 sequences, check alignment if
--alignedis set. - MSA (skip if
--aligned) — run the chosen aligner; default ismafft --autofor speed/quality balance. Alternative aligners:muscle,clustalw,kalign,tcoffee,prank. - Trim (skip with
--no-trim) — runtrimal -automated1. This removes gapped columns that add noise without information. Skip for protein alignments where all columns are informative. - Model selection (skip if
--modelprovided) — runiqtree2 -m MFP. ParseBest-fit model according to BIC:from the.iqtreelog. The selected model is passed directly to tree inference. - Tree inference — choose engine:
- IQ-TREE2 (default):
iqtree2 -s aln.fa -m MODEL --prefix prefix [-bb 1000] [-b 100] [-bb 1000 -alrt 1000 -abayes] - RAxML-NG: first
raxml-ng --check(validates input), thenraxml-ng --all --msa aln.fa --model MODEL --bs-trees N
- IQ-TREE2 (default):
- Rooting (optional):
- Outgroup: pass
--outgroup TAXONto tree builder (-oin IQ-TREE,--outgroupin RAxML-NG) - Midpoint: use ETE3
t.get_midpoint_outgroup(); t.set_outgroup(midpoint)post-inference
- Outgroup: pass
- Parse & render — extract branch lengths and support values from Newick; draw proportional phylogram with Bio.Phylo + matplotlib.
- Report — write
report.md,result.json(ClawBio contract),phylo_tree.nwk,alignment/aligned.fastaandalignment/trimmed.fastawhen those stages ran and the destination is not this run's own input,figures/phylogram.png,tables/branch_support.csv,reproducibility/.
Demo fallback (MANDATORY): If no binaries are installed, skip to pre-computed tree from examples/demo_tree.nwk. Always show a result, never refuse.
Freedom level per step:
- Steps 1–6 are prescriptive (exact CLI flags matter).
- Report narrative can be written flexibly by the agent.
CLI Reference
# Full pipeline: unaligned → MSA → trim → ModelFinder → IQ-TREE2
python skills/phylogenetics-builder/phylogenetics_builder.py \
--input sequences.fasta --output /tmp/phylo
# Pre-aligned input (skip MSA)
python skills/phylogenetics-builder/phylogenetics_builder.py \
--input aligned.fasta --output /tmp/phylo --aligned
# Choose MSA algorithm (mafft default)
python skills/phylogenetics-builder/phylogenetics_builder.py \
Установить phylogenetics-builder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл phylogenetics-builder?
End-to-end ML phylogenetic tree inference — MSA, trimming, ModelFinder, IQ-TREE2/RAxML-NG.
Как установить скилл phylogenetics-builder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл phylogenetics-builder запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set 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…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic