Scientific pkg gget

From aaione/everything-claude-code-zh · View interactive version

Scientific pkg gget is an AI agent skill from the GitHub repository aaione/everything-claude-code-zh. gget CLI 和 Python 工作流,用于快速基因组数据库查询、序列查找、BLAST 风格搜索、富集检查和可重复的生物信息学证据日志。

How to use this skill

Skill file

gget

当任务需要通过 gget CLI 或 Python 包跨基因组参考数据库进行快速生物信息学查询时,使用此技能。

何时使用

当任务需要受监管的临床解释、高通量生产流水线或对数据库版本和本地索引的精细控制时,请使用专用工作流而非 gget。

安装

使用干净的 Python 环境。

python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --upgrade gget
gget --help

如果 uv 可用:

uv venv
. .venv/bin/activate
uv pip install gget

在依赖旧环境之前,升级 gget 并重新检查模块文档。gget 查询的上游数据库会随时间变化。

基本模式

CLI 用法:

gget <module> [arguments] [options]

Python 用法:

import gget

result = gget.search(["BRCA1"], species="human")
print(result)

常用工作流:

  1. 确定所需的物种、组装、基因 ID 类型和数据库。
  2. 检查当前模块文档以确认参数。
  3. 先运行一个小查询。
  4. 使用显式文件名和日期保存输出。
  5. 记录模块名称、版本、参数和数据库假设。

常用模块

使用当前上游文档确认确切参数。这些模块是常用的首选:

不要假设每个模块都支持每个 Python 版本或依赖集。某些可选的科学依赖比核心包有更窄的版本支持。

快速示例

查找基因:

gget search -s human brca1 dna repair -o brca1-search.json

获取基因元数据:

gget info ENSG00000012048 -o brca1-info.json

获取序列:

gget seq ENSG00000012048 -o brca1-seq.fa

运行小型 BLAST 查询:

gget blast "MEEPQSDPSVEPPLSQETFSDLWKLLPEN" -l 10 -o blast-results.json

Python 示例:

import gget

genes = gget.search(["BRCA1", "DNA repair"], species="human")
info = gget.info(["ENSG00000012048"])
sequence = gget.seq("ENSG00000012048")

可重复性日志

对于科学输出,包含足够的元数据以重放查询。

| 日期 | gget 版本 | 模块 | 查询 | 物种/组装 | 输出 | 备注 |
| --- | --- | --- | --- | --- | --- | --- |
| 2026-05-11 | `gget --version` | search | `BRCA1 DNA repair` | human | `brca1-search.json` | 运行前检查了文档 |

还需记录:

审查清单

参考文献

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.