Chembl

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

Chembl is an AI agent skill from the GitHub repository omar-A-hassan/medsci-agent. ChEMBL database access for bioactivity data and target search

How to use this skill

Skill file

ChEMBL Database

Overview

ChEMBL is a large-scale bioactivity database maintained by EMBL-EBI. It contains binding, functional, and ADMET data for drug-like molecules against biological targets.

Python Client

from chembl_webresource_client.new_client import new_client

molecule = new_client.molecule
activity = new_client.activity
target = new_client.target

Search target by name

results = target.search("cyclooxygenase-2")
for t in results:
    print(t["target_chembl_id"], t["pref_name"], t["organism"])

Get bioactivity data for a target

acts = activity.filter(target_chembl_id="CHEMBL220", standard_type="IC50", pchembl_value__isnull=False)
for a in acts:
    print(a["molecule_chembl_id"], a["pchembl_value"], a["canonical_smiles"])

Retrieve molecule by SMILES or ChEMBL ID

mol = molecule.get("CHEMBL25")  # aspirin
mol = molecule.filter(molecule_structures__canonical_smiles="CC(=O)Oc1ccccc1C(=O)O")

Key Fields

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.