/scholaraio:bioinformaticsfrom scholaraio
Guides bioinformatics workflows including sequence alignment, variant calling, phylogenetics, and protein-structure analysis using BLAST, minimap2, samtools, bcftools, MAFFT, IQ-TREE, and ESMFold.
Ships in scholaraio. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
用生物信息学工具链做序列比对、变异检测、系统发育和蛋白质结构分析。
本 skill 故意保持轻量:
scholaraio toolrefBioinformatics 不是单一程序,而是一组工具链。agent 必须先判断自己在用哪一个子工具,再决定怎么查。
默认顺序:
toolref show bioinformatics <program> ... 或 search --program <program> 查对应程序toolref 覆盖不全,agent 应先回退该工具的官方手册或 README,再继续任务toolref这意味着:
bioinformatics skill 负责先分流,再选工具toolref 负责各子工具的接口细节# 核心工具(conda bioconda 频道)
conda install -c bioconda minimap2 mafft iqtree bcftools samtools blast
# Python 库
pip install biopython py3Dmol pycirclize toytree matplotlib seaborn pandas
# 蛋白质结构预测(需 GPU)
pip install fair-esm
# 数据获取
conda install -c conda-forge ncbi-datasets-cli
验证:minimap2 --version、samtools --version、blastn -version 均应正常输出。
适合:
不适合:
当 agent 不确定子命令、选项、参数含义时,先查 toolref。
常用查法:
scholaraio toolref show bioinformatics samtools sort
scholaraio toolref show bioinformatics bcftools manual
scholaraio toolref show bioinformatics minimap2 manual
scholaraio toolref show bioinformatics blast blastn
scholaraio toolref search bioinformatics bootstrap tree --program iqtree
推荐习惯:
如果遇到覆盖缺口:
toolref 覆盖不足toolref| 工具 | 功能 | 何时用 |
|---|---|---|
| BLAST | 序列相似性搜索 | 查找同源序列、注释未知基因 |
| minimap2 | 序列比对 | 组装序列/长读段 vs 参考基因组 |
| BWA-MEM2 | 短读段比对 | Illumina 短读段 vs 参考基因组 |
| samtools | BAM/SAM 操作 | 排序、索引、统计 |
| bcftools | 变异检测 | SNP/InDel calling |
| MAFFT | 多序列比对 | 建树前的全局比对 |
| IQ-TREE | 最大似然系统发育 | 建进化树(支持 bootstrap) |
| FastTree | 快速近似建树 | 大规模序列(>1000 条) |
| ESMFold | 蛋白质结构预测 | AI 蛋白质折叠(用 A100 GPU) |
| BioPython | 通用生物信息学 | PDB 解析、序列操作、Entrez 查询 |
| 场景 | 正确工具 | 常见错误 |
|---|---|---|
| 组装基因组 vs 参考 | minimap2 | 用 BWA(BWA 是短读段工具) |
| 短读段 vs 参考 | BWA-MEM2 | 用 minimap2(不够精确) |
| 建进化树 | IQ-TREE (ML) | 用 NJ(邻接法太粗糙) |
| 蛋白质结构 | ESMFold 或 PDB 实验结构 | 盲目信任预测不看 pLDDT |
建议流程:
samtools / bcftools 做排序、索引和变异调用建议流程:
建议流程:
minimap2 的预设与输入输出格式samtools sort/view/index 的正确用法bcftools 变异调用链路iqtree 的 bootstrap 与模型参数blastn 的输出格式和阈值这些细节优先查 toolref。
import toytree
import matplotlib.pyplot as plt
tree = toytree.tree("tree.treefile")
canvas, axes, marks = tree.draw(
width=600, height=800,
tip_labels_align=True,
node_sizes=[0 if not n.is_leaf() else 8 for n in tree.treenode.traverse()],
)
# 按类群着色需自定义 node_colors
from pycirclize import Circos
circos = Circos(sectors={"genome": genome_length})
sector = circos.sectors[0]
# 轨道 1: 基因注释
track1 = sector.add_track((90, 95))
# 轨道 2: 变异密度
track2 = sector.add_track((80, 88))
# 轨道 3: GC 含量
track3 = sector.add_track((70, 78))
circos.savefig("circos.png", dpi=300)
import py3Dmol
view = py3Dmol.view(width=800, height=600)
view.addModel(pdb_string, "pdb")
# 卡通表示 + 突变位点高亮
view.setStyle({"cartoon": {"color": "spectrum"}})
# 突变残基显示为球棍
view.addStyle({"resi": [484, 501, 681]},
{"stick": {"colorscheme": "redCarbon"}})
view.zoomTo()
view.show()
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(15, 4))
# x 轴: 蛋白位置
# y 轴: 携带该突变的变异株数量
# 颜色: 按功能域着色(NTD, RBD, S1/S2, S2)
ax.vlines(positions, 0, counts, colors=domain_colors, linewidth=1.5)
ax.scatter(positions, counts, c=domain_colors, s=30, zorder=5)
# 标注关键突变
for pos, name in key_mutations:
ax.annotate(name, (pos, counts[pos]), fontsize=8, rotation=45)
| 序列长度 | VRAM 需求 | A100 40GB |
|---|---|---|
| < 400 aa | ~10 GB | 单 GPU |
| 400-800 aa | ~15-20 GB | 单 GPU |
| 800-1200 aa | ~25-35 GB | 单 GPU |
| > 1200 aa | > 40 GB | 需拆分域或多 GPU |
建议:预测蛋白质域(200-500 aa)而非全长(可能超出 VRAM)。
| 检查项 | 正确做法 | 常见错误 |
|---|---|---|
| 比对工具 | 组装用 minimap2,短读段用 BWA | 混用 |
| 建树方法 | ML (IQ-TREE) + bootstrap ≥1000 | 用 NJ 不做 bootstrap |
| 替换模型 | DNA: GTR+G4,蛋白: LG+G4 | 不做模型选择 |
| 结构预测 | 报告 pLDDT,与实验结构对比 | 盲目信任预测 |
| 突变命名 | 标准命名(N501Y 而非"501位天冬酰胺突变") | 非标准命名 |
| 趋同进化 | 区分趋同进化和共祖 | 混淆 |
| E-value | BLAST 结果按 e-value 过滤 | 不设阈值 |
minimap2 / BWA / BLASTWhat SKILL.md sets; muted values are Claude Code's defaults
44 skills in this plugin
/academic-writingUse when the user needs help choosing or organizing an academic-writing workflow by deliverable, stage, or format, including review articles, guided reading, paper sections, PPT or slides, posters, and technical reports./arxivUse when the user wants to browse arXiv preprints, search arXiv directly, fetch a PDF by arXiv ID or URL, or send a preprint into the ScholarAIO ingest pipeline./auditUse when the user wants to check paper-library data quality, diagnose missing metadata, filename issues, DOI duplicates, title mismatches, or repairable metadata problems./backupUse when the user wants to back up or restore ScholarAIO data through configured rsync targets, inspect backup plans, or run a dry-run before transferring files./citation-checkUse when the user wants to verify citations in AI-generated or human-written text against the local knowledge base and catch hallucinated, wrong, or missing references./citationsUse when the user asks about highly cited papers, citation rankings, or updating citation counts from external APIs.npx claudepluginhub zimoliao/scholaraio --plugin scholaraioOther plugins' skills for the same job