etetoolkit
Skill by K-Dense-AI
ETE Toolkit 4 analyzes, edits, compares, annotates, and visualizes existing phylogenetic or hierarchical trees with the ETE 4 library. It is for researchers who already have a tree after alignment and inference.
Install etetoolkit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/etetoolkit ~/.claude/skills/etetoolkitRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/scientific-agent-skills/skills/etetoolkit ~/.gemini/antigravity-cli/skills/etetoolkitAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
ETE Toolkit 4 is an agent skill for working with existing phylogenetic or other hierarchical trees using the ETE 4 Python library. It covers reading and writing Newick and Nexus trees, inspecting and transforming them, and editing topology. It also covers pattern matching with TreePattern, Robinson-Foulds comparisons, gene-tree event analysis, NCBI and GTDB taxonomy queries, and visualization.
The skill targets ETE 4.4.0 and includes two bundled scripts, one for tree operations and one for visualization. It is meant for users who already have a tree after alignment and inference, not for building trees from raw sequences. The source says taxonomy workflows download public data and need internet access.
Written from the project's SKILL.md and checked against it.
What it can do
- Tree I/OReads and writes Newick and Nexus trees, with explicit parser selection.
- Topology editsRoots, prunes, and annotates trees, and finds repeated subtrees with TreePattern.
- Robinson-Foulds comparisonCompares two topologies using shared leaf labels and reports normalized RF.
- Gene-tree eventsDetects duplication and speciation events with PhyloTree and supports reconciliation.
- Taxonomy queriesQueries local NCBI or GTDB taxonomy databases after public data download.
- SmartView explorationOpens trees for interactive exploration in a local browser-based view.
- Publication renderingProduces PNG output with SmartView or PNG, PDF, and SVG with the Qt treeview.
- tree_operations.pyRuns stats, ascii, convert, reroot, prune, and compare commands on tree files.
- quick_visualize.pyGenerates SmartView, PNG, or Qt vector output from a tree file.
What you need
- Python 3.10 or later
- ete4 4.4.0 Python package
- uv for the documented run commands
- Internet access for taxonomy data
- Chrome or Chromium for static PNG rendering with SmartView
Try asking
- Load my Newick tree, prune it to three species, and write the result
- Compare these two tree topologies and report the Robinson-Foulds distance
- Find duplication and speciation events in this gene tree
Good to know
- Does not infer trees from raw sequences; alignment and inference tools are needed first.
- NCBI and GTDB workflows download public taxonomy data and can use substantial disk space.
- Normalized RF is undefined when there are no comparable splits.
- render_sm() produces PNG only; vector PDF or SVG needs the Qt treeview renderer.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/etetoolkit/SKILL.md, skills/etetoolkit/scripts/quick_visualize.py, skills/etetoolkit/scripts/tree_operations.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Read Write Edit Bash Python
-
SKILL.md13 KB -
references/api_reference.md15 KB -
references/migration-ete3-to-ete4.md12 KB -
references/review.md5 KB -
references/taxonomy.md11 KB
Show all 9 files
-
references/visualization.md13 KB -
references/workflows.md16 KB -
scripts/quick_visualize.py16 KB -
scripts/tree_operations.py16 KB
Alternatives to etetoolkit
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
etetoolkit: common questions
Does ETE Toolkit 4 build phylogenetic trees from sequences?
No. The source says ETE applies to existing trees after alignment and phylogenetic inference, and that tools such as MAFFT or IQ-TREE 2 should be used first.
Can I export vector PDF or SVG trees with this skill?
Yes, but the source says PDF and SVG output uses the optional Qt treeview renderer, installed with ete4[treeview].
Is ETE Toolkit 4 the same as ETE 3?
No. The source says the skill targets ETE 4 and warns against translating examples back to ETE 3, using ete4 imports and parser= instead of format=.
How do I install etetoolkit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is etetoolkit free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is etetoolkit safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to etetoolkit?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
