This skill enables AI agents to help you query UniProt programmatically using the REST API to retrieve protein sequences, annotations, and functional information.
9 stars
0 votes
0 copies
0 views
Added October 11, 2026
ai-agentsbashapi
Works with
api
Security analysis
A96/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Are you the author of 572 Usage Guide 27a8f0d1?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-572-usage-guide-27a8f0d1)
# UniProt Access - Usage Guide
## Overview
This skill enables AI agents to help you query UniProt programmatically using the REST API to retrieve protein sequences, annotations, and functional information.
## Prerequisites
```bash
pip install requests
```
## Quick Start
Tell your AI agent what you want to do:
- "Download the FASTA sequence for UniProt P04637"
- "Search UniProt for all human kinases"
- "Map these gene names to UniProt accessions"
- "Get functional annotations for BRCA1"
## Example Prompts
### Sequence Retrieval
> "Download the protein sequence for UniProt accession P53_HUMAN"
### Protein Search
> "Find all reviewed human proteins with 'transcription factor' in their name"
### ID Mapping
> "Convert these gene names to UniProt IDs: TP53, BRCA1, EGFR"
### Bulk Download
> "Download all Swiss-Prot entries for E. coli K-12 as FASTA"
### Specific Fields
> "Get accession, gene name, and subcellular location for all human membrane proteins"
## What the Agent Will Do
1. Construct the appropriate REST API query
2. Choose the right endpoint (search, stream, idmapping)
3. Set output format (FASTA, JSON, TSV, XML)
4. Handle pagination for large result sets
5. Parse and present the results
## Output Formats
| Format | Use Case |
|--------|----------|
| `fasta` | Sequences for alignment/BLAST |
| `json` | Programmatic parsing |
| `tsv` | Tabular analysis, pandas |
| `xml` | Full structured data |
| `txt` | Human-readable flat file |
| `gff` | Feature coordinates |
## Tips
- Use `reviewed:true` for Swiss-Prot (curated) entries only
- Use the stream endpoint for >500 results
- Specify fields in TSV format to reduce data transfer
- Be polite with requests - add delays for batch queries
- Cache results when possible - UniProt updates frequently but not constantly