phylogenetics-builder
End-to-end ML phylogenetic tree inference — MSA, trimming, ModelFinder, IQ-TREE2/RAxML-NG.
Skill by ClawBio
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/clawbio-phylogenetics-builder
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/phylogenetics-builder
What's inside
- Skill name
phylogenetics-builder- Description
- End-to-end ML phylogenetic tree inference — MSA, trimming, ModelFinder, IQ-TREE2/RAxML-NG.
- License
- MIT
- Metadata
- author: ClawBio · domain: genomics · version: 0.3.0
- Instructions
- 298 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (7)
- INTENTS.json
- SKILL.md
- api.py
- demo_alignment.fasta
- demo_tree.nwk · examples/
- phylogenetics_builder.py
- test_phylogenetics_builder.py · tests/
SKILL.md (first lines)
# 🌳 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 `fastreer` instead - The user wants variant-based trees from VCF → use `fastreer` instead - 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_midpoint` fallback) - **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 1. **Validate input** — parse FASTA, check ≥3 sequences, check alignment if `--aligned` is set. 2. **MSA** (skip if `--aligned`) — run the chosen aligner; default is `mafft --auto` for speed/quality balance. Alternative aligners: `muscle`, `clustalw`, `kalign`, `tcoffee`, `prank`. 3. **Trim** (skip with `--no-trim`) — run `trimal -automated1`. This removes gapped columns that add noise without information. Skip for protein alignments where all columns are informative. 4. **Model selection** (skip if `--model` provided) — run `iqtree2 -m MFP`. Parse `Best-fit model according to BIC:` from the `.iqtree` log. The selected model is passed directly to tree inference. 5. **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), then `raxml-ng --all --msa aln.fa --model MODEL --bs-trees N` 6. **Rooting** (optional): - Outgroup: pass `--outgroup TAXON` to tree builder (`-o` in IQ-TREE, `--outgroup` in RAxML-NG) - Midpoint: use ETE3 `t.get_midpoint_outgroup(); t.set_outgroup(midpoint)` post-inference 7. **Parse & render** — extract branch lengths and support values from Newick; draw proportional phylogram with Bio.Phylo + matplotlib. 8. **Report** — write `report.md`, `result.json` (ClawBio contract), `phylo_tree.nwk`, `alignment/aligned.fasta` and `alignment/trimmed.fasta` when 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 ```bash # 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 \ --input sequences.fasta --output /tmp/phylo \ --aligner muscle # Standard bootstrap instead of UFBoot python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned \ --bootstrap standard # Triple support: UFBoot + aLRT + aBayes python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned \ --bootstrap all # Root by outgroup python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned \ --outgroup Mus_musculus,Rattus_norvegicus # Midpoint rooting (requires ETE3) python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned \ --root midpoint # Use RAxML-NG engine python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned \ --engine raxml-ng # Skip trimming python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned --no-trim # Provide model explicitly (skip ModelFinder) python skills/phylogenetics-builder/phylogenetics_builder.py \ --input aligned.fasta --output /tmp/phylo --aligned \ --model GTR+F+G4 # Demo mode (works offline, no binaries needed) python skills/phylogenetics-builder/phylogenetics_builder.py \ --demo --output /tmp/phylo_demo ``` ### All flags
From ClawBio/ClawBio, MIT.
More from ClawBio/ClawBio
- 0.825score
polars-bio
ClawBio (adapted from K-Dense scientific-agent-skills/polars-bio)
Fast genomic interval operations (overlap, nearest, merge, coverage, cluster, complement, subtract, count-overlaps), multi-format bioinformatics I/O…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ena-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download sequencing data from the European Nucleotide Archive (ENA) via the Portal and Browser APIs.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
gi-expression
ClawBio + Genomic Intelligence
Predict tissue / cell-type expression (log TPM + TPM) from 9,198–500,000 bp of DNA around a TSS, at least 4,599 bp each side (anything but exactly 9,198 bp…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
geo-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from the NCBI Gene Expression Omnibus (GEO).
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ukb-ppp-region-fetch
ClawBio
Fetch a regional slice of plasma pQTL summary statistics from the UK Biobank Pharma Proteomics Project (UKB-PPP; Sun 2023 Nature) for a specific (protein…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
eqtl-catalogue-region-fetch
ClawBio
Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
protocols-io
ClawBio Contributors
Search, browse, and retrieve scientific protocols from protocols.io via REST API.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
gwas-sumstats-harmonize
AlsammanAlsamman
Harmonize GWAS summary statistics from any common format (GWAS-Catalog SSF, PLINK 1.9/2, REGENIE, METAL, BOLT, SAIGE) to one canonical table (SNP CHR BP EA…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
prs-applicability-gate
Rinat Rizvanov
Deterministic gate for ONE already-computed polygenic score result and ONE person: returns SUPPORTED (raw score, standardised score and reference percentile…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
pride-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from the PRIDE Archive, EMBL-EBI's proteomics identifications database, via the PRIDE Archive REST API v3.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
wgs-prs
David de Lorenzo
End-to-end WGS to polygenic risk score pipeline.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
biostudies-fetch
Nikolai Hecker, UK Dementia Research Institute
Query metadata and download data from EMBL-EBI BioStudies, the database that describes biological studies and links their data across collections…
SkillAFreshness: A★ 1.2KClaude Code +9
Signals
- Stars
- 1,166
- Forks
- 288
- Open issues
- 27
- Last commit (this folder)
- Sep 16, 2026 (1 month ago)
- Last release
- Sep 11, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 0.3.0
- License
- MIT
- Repository
- github.com/ClawBio/ClawBio
- Website
- clawbio.github.io/ClawBio/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ClawBio
- 0.822score
ukb-ppp-region-fetch
ClawBio
Fetch a regional slice of plasma pQTL summary statistics from the UK Biobank Pharma Proteomics Project (UKB-PPP; Sun 2023 Nature) for a specific (protein…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
ancestry-risk-profiler
ClawBio
Infers genetic super-population ancestry from a 23andMe/AncestryDNA file and computes ancestry-stratified odds ratios with an exploratory Ancestry Elevation…
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.822score
eqtl-catalogue-region-fetch
ClawBio
Fetch a region of cis-eQTL summary statistics from EBI eQTL Catalogue v7+ via tabix-on-FTP.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.819score
struct-predictor
ClawBio
Protein structure prediction with Boltz-2 (default) or OpenFold3.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.819score
gwas-lookup
ClawBio
Federated variant lookup across 8 genomic databases — GWAS Catalog, Open Targets, PheWeb (UKB, FinnGen, BBJ), GTEx, and more.
SkillAFreshness: A★ 1.2KClaude Code +9 - 0.819score
fine-mapping
ClawBio
Statistical fine-mapping of GWAS loci using SuSiE, SuSiE-inf, and Approximate Bayes Factors to identify credible sets and posterior inclusion probabilities…
SkillAFreshness: A★ 1.2KClaude Code +9
Cite this page
phylogenetics-builder skill. Agent Mart. https://agentmart.dev/skills/clawbio-phylogenetics-builder (last updated 2026-10-24)