gene-database by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill gene-databaseNCBI Gene 是一个整合了多种物种基因信息的综合性数据库。它提供命名法、参考序列(RefSeqs)、染色体图谱、生物通路、遗传变异、表型以及与全球基因组资源的交叉引用。
当您需要处理基因数据时,应使用此技能,包括通过基因符号或 ID 进行搜索、检索基因序列和元数据、分析基因功能和通路,或执行批量基因查询。
NCBI 提供了两个主要的 API 用于访问基因数据:
对于复杂查询和跨数据库搜索,请选择 E-utilities。对于简单的基因数据检索,希望在一次请求中获取元数据和序列,请选择 Datasets API。
跨生物体通过符号或名称搜索基因:
scripts/query_gene.py 脚本查询模式示例:
insulin[gene name] AND human[organism]dystrophin[gene name] AND muscular dystrophy[disease]广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
human[organism] AND 17q21[chromosome]获取已知基因 ID 的详细信息:
scripts/fetch_gene_data.py 获取全面数据scripts/query_gene.py 获取特定格式Datasets API 返回:
同时处理多个基因:
scripts/batch_gene_lookup.py 进行高效的批量处理此工作流程适用于:
查找与特定生物学功能或表型相关的基因:
搜索示例:
GO:0006915[biological process](细胞凋亡)diabetes[phenotype] AND mouse[organism]insulin signaling pathway[pathway]速率限制:
认证: 在 https://www.ncbi.nlm.nih.gov/account/ 注册免费的 NCBI API 密钥以提高速率限制。
错误处理: 两个 API 都返回标准的 HTTP 状态码。常见错误包括:
使用指数退避策略重试失败的请求。
使用 E-utilities(ESearch、ESummary、EFetch)查询 NCBI Gene。
python scripts/query_gene.py --search "BRCA1" --organism "human"
python scripts/query_gene.py --id 672 --format json
python scripts/query_gene.py --search "insulin[gene] AND diabetes[disease]"
使用 NCBI Datasets API 获取全面的基因数据。
python scripts/fetch_gene_data.py --gene-id 672
python scripts/fetch_gene_data.py --symbol BRCA1 --taxon human
python scripts/fetch_gene_data.py --symbol TP53 --taxon "Homo sapiens" --output json
高效处理多个基因查询。
python scripts/batch_gene_lookup.py --file gene_list.txt --organism human
python scripts/batch_gene_lookup.py --ids 672,7157,5594 --output results.json
有关详细的 API 文档,包括端点、参数、响应格式和示例,请参阅:
references/api_reference.md - E-utilities 和 Datasets API 的全面 API 文档references/common_workflows.md - 其他示例和用例模式当需要特定的 API 端点详细信息、参数选项或响应结构信息时,请搜索这些参考资料。
NCBI Gene 数据可以以多种格式检索:
现代应用程序选择 JSON,需要详细元数据的遗留系统选择 XML,序列分析工作流程选择 FASTA。
此技能包括:
query_gene.py - 使用 E-utilities(ESearch、ESummary、EFetch)查询基因fetch_gene_data.py - 使用 NCBI Datasets API 获取基因数据batch_gene_lookup.py - 高效处理多个基因查询api_reference.md - E-utilities 和 Datasets API 的详细 API 文档common_workflows.md - 常见基因查询和用例示例每周安装数
125
代码仓库
GitHub 星标数
22.6K
首次出现
2026年1月21日
安全审计
安装于
claude-code105
opencode97
cursor93
gemini-cli91
antigravity88
codex81
NCBI Gene is a comprehensive database integrating gene information from diverse species. It provides nomenclature, reference sequences (RefSeqs), chromosomal maps, biological pathways, genetic variations, phenotypes, and cross-references to global genomic resources.
This skill should be used when working with gene data including searching by gene symbol or ID, retrieving gene sequences and metadata, analyzing gene functions and pathways, or performing batch gene lookups.
NCBI provides two main APIs for gene data access:
Choose E-utilities for complex queries and cross-database searches. Choose Datasets API for straightforward gene data retrieval with metadata and sequences in a single request.
To search for genes by symbol or name across organisms:
scripts/query_gene.py script with E-utilities ESearchExample query patterns:
insulin[gene name] AND human[organism]dystrophin[gene name] AND muscular dystrophy[disease]human[organism] AND 17q21[chromosome]To fetch detailed information for known Gene IDs:
scripts/fetch_gene_data.py with the Datasets API for comprehensive datascripts/query_gene.py with E-utilities EFetch for specific formatsThe Datasets API returns:
For multiple genes simultaneously:
scripts/batch_gene_lookup.py for efficient batch processingThis workflow is useful for:
To find genes associated with specific biological functions or phenotypes:
Example searches:
GO:0006915[biological process] (apoptosis)diabetes[phenotype] AND mouse[organism]insulin signaling pathway[pathway]Rate Limits:
Authentication: Register for a free NCBI API key at https://www.ncbi.nlm.nih.gov/account/ to increase rate limits.
Error Handling: Both APIs return standard HTTP status codes. Common errors include:
Retry failed requests with exponential backoff.
Query NCBI Gene using E-utilities (ESearch, ESummary, EFetch).
python scripts/query_gene.py --search "BRCA1" --organism "human"
python scripts/query_gene.py --id 672 --format json
python scripts/query_gene.py --search "insulin[gene] AND diabetes[disease]"
Fetch comprehensive gene data using NCBI Datasets API.
python scripts/fetch_gene_data.py --gene-id 672
python scripts/fetch_gene_data.py --symbol BRCA1 --taxon human
python scripts/fetch_gene_data.py --symbol TP53 --taxon "Homo sapiens" --output json
Process multiple gene queries efficiently.
python scripts/batch_gene_lookup.py --file gene_list.txt --organism human
python scripts/batch_gene_lookup.py --ids 672,7157,5594 --output results.json
For detailed API documentation including endpoints, parameters, response formats, and examples, refer to:
references/api_reference.md - Comprehensive API documentation for E-utilities and Datasets APIreferences/common_workflows.md - Additional examples and use case patternsSearch these references when needing specific API endpoint details, parameter options, or response structure information.
NCBI Gene data can be retrieved in multiple formats:
Choose JSON for modern applications, XML for legacy systems requiring detailed metadata, and FASTA for sequence analysis workflows.
This skill includes:
query_gene.py - Query genes using E-utilities (ESearch, ESummary, EFetch)fetch_gene_data.py - Fetch gene data using NCBI Datasets APIbatch_gene_lookup.py - Handle multiple gene queries efficientlyapi_reference.md - Detailed API documentation for both E-utilities and Datasets APIcommon_workflows.md - Examples of common gene queries and use casesWeekly Installs
125
Repository
GitHub Stars
22.6K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code105
opencode97
cursor93
gemini-cli91
antigravity88
codex81
lark-cli 共享规则:飞书资源操作指南与权限配置详解
39,000 周安装