Pdb

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

Pdb is an AI agent skill from the GitHub repository omar-A-hassan/medsci-agent. RCSB PDB for 3D protein structures, resolution, and experimental methods

How to use this skill

Skill file

RCSB Protein Data Bank (PDB)

Overview

RCSB PDB hosts experimentally determined 3D structures of biological macromolecules solved by X-ray crystallography, cryo-EM, and NMR.

Search API

import requests

# Text search
url = "https://search.rcsb.org/rcsbsearch/v2/query"
query = {
    "query": {
        "type": "terminal",
        "service": "text",
        "parameters": {"attribute": "struct.title", "operator": "contains_words", "value": "kinase"}
    },
    "return_type": "entry"
}
r = requests.post(url, json=query)
pdb_ids = [hit["identifier"] for hit in r.json()["result_set"]]

Data API

# Fetch entry summary
r = requests.get("https://data.rcsb.org/rest/v1/core/entry/4HHB")
entry = r.json()

# Get polymer entities
r = requests.get("https://data.rcsb.org/rest/v1/core/polymer_entity/4HHB/1")

GraphQL API

query_gql = '{ entry(entry_id: "4HHB") { struct { title } rcsb_entry_info { resolution_combined } } }'
r = requests.post("https://data.rcsb.org/graphql", json={"query": query_gql})

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.