gget
它能做什么
gget 是一个用于搜索基因和生物序列信息的工具,可以查询多个数据库。你可以用它查看基因详情、比对序列,还能下载蛋白质结构。
适用场景
- ✓当你需要快速查找某个基因的相关信息时。
- ✓当你需要比较 DNA 或蛋白质序列时。
- ✓当你想下载生物分子(如蛋白质)的结构时。
技能链接
https://github.com/K-Dense-AI/scientific-agent-skills/blob/main/skills/gget/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“给我查一下 TP53 这个基因的信息。”
每周 5 个新技能,1 分钟读完。
工作原理
gget 可以连接 20 多个生物数据源。你既可以在电脑的终端中使用,也可以在 Python 代码里调用它来进行搜索。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
gget
Overview
gget is a command-line bioinformatics tool and Python package providing unified access to 20+ genomic databases and analysis methods. Query gene information, sequence analysis, protein structures, viral sequences, expression data, disease associations, and mouse tissue/cell specificity metrics through a consistent interface. Most gget modules work both as command-line tools and as Python functions.
Important: The databases queried by gget are continuously updated, which sometimes changes their structure. Guidance here targets gget 0.30.8 (reviewed 2026-09-30). For reproducible work, pin gget==0.30.8; for broken upstream database adapters, update gget after checking release notes.
Installation
Install gget in a clean virtual environment to avoid conflicts:
# Reproducible install targeting this skill
uv venv --python 3.13 .venv
source .venv/bin/activate
uv pip install "gget==0.30.8"
import gget
Quick Start
Inspect module-specific syntax before querying:
gget info --help
gget pdb --help
Most modules return:
- Command-line: JSON (default) or CSV with
-csvflag - Python: DataFrame or dictionary
Common flags across modules:
-o/--out: Save results to file-q/--quiet: Suppress progress information-csv: Return CSV format (command-line only)
Python argument names generally match long CLI options without leading dashes. For example, --census_version becomes census_version=.... Use gget <module> --help for CLI syntax and inspect.signature(gget.<module>) for Python; CLI flags such as --download may have no Python equivalent.
Module Categories
gget exposes 24 modules in six categories. Parameters, CLI and Python examples, and return shapes for every one are in references/module_catalog.md; fuller per-parameter documentation is in references/module_reference.md.
| Category | Modules |
|---|---|
| 1. Reference & gene information | ref (Ensembl reference downloads), search (gene search), info (gene/transcript detail), seq (nucleotide and protein sequences) |
| 2. Sequence analysis & alignment | blast, blat, muscle (multiple alignment), diamond (local alignment) |
| 3. Structural & protein analysis | pdb (PDB/mmCIF structures and metadata), g2p (residue annotations and isoform maps), elm (linear motifs), alphafold (deprecated prediction wrapper) |
| 4. Expression & disease data | archs4 (correlation, tissue expression), cellxgene (single-cell), enrichr (enrichment), bgee (orthology and expression), opentargets (disease and drug), cbio (cancer genomics), cosmic (mutations) |
| 5. Viral & mouse specificity | virus (viral sequences), 8cube (mouse specificity and expression) |
| 6. Additional tools | mutate (mutated sequences), gpt (deprecated text generation), setup (install module dependencies) |
Several modules need a one-time gget setup before first use (elm, cellxgene, cbio; legacy alphafold/gpt), and cosmic prompts for COSMIC credentials to download its database.
Common Workflows
Worked multi-module pipelines — gene characterization, structural comparison, expression and enrichment analysis, disease and drug association, orthology comparison, and reference-file preparation for kallisto or alignment — are in references/common_workflows.md, with longer versions in references/workflows.md.
Best Practices
Data Retrieval
- Use
--limitwhere supported; it is often a local cap, not a complete pagination mechanism - Save results with
-o/--outfor reproducibility - Check database versions/releases for consistency across analyses
- Use
--quietin production scripts to reduce output
Sequence Analysis
- For BLAST/BLAT, start with default parameters, then adjust sensitivity
- Use
gget diamondwith--threadsfor faster local alignment - Save DIAMOND databases with
--diamond_db; gget still requires the reference input - For multiple sequence alignment, use
-s5/--super5for large datasets
Expression and Disease Data
- Gene symbols are case-sensitive in cellxgene (e.g., 'PAX7' vs 'Pax7')
- Install optional dependencies for cellxgene, elm, and cbio with
gget setup <module> - For enrichment, record the full library name and release, not only a shortcut:
…
常见问题
什么是“生物信息学”和“数据库”?
生物信息学是利用计算机分析生物信息的学科。数据库就像一座座大型数字图书馆,用来存放这些信息。
“CLI”是什么意思?
CLI 是 Command Line Interface(命令行界面)的缩写,指通过在终端里输入命令与电脑交互的方式,而不是使用鼠标和菜单。
“BLAST”和“BLAT”是什么?
它们是用来比较 DNA 或蛋白质序列的工具,用于找出序列之间的相似之处。
详情
作者的原始描述
Queries 20+ bioinformatics resources through CLI/Python. Supports quick lookups of gene info, BLAST/BLAT, viral sequence downloads, PDB/mmCIF structures, G2P residue annotations, enrichment analysis, OpenTargets, COSMIC, CELLxGENE, and 8cube mouse specificity/expression data. Best for interactive exploration and simple queries. For batch processing or advanced BLAST use biopython; for multi-databa
热度
- GitHub 星标
- 51k
- 排名
- #3472
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …