uniprot-database by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill uniprot-databaseUniProt 是全球领先的综合性蛋白质序列和功能信息资源。可通过名称、基因或登录号搜索蛋白质,以 FASTA 格式检索序列,跨数据库进行 ID 映射,通过 REST API 访问 Swiss-Prot/TrEMBL 注释以进行蛋白质分析。
此技能应在以下情况使用:
使用自然语言查询或结构化搜索语法搜索 UniProt。
常见搜索模式:
# 按蛋白质名称搜索
query = "insulin AND organism_name:\"Homo sapiens\""
# 按基因名称搜索
query = "gene:BRCA1 AND reviewed:true"
# 按登录号搜索
query = "accession:P12345"
# 按序列长度搜索
query = "length:[100 TO 500]"
# 按分类学搜索
query = "taxonomy_id:9606" # 人类蛋白质
# 按 GO 术语搜索
query = "go:0005515" # 蛋白质结合
使用 API 搜索端点:https://rest.uniprot.org/uniprotkb/search?query={query}&format={format}
支持的格式: JSON, TSV, Excel, XML, FASTA, RDF, TXT
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
通过登录号检索特定的蛋白质条目。
登录号格式:
检索端点: https://rest.uniprot.org/uniprotkb/{accession}.{format}
示例:https://rest.uniprot.org/uniprotkb/P12345.fasta
在不同数据库系统之间映射蛋白质标识符,并高效检索多个条目。
ID 映射工作流程:
https://rest.uniprot.org/idmapping/runhttps://rest.uniprot.org/idmapping/status/{jobId}https://rest.uniprot.org/idmapping/results/{jobId}支持映射的数据库:
/references/id_mapping_databases.md)限制:
对于超过分页限制的大型查询,请使用流式端点:
https://rest.uniprot.org/uniprotkb/stream?query={query}&format={format}
流式端点返回所有结果而无需分页,适用于下载完整数据集。
精确指定要检索的字段,以实现高效的数据传输。
常见字段:
accession - UniProt 登录号id - 条目名称gene_names - 基因名称organism_name - 生物体protein_name - 蛋白质名称sequence - 氨基酸序列length - 序列长度go_* - 基因本体注释cc_* - 注释字段(功能、相互作用等)ft_* - 特征注释(结构域、位点等)示例: https://rest.uniprot.org/uniprotkb/search?query=insulin&fields=accession,gene_names,organism_name,length,sequence&format=tsv
完整字段列表请参见 /references/api_fields.md。
对于程序化访问,请使用提供的辅助脚本 scripts/uniprot_client.py,它实现了以下功能:
search_proteins(query, format) - 使用任何查询搜索 UniProtget_protein(accession, format) - 检索单个蛋白质条目map_ids(ids, from_db, to_db) - 在标识符类型之间映射batch_retrieve(accessions, format) - 检索多个条目stream_results(query, format) - 流式传输大型结果集其他 Python 包:
布尔运算符:
kinase AND organism_name:human
(diabetes OR insulin) AND reviewed:true
cancer NOT lung
特定字段搜索:
gene:BRCA1
accession:P12345
organism_id:9606
taxonomy_name:"Homo sapiens"
annotation:(type:signal)
范围查询:
length:[100 TO 500]
mass:[50000 TO 100000]
通配符:
gene:BRCA*
protein_name:kinase*
全面的语法文档请参见 /references/query_syntax.md。
reviewed:true 过滤 Swiss-Prot(人工管理)条目uniprot_client.py - Python 客户端,包含用于常见 UniProt 操作的辅助函数,包括搜索、检索、ID 映射和流式传输。
api_fields.md - 可用于自定义查询的完整字段列表id_mapping_databases.md - 支持 ID 映射操作的数据库query_syntax.md - 包含高级示例的全面查询语法api_examples.md - 多种语言(Python, curl, R)的代码示例每周安装数
115
代码仓库
GitHub 星标数
22.6K
首次出现
2026 年 1 月 21 日
安全审计
安装于
claude-code98
opencode89
cursor85
gemini-cli84
antigravity81
codex74
UniProt is the world's leading comprehensive protein sequence and functional information resource. Search proteins by name, gene, or accession, retrieve sequences in FASTA format, perform ID mapping across databases, access Swiss-Prot/TrEMBL annotations via REST API for protein analysis.
This skill should be used when:
Search UniProt using natural language queries or structured search syntax.
Common search patterns:
# Search by protein name
query = "insulin AND organism_name:\"Homo sapiens\""
# Search by gene name
query = "gene:BRCA1 AND reviewed:true"
# Search by accession
query = "accession:P12345"
# Search by sequence length
query = "length:[100 TO 500]"
# Search by taxonomy
query = "taxonomy_id:9606" # Human proteins
# Search by GO term
query = "go:0005515" # Protein binding
Use the API search endpoint: https://rest.uniprot.org/uniprotkb/search?query={query}&format={format}
Supported formats: JSON, TSV, Excel, XML, FASTA, RDF, TXT
Retrieve specific protein entries by accession number.
Accession number formats:
Retrieve endpoint: https://rest.uniprot.org/uniprotkb/{accession}.{format}
Example: https://rest.uniprot.org/uniprotkb/P12345.fasta
Map protein identifiers between different database systems and retrieve multiple entries efficiently.
ID Mapping workflow:
https://rest.uniprot.org/idmapping/runhttps://rest.uniprot.org/idmapping/status/{jobId}https://rest.uniprot.org/idmapping/results/{jobId}Supported databases for mapping:
/references/id_mapping_databases.md)Limitations:
For large queries that exceed pagination limits, use the stream endpoint:
https://rest.uniprot.org/uniprotkb/stream?query={query}&format={format}
The stream endpoint returns all results without pagination, suitable for downloading complete datasets.
Specify exactly which fields to retrieve for efficient data transfer.
Common fields:
accession - UniProt accession numberid - Entry namegene_names - Gene name(s)organism_name - Organismprotein_name - Protein namessequence - Amino acid sequencelength - Sequence lengthgo_* - Gene Ontology annotationscc_* - Comment fields (function, interaction, etc.)ft_* - Feature annotations (domains, sites, etc.)Example: https://rest.uniprot.org/uniprotkb/search?query=insulin&fields=accession,gene_names,organism_name,length,sequence&format=tsv
See /references/api_fields.md for complete field list.
For programmatic access, use the provided helper script scripts/uniprot_client.py which implements:
search_proteins(query, format) - Search UniProt with any queryget_protein(accession, format) - Retrieve single protein entrymap_ids(ids, from_db, to_db) - Map between identifier typesbatch_retrieve(accessions, format) - Retrieve multiple entriesstream_results(query, format) - Stream large result setsAlternative Python packages:
Boolean operators:
kinase AND organism_name:human
(diabetes OR insulin) AND reviewed:true
cancer NOT lung
Field-specific searches:
gene:BRCA1
accession:P12345
organism_id:9606
taxonomy_name:"Homo sapiens"
annotation:(type:signal)
Range queries:
length:[100 TO 500]
mass:[50000 TO 100000]
Wildcards:
gene:BRCA*
protein_name:kinase*
See /references/query_syntax.md for comprehensive syntax documentation.
reviewed:true for Swiss-Prot (manually curated) entriesuniprot_client.py - Python client with helper functions for common UniProt operations including search, retrieval, ID mapping, and streaming.
api_fields.md - Complete list of available fields for customizing queriesid_mapping_databases.md - Supported databases for ID mapping operationsquery_syntax.md - Comprehensive query syntax with advanced examplesapi_examples.md - Code examples in multiple languages (Python, curl, R)Weekly Installs
115
Repository
GitHub Stars
22.6K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code98
opencode89
cursor85
gemini-cli84
antigravity81
codex74
Lark CLI IM 即时消息管理工具:机器人/用户身份操作聊天、消息、文件下载
31,500 周安装
起草技能指南:克服写作障碍,高效完成初稿的完整诊断与解决方案
107 周安装
find-skills 技能搜索工具:AI智能体技能包管理器,快速查找安装开发工具
107 周安装
TOON v2.0 格式专家 - 为AI节省30-60%令牌的数据压缩工具 | 结构化数据优化
107 周安装
Supabase 渗透测试技能帮助 | 24项安全审计工具快速参考与使用指南
107 周安装
Proxychains 网络代理工具:自动解决GitHub/PyPI/npm访问失败和连接超时问题
108 周安装
Windows 基础设施管理员:Active Directory、组策略、PowerShell 自动化与混合身份管理专家
108 周安装