phylogenetics
하는 일
이 도구는 유전자나 단백질을 위한 ‘가계도’와 같은 계통수를 만들고 분석합니다. 서로 다른 서열 사이의 진화적 관계를 이해하도록 돕습니다.
사용하는 경우
- ✓서로 다른 생물의 DNA나 단백질 서열을 비교할 때.
- ✓한 유전자 집단의 진화 역사를 시각화할 때.
- ✓서로 다른 바이러스나 세균이 어떻게 관련되어 있는지 이해할 때.
스킬 링크
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/phylogenetics/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 DNA 서열들로 계통수를 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 다른 프로그램을 사용해 서열을 정렬한 뒤 트리를 만듭니다. 트리의 연결이 신뢰할 수 있는지 확인해 결과가 믿을 만하도록 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Phylogenetics
When to use
Use this workflow for an alignment of homologous loci or proteins, a gene tree, branch support, and an interpretable tree figure. Multi-locus partitioning, concordance factors, ancestral states and dating are covered in IQ-TREE reference.
A gene tree does not establish a species tree, transmission direction, or horizontal transfer by itself. Sampling dates alone do not justify a molecular clock.
Versions and installation
Reviewed against current official documentation on 2026-10-01. The executed
smoke workflow used MAFFT 7.526, IQ-TREE 3.1.4, FastTree 2.2.0 and
ETE3 3.1.3 on Python 3.12. ETE3 remains deliberate for this helper; ETE4 is a
separate API and is not a drop-in replacement. ETE3 imports cgi, removed in
Python 3.13. The native executables are not Python packages.
Illustrative installation commands; verify executable versions after installation:
conda create -n phylo -c conda-forge -c bioconda mafft iqtree fasttree trimal
conda activate phylo
uv venv --python 3.12 .venv-phylo
uv pip install --python .venv-phylo/bin/python ete3==3.1.3 numpy six
# Optional rendering backend; it can require a working Qt platform plugin.
uv pip install --python .venv-phylo/bin/python PyQt5
The helper defaults to iqtree3 and FastTree; use --iqtree-bin iqtree2 for an
existing IQ-TREE 2 installation, or --fasttree-bin fasttree if that is the
installed name. Version 2 compatibility is source-checked, not runtime-tested
in this refresh. All analyses are local; this skill invokes no HTTP API or remote
inference endpoint.
Workflow
1. Establish the biological input
- Select homologs with appropriate taxon coverage; investigate paralogs, contamination and recombination before assuming one history describes all sites.
- Use unique, whitespace-free FASTA IDs and keep a separate sample metadata table. The helper rejects empty/all-missing records and Newick punctuation in IDs.
- Specify
--type ntor--type aa. The helper sends-st DNAor-st AAto IQ-TREE and selects nucleotide/protein FastTree flags explicitly. - Coding DNA needs codon-aware alignment if using a codon model. Ordinary MAFFT nucleotide alignment does not preserve reading frames automatically.
- Keep the original sequences, accession versions, filters, alignment and exact commands. Inspect alignment lengths, gaps, composition and taxon identities.
2. Align and inspect
These MAFFT commands were exercised on small synthetic FASTA data:
mafft --auto --thread 1 --inputorder sequences.fasta > aligned.fasta
# L-INS-i: locally alignable homologs, typically small datasets.
mafft --localpair --maxiterate 1000 --thread 1 --inputorder sequences.fasta > linsi.fasta
# E-INS-i: homologs with large internal gaps.
mafft --genafpair --maxiterate 1000 --thread 1 --inputorder sequences.fasta > einsi.fasta
# FFT-NS-i (two refinement cycles), then FFT-NS-2 (progressive).
mafft --retree 2 --maxiterate 2 --thread 1 --inputorder sequences.fasta > fftnsi.fasta
mafft --retree 2 --maxiterate 0 --thread 1 --inputorder sequences.fasta > fftns.fasta
auto delegates the choice to MAFFT. Sequence count alone is not an accuracy
criterion. Single-thread runs simplify reproducibility; MAFFT iterative refinement
with multiple threads can produce different results between runs.
Trimming is optional and must be justified by alignment quality, not assumed to improve every tree. The following trimAl command is documentation-checked and illustrative; trimAl was not installed for this review:
trimal -in aligned.fasta -out trimmed.fasta -automated1 -fasta
Record retained columns/taxa and compare sensitivity to trimming. A failed trim must stop the trimming step; do not silently copy the untrimmed input under a “trimmed” filename. The bundled helper does not trim automatically.
3. Infer a tree
Use the maintained helper instead of recreating subprocess wrappers. From the
skill directory, with the executable names on PATH:
python scripts/phylogenetic_analysis.py sequences.fasta --type nt --threads 1 \
--bootstrap 1000 --seed 42 --output-dir results --no-visualization
# Use a reviewed alignment (including any explicit trimming) without realigning.
python scripts/phylogenetic_analysis.py aligned.fasta --aligned --type nt \
--threads 1 --output-dir reviewed --no-visualization
…
자주 묻는 질문
계통수란 무엇인가요?
유전적 유사성을 바탕으로 서로 다른 생물이나 유전자 사이의 진화적 관계를 보여 주는 도표입니다.
상동 서열이란 무엇인가요?
공통된 진화적 기원을 공유하는 DNA나 단백질 서열입니다.
이 도구로 질병 전파를 추적할 수 있나요?
계통수는 관계를 이해하는 데 도움이 되지만, 그것만으로 전파 방향이나 유전자 전달을 확정할 수는 없습니다.
상세 정보
작성자의 원본 설명
Builds and analyzes phylogenetic trees using MAFFT multiple sequence alignment, IQ-TREE maximum likelihood with ModelFinder and branch support, and FastTree approximate inference. Uses ETE3 for tree summaries and visualization. Applies to homologous nucleotide or protein sequences, microbial gene trees, protein families, and cautiously interpreted dated phylogenies.
인기도
- GitHub 스타
- 51k
- 순위
- #3526
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
13c-metabolic-flux
51k탄소-13 동위원소 추적 데이터를 사용해 대사 흐름(플럭스)을 추정합니다. 세포 대사와 생화학 경로를 분석할 때 유용합니다.
adaptyv
51kAdaptyv API를 사용해 단백질 특성 분석 실험을 설계합니다. 비용을 추정하고, 서열을 제출하며, 실험실 결과를 확인하는 데 도움이 됩니다.
aeon
51k시계열 데이터에 대해 머신러닝 작업을 수행합니다. 순차 데이터를 분류하고, 예측하고, 이상을 탐지하고, 패턴을 찾을 때 유용합니다.
alphagenome
51k유전 변이에 대해 미리 계산된 게놈 영향을 조회합니다. 변이가 게놈에 주는 영향을 이해하도록 점수와 설명을 제공합니다.
비슷한 스킬
gitcrawl
394k에이전트가 저장된 GitHub 이슈와 풀 리퀘스트 보관본을 검색하고, 중복 항목을 묶고, GitHub에서 현재 상태를 확인하도록 돕습니다.
slacrawl
394k에이전트가 로컬 Slack 보관본에서 메시지를 검색하고 개수를 세며, 보관본이 얼마나 최신인지 확인하고 필요할 때 새로 고치도록 돕습니다.
goplaces
394k에이전트가 Google Places로 장소를 검색하고, 세부 정보와 리뷰를 가져오고, 장소 이름을 확인하며, 스크립트용 JSON을 출력하도록 돕습니다.