Alterlab brenda

From AlterLab-IEU/AlterLab-Academic-Skills · View interactive version

Alterlab brenda is an AI agent skill from the GitHub repository AlterLab-IEU/AlterLab-Academic-Skills. Access the BRENDA enzyme database — keyless through its public enzyme pages and DSMZ SPARQL endpoint, or through its SOAP API with an optional login — to retrieve kinetic parameters (Km, kcat, kcat/Km, Ki, IC50), pH and temperature optima, inhibitors and activators, reaction equations, organism data

How to use this skill

Skill file

BRENDA Database

Overview

BRENDA (BRaunschweig ENzyme DAtabase) is the world's most comprehensive enzyme information

system, containing detailed enzyme data from scientific literature. Query kinetic parameters

(Km, kcat, Ki), reaction equations, substrate specificities, organism information, and optimal

conditions — with no login: every BRENDA table for an EC number is on its public enzyme

page, and DSMZ (BRENDA's operator) runs a keyless SPARQL endpoint over the same data. The

SOAP API is an optional backend for users with a BRENDA account.

When to Use This Skill

This skill should be used when:

Does NOT Trigger

| Scenario | Use Instead |

|----------|-------------|

| Metabolic pathway maps, KEGG Orthology, or compound-to-pathway mapping | alterlab-kegg |

| Genome-scale flux simulation (FBA/FVA, knockouts) | alterlab-cobrapy |

| Drug/compound bioactivity (IC50, Ki) against drug targets | alterlab-chembl |

| Protein sequence, domains, or GO annotation of an enzyme | alterlab-uniprot |

Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-kegg) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.

Core Capabilities

BRENDA access is organized into nine capability areas. Copy-ready snippets for each live in

references/capabilities.md.

  1. Kinetic parameter retrieval — Km, kcat, Vmax by EC number / organism / substrate.
  2. Reaction information — reaction equations and stoichiometry.
  3. Enzyme discovery — find enzymes by substrate, product, or reaction pattern.
  4. Organism-specific data — compare enzyme properties across organisms.
  5. Environmental parameters — optimal/stability pH and temperature, cofactors.
  6. Substrate specificity — Km/Vmax/kcat per substrate, affinity ranking.
  7. Inhibition and activation — Ki, IC50, activators and mechanisms.
  8. Enzyme engineering support — thermophilic homologs, pH-stable variants.
  9. Kinetic modeling — modeling parameters and Michaelis-Menten plots.

Keyless Quick Start (default)

scripts/brenda_web.py (standard library, no install). Verified live 2026-10-22:

W=scripts/brenda_web.py
python $W list 1.1.1.1                                    # 44 tables; KM VALUE 1064 rows
python $W table 1.1.1.1 km --substrate ethanol --csv      # 149 Km rows, 56 organisms
python $W table 1.1.1.1 km --substrate ethanol --organism "Saccharomyces cerevisiae"
python $W table 1.1.1.27 ki --csv                          # LDH Ki VALUE, 82 rows
python $W table 1.1.1.1 temperature_optimum                # Pyrococcus furiosus 100 °C ...
python $W enzymes-for 2-phenylethanol                      # SPARQL: 2.3.1.84, 1.1.1.2, 1.1.1.1, ...
python $W reactions 2-phenylethanol --ec 1.1.1.1           # 2-phenylethanol + NAD(+) = phenylacetaldehyde + NADH
python $W enzymes-for "oxamic acid" --role Inhibitor       # names are BRENDA ligand names, exact

Table aliases: km, kcat (TURNOVER NUMBER), kcat_km, ki, ic50, inhibitor,

activator, specific_activity, ph_optimum, ph_range, ph_stability,

temperature_optimum, temperature_range, temperature_stability, organism,

substrate (substrate/product pairs with reversibility), natural_substrate, reaction,

cofactor, metals. Every row carries ORGANISM, UNIPROT, COMMENTARY (pH, °C, mutant,

isoenzyme) and the BRENDA LITERATURE id with a literature.php link — report them, since

BRENDA values are per-publication, not consensus values.

Etiquette: one page per EC number holds all tables (cached for 7 days in

./brenda_web_cache); the script waits 2 s between requests (robots.txt Crawl-delay: 2).

Data are CC BY 4.0 — cite BRENDA. The SPARQL graph has reactions, substrates/products,

inhibitors, activators and organisms but no numeric kinetics; numbers come from the pages.

Coverage, and where to look when BRENDA is thin (all keyless, verified 2026-10-22):

| Source | Covers | Thinner on |

|--------|--------|-----------|

| BRENDA enzyme pages (brenda_web.py table) | Km, kcat, kcat/Km, Ki, IC50, specific activity, pH/temperature optimum/range/stability, inhibitors, activators, cofactors, organisms, substrates/products, literature | organisms nobody measured — e.g. EC 6.3.1.2 has 13 E. coli Km rows but none for S. cerevisiae or T. thermophilus; say so rather than infer |

| BRENDA SPARQL (enzymes-for, reactions) | which EC numbers use a compound as substrate/product/inhibitor/activator; reaction equations | numeric values; exact BRENDA ligand names only |

| UniProt REST (rest.uniprot.org/uniprotkb/search?query=ec:1.1.1.1&fields=accession,organism_name,kinetics,ph_dependence,temp_dependence&format=tsv) | curated KM/Vmax/kcat comments, pH and temperature dependence per protein entry | far fewer values than BRENDA; many entries have none |

| Rhea (www.rhea-db.org/rhea?query=2-phenylethanol&columns=rhea-id,equation,ec&format=tsv) | balanced reaction equations with ChEBI ids and EC links | kinetics; some reactions lack an EC |

| ExPASy ENZYME (enzyme.expasy.org/EC/1.1.1.1.txt) | official name, alternative names, catalytic activity, cofactors, comments | kinetics, organisms |

SABIO-RK moved to a new web application in 2026; its old sabioRestWebServices paths now

return the web page, not data, so it is not scripted here — use its web search by hand if

needed.

Core Workflow

The typical entry point retrieves kinetic data by EC number, then parses the delimited

response. brenda_client picks the backend: keyless web pages by default, SOAP when a

BRENDA login is set (BRENDA_BACKEND=web|soap|auto forces one; soap without a login

fails with an error naming the variables instead of answering from the web pages):

from scripts.brenda_client import get_km_values
from scripts.brenda_queries import parse_km_entry

km_data = get_km_values("1.1.1.1", organism="Saccharomyces cerevisiae")
for entry in km_data:
    parsed = parse_km_entry(entry)
    # parse_km_entry keys mirror the raw BRENDA fields: 'kmValue' (string)
    # plus a derived 'km_value_numeric' (float). There is no 'km_value' key.
    print(parsed.get("organism"), parsed.get("substrate"), parsed.get("km_value_numeric"))

EC numbers must be fully qualified (e.g. 1.1.1.1, not 1.1.1). On the web backend an EC

number is needed for kinetics (find candidates first with search_enzymes_by_substrate,

which uses SPARQL); get_reactions("*", reaction="*2-phenylethanol*") searches across EC

numbers. get_inhibitors, get_activators, get_environmental_parameters(ec, organism=...)

and find_thermophilic_homologs(ec, min_temp, substrate=...) read BRENDA's dedicated tables

on the web backend. See references/data_formats.md for the response format.

SOAP calling convention (optional backend). The brenda_zeep.wsdl operations take separate arguments in

WSDL order — `client.service.getKmValue(email, sha256_pw, "ecNumber*1.1.1.1",

"organismHomo sapiens", "kmValue", "kmValueMaximum", "substrate", "commentary*",

"ligandStructureId", "literature")` — and return lists of typed objects. A single

comma-joined string fails in zeep ("Missing element password"). scripts/brenda_client.py

handles the argument order and converts results to field*value#… strings for the parsers.

Usage policy. BRENDA asks clients to send at most one request per second (the client

enforces this; the web backend waits 2 s), and its data are licensed CC BY 4.0 — cite BRENDA

in derived work.

Installation Requirements

Nothing for the keyless path. Optional extras:

uv pip install pandas matplotlib seaborn   # exports and plots
uv pip install zeep                        # only for the optional SOAP backend

Optional: SOAP Login

The SOAP backend needs a free BRENDA account; everything above works without it.

  1. Create .env file:
BRENDA_EMAIL=your.email@example.com
BRENDA_PASSWORD=your_brenda_password
  1. Or set environment variables:
export BRENDA_EMAIL="your.email@example.com"
export BRENDA_PASSWORD="your_brenda_password"
  1. Register for BRENDA access:

Helper Scripts

This skill ships these Python helper scripts under scripts/:

importable get_table, enzymes_for, reactions_for, sparql.

get_km_values / get_reactions.

comparison, environmental parameters, specificity, inhibitors/activators, engineering targets).

Full function inventories and usage are in references/helper_scripts.md.

Reference Index

EC number structure/validation, response specs, error codes, literature citation formats.

engineering targets, pathway construction, kinetic analysis, industrial selection).

error handling, troubleshooting, and additional resources.

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.