Uniprot

From omar-A-hassan/medsci-agent · View interactive version

Uniprot is an AI agent skill from the GitHub repository omar-A-hassan/medsci-agent. UniProt protein database - accessions, annotations, and programmatic access

How to use this skill

Skill file

UniProt Protein Database

Overview

UniProt is the comprehensive resource for protein sequence and functional annotation. UniProtKB has two sections: Swiss-Prot (reviewed, curated) and TrEMBL (unreviewed, automated).

REST API Access

import requests

# Fetch a single entry
r = requests.get("https://rest.uniprot.org/uniprotkb/P04637.json")
entry = r.json()
print(entry["proteinDescription"]["recommendedName"]["fullName"]["value"])

Search Queries

params = {
    "query": "(gene:TP53) AND (organism_id:9606) AND (reviewed:true)",
    "format": "json",
    "size": 10,
    "fields": "accession,gene_names,protein_name,organism_name,length"
}
r = requests.get("https://rest.uniprot.org/uniprotkb/search", params=params)
results = r.json()["results"]

Key Fields

Common Query Syntax

Key Details

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.