scientific-pkg-gget
它能做什么
gget 是一个用来在基因组数据库中查询基因和生物序列信息的工具。你可以用它查询基因的详细信息、查找 DNA 或蛋白质序列,还能快速进行相似性搜索。
适用场景
- ✓需要查找某个特定基因的 ID 时。
- ✓想搜索某个基因的 DNA 或蛋白质序列时。
- ✓想快速比对序列之间的相似性时。
技能链接
https://github.com/affaan-m/ECC/blob/main/skills/scientific-pkg-gget/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“查找人类 BRCA1 基因的相关信息。”
每周 5 个新技能,1 分钟读完。
工作原理
你可以在终端中输入命令,或编写一个小型 Python 脚本来使用 gget。它会连接到公共数据库,获取你需要的信息。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
gget
Use this skill when a task needs quick bioinformatics lookup across genomic
reference databases with the gget CLI or Python package.
When to Use
- Finding Ensembl IDs, gene metadata, transcript details, or sequences.
- Running quick BLAST or BLAT lookups without building a full local pipeline.
- Fetching reference genome links and annotations from Ensembl.
- Querying protein structure, pathway, cancer, expression, or disease-association modules through a single interface.
- Creating a reproducible first-pass evidence log before moving to heavier tools such as Biopython, Snakemake, Nextflow, BLAST+, or database-specific clients.
Use a dedicated workflow instead of gget when the task requires regulated
clinical interpretation, high-throughput production pipelines, or fine-grained
control over database versions and local indexes.
Installation
Use a clean Python environment.
python -m venv .venv
. .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --upgrade gget
gget --help
If uv is available:
uv venv
. .venv/bin/activate
uv pip install gget
Before relying on an older environment, upgrade gget and re-check the module
docs. The upstream databases queried by gget change over time.
Basic Patterns
CLI shape:
gget <module> [arguments] [options]
Python shape:
import gget
result = gget.search(["BRCA1"], species="human")
print(result)
Common workflow:
- Identify the species, assembly, gene ID type, and database needed.
- Check the current module documentation for arguments.
- Run a small query first.
- Save output with an explicit filename and date.
- Record module name, version, arguments, and database assumptions.
Common Modules
Use current upstream docs for exact arguments. These modules are common first choices:
gget search: find Ensembl IDs from search terms.gget info: retrieve metadata for Ensembl, UniProt, or related IDs.gget seq: fetch nucleotide or amino-acid sequences.gget ref: retrieve reference genome download links.gget blast: run a quick BLAST query.gget blat: locate a sequence against supported genome assemblies.gget muscle: run multiple sequence alignment.gget diamond: run local sequence alignment against reference sequences.gget alphafoldandgget pdb: inspect protein-structure references.gget enrichr,gget opentargets,gget archs4,gget bgee,gget cbio, andgget cosmic: explore enrichment, target, expression, cancer, and disease association data.
Do not assume every module supports every Python version or dependency set. Some optional scientific dependencies have narrower version support than the core package.
Quick Examples
Find genes:
gget search -s human brca1 dna repair -o brca1-search.json
Fetch gene metadata:
gget info ENSG00000012048 -o brca1-info.json
Fetch a sequence:
gget seq ENSG00000012048 -o brca1-seq.fa
Run a small BLAST query:
gget blast "MEEPQSDPSVEPPLSQETFSDLWKLLPEN" -l 10 -o blast-results.json
Python example:
import gget
genes = gget.search(["BRCA1", "DNA repair"], species="human")
info = gget.info(["ENSG00000012048"])
sequence = gget.seq("ENSG00000012048")
Reproducibility Log
For scientific outputs, include enough metadata to replay the query.
| Date | gget version | Module | Query | Species/assembly | Output | Notes |
| --- | --- | --- | --- | --- | --- | --- |
| 2026-05-11 | `gget --version` | search | `BRCA1 DNA repair` | human | `brca1-search.json` | Docs checked before run |
Also record:
- Python version and environment manager.
- Any optional dependency installed through
gget setup. - Database-specific identifiers returned by the query.
- Whether output is JSON, CSV, FASTA, or a DataFrame export.
- Any failures that were resolved by upgrading
gget.
Review Checklist
- Did you upgrade or verify the installed
ggetversion? - Did you check the current upstream module docs before using arguments?
- Is the species or assembly explicit?
- Are identifiers preserved exactly, including Ensembl/UniProt prefixes?
- Is the result labeled as database output rather than clinical interpretation?
- Is the query reproducible from the saved command or Python snippet?
- Are optional dependencies installed in an isolated environment?
References
…
常见问题
什么是“基因组数据库”?
它们是大型信息库,收录了人类等各种生物的 DNA 和蛋白质信息,是科学家经常使用的资源。
什么是 BLAST?
BLAST 是一种比对 DNA 或蛋白质序列、找出相似之处的方法,有助于理解基因的功能,或不同序列之间的关系。
需要安装什么吗?
需要。你要用 Python 在电脑上安装 gget,安装方法可以在官方文档中找到。
详情
作者的原始描述
gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs. Use when a task needs quick bioinformatics lookup across genomic reference databases with the gget CLI or Python package.
repo: affaan-m/ECC
热度
- GitHub 星标
- 280k
- 排名
- #401
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
accessibility
280k帮你的智能体创建人人都能使用的界面。确保网站和应用对残障人士友好,比如失明或行动不便的用户也能顺畅使用。
agent-architecture-audit
280k让你的智能体检查一切是否正常运行。它能找出并修复 AI 系统中的问题,确保系统按预期工作。
agent-eval
280k帮你的智能体比较不同的 AI 编程工具。它能衡量哪个工具在特定任务上更快、更便宜、更可靠。
agent-harness-construction
280k让你的智能体更好地理解如何完成任务。它会优化智能体使用的工具和指令,提高成功的几率。