界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

trees-phylogeny

trees-phylogeny

【效率与协作】Use scikit-bio TreeNode objects, Newick trees, distance-based tree construction, tree comparison, consensus, and phylogenetic tree constraints for downstream diversity analyses.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: trees-phylogeny description: "Use scikit-bio TreeNode objects, Newick trees, distance-based tree construction, tree comparison, consensus, and phylogenetic tree constraints for downstream diversity analyses." disable-model-invocation: true metadata: disco-role: operating license: BSD 3-Clause

trees-phylogeny

Use this sub-skill when an agent needs to read or write Newick, navigate or edit a TreeNode, build a phylogeny from a DistanceMatrix, compare tree topology or branch lengths, build a majority-rule consensus, or prepare a tree/taxa set for Faith PD or UniFrac.

Quick Routing

NeedStart here
Parse Newick, inspect tips, traverse nodes, root or rerootAPI reference and workflows
Keep or remove taxa, prune empty internals, repair polytomiesworkflows
Construct a tree from pairwise distancesworkflows
Improve a candidate tree with NNIAPI reference
Compare tree topology or branch lengthsworkflows
Derive a majority-rule consensusworkflows
Fix errors before Faith PD or UniFractroubleshooting

Boundaries

  • This sub-skill covers skbio.TreeNode / skbio.tree.TreeNode, tree algorithms in skbio.tree, and tree/taxa constraints needed by phylogenetic diversity metrics.
  • For distance matrix statistics, PERMANOVA/PERMDisp/ANOSIM, and ordination from distance matrices, use ../statistics-ordination/SKILL.md.
  • For actually running alpha/beta diversity metrics such as Faith PD or UniFrac, use ../diversity-tables/SKILL.md; this sub-skill only prepares and diagnoses the tree and taxa inputs.
  • For sequence alignment or sequence-derived distances before tree construction, use ../sequences-alignment/SKILL.md.

Public Smoke Check

Run the bundled script from any working directory after installing scikit-bio:

python scripts/tree_phylogeny_smoke.py
python scripts/tree_phylogeny_smoke.py --algorithm upgma
python scripts/tree_phylogeny_smoke.py --help

The script parses a small Newick tree, validates rooted/tip/branch-length expectations, builds a DistanceMatrix, runs nj or upgma, and prints compact JSON. It imports public scikit-bio APIs only.

我的收藏