gget – skill Dữ liệu & Khoa học cho agent AI
Truy vấn hơn 20 nguồn tin sinh học qua CLI/Python. Hỗ trợ tra cứu nhanh thông tin gene, BLAST/BLAT, tải chuỗi virus, cấu trúc PDB/mmCIF, chú thích residue G2P, phân tích enrichment, OpenTargets, COSMIC, CELLxGENE và dữ liệu đặc hiệu chuột 8cube về mức biểu hiện. Phù hợp nhất để khám phá tương tác và các truy vấn đơn giản và
Cài skill gget bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/gget-bac61.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /gget – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/gget-bac61.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $gget – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/gget-bac61.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /gget – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/gget-bac61.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /gget – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
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 ggetQuick Start
Inspect module-specific syntax before querying:
gget info --help
gget pdb --helpMost 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](references/module_catalog.md); fuller per-parameter
documentation is in [references/module_reference.md](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](references/common_workflows.md), with longer versions in
[references/workflows.md](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:
[the adapter](https://github.com/scverse/gget/blob/main/gget/gget_enrichr.py)
maps shortcuts to specific dated libraries, and non-human/mouse species need
full species-specific names. For human/mouse, supply the tested-gene universe
through background_list when appropriate; custom backgrounds are not
supported for the other species. Report mapped/unmapped query and background
counts and adjusted p-values, so identifier loss and selection bias are visible.
- Cache cBioPortal data with
-ddto avoid repeated downloads - Open Targets filters are local and applied after
limit; expression fetches only the first page (at most 3000 rows). Other paginated resources use the server default page. Do not treat results as exhaustive. gget.inforeturns IDs in its index; preserve that index when saving CSV. ARCHS4 tissue labels useid, correlations usepearson_correlation; Enrichr usespath_nameandadj_p_val.gget.searchmatches descriptions and synonyms; select an exactgene_nameand reject ambiguity instead of taking the first result.- Census
meta_only=Truereturns cells, not datasets, and ignores the gene filter. Scope by dataset/cell metadata and pin a dated Census release.
Structures and residue annotations
- Prefer
gget.pdb(..., resource="mmcif")for explicit structure format; the PDB default can fall back to mmCIF. - Use
gget.g2pfor existing residue annotations and isoform/structure maps; specify accessions for exact isoform identity. alphafoldandgptare deprecated and no longer maintained upstream. Existing examples are legacy/illustrative, not tested prediction or generation workflows.
Viral Data
- Use restrictive filters with
gget virusbefore requesting broad viral datasets - Keep
command_summary.txtwith downstream results for reproducibility and recovery after partial downloads - Use
--baselineand--merge-resultsto resume interrupted viral metadata/sequence downloads
Error Handling
- Database structures change; when an adapter breaks, check upstream release notes and pin the newer fixed version explicitly
- Pin the reviewed version for reproducible environments:
uv pip install "gget==0.30.8" - Process max ~1000 Ensembl IDs at once with gget info
- For large-scale analyses, implement rate limiting for API queries
- Use virtual environments to avoid dependency conflicts
- Keep COSMIC and OpenAI credentials in named environment variables or interactive prompts; do not write real credentials into examples, notebooks, or logs
Output Formats
Command-line
- Default: JSON
- CSV: Add
-csvflag - FASTA: gget seq, gget mutate
- PDB/mmCIF: gget pdb; legacy gget alphafold writes predicted structures
- PNG: gget cbio plot
- FASTA/CSV/JSONL folder: gget virus
Python
- Default: DataFrame or dictionary
- JSON: use
json=Trueonly on modules that support it (not g2p) - Save to file: use only the module-specific
save/outparameter;ref(download=True)andmuscle(save=True)are invalid Python calls - AnnData: gget cellxgene
- DataFrame/JSON: gget 8cube specificity, psi_block, expression
Bundled scripts and verification
scripts/gene_analysis.py TP53: exact-symbol lookup, annotation/sequence export, optional human association queries; mouse tissue expression is routed correctly.scripts/enrichment_pipeline.py genes.txt --background tested_genes.txt: saves full dated library names and adjusted p-values. Use repeated--databasefor species-specific libraries. Failed queries are not negative evidence.scripts/batch_sequence_analysis.py proteins.fasta: small exploratory BLAST batches and local alignment; use local tools for large batches. The legacy--predict-structureflag only displays a placeholder.
The 0.30.8 adapters were source-checked, and tests use current response fields. Public reads verified ARCHS4, Open Targets, RCSB, Bgee, G2P, 8cube, Ensembl references/search. Ensembl info/seq failed on the released HTTP REST endpoint in this review; do not interpret that as a missing gene. Authenticated COSMIC, deprecated wrappers, and large downloads were not executed. Extended examples are explicitly illustrative. See [database contracts](references/database_info.md) for transport and completeness limitations.
Resources
This skill includes reference documentation for detailed module information:
references/
module_reference.md- Selected parameters and Python/CLI differencesdatabase_info.md- Service contracts, pagination, and verification boundari
… (nội dung đầy đủ có trong gói tải về)
Skill liên quan
- asset-it-management – Sổ tài sản và CNTT: số serial, model, tình trạng, người được giao, vị trí, giá trị mua…
- astropy – Astropy là gói Python cốt lõi cho thiên văn học, cung cấp các chức năng thiết yếu cho…
- chief-data-officer-advisor – Tư vấn Giám đốc Dữ liệu (CDO) cho startup: quyền dữ liệu huấn luyện AI và nguồn gốc sự…
- drug-discovery – Khám phá thuốc: tìm kiếm ChEMBL, đánh giá drug-likeness, tương tác thuốc.
- attendance – Sổ chấm công hằng ngày: check-in và check-out, số giờ làm việc, hình thức làm việc, số…
- dspy – DSPy: chương trình LM khai báo, tự động tối ưu prompt, RAG.
- auto-research – Nghiên cứu các câu hỏi chưa chắc chắn bằng tìm kiếm web hoặc tham vấn ChatGPT có sự đồng…
- clinical-research – Dùng khi thiết kế nghiên cứu lâm sàng tiến cứu trước khi nộp hồ sơ — chọn và phân loại…