hmdb-database
Parse HMDB (Human Metabolome Database) local XML for metabolite info, chemical properties, biological context, disease links, spectra, and cross-DB mapping. No REST API — uses ~6 GB XML download. Use drugbank-database-access for drugs; pubchem-compound-search for live lookups.
npx skills add BioTender-max/awesome-bio-agent-skills --skill hmdb-database --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Parses HMDB (Human Metabolome Database) local XML to retrieve metabolite information, chemical properties, biological context, disease associations, spectral data, and cross-database mappings. It operates without a REST API and relies on a local XML download (~6 GB). For drugs and live lookups, it directs to drugbank-database-access and pubchem-compound-search respectively.
How it works
- Uses Python's ElementTree to parse hmdb_metabolites.xml and provides utilities to:
- Build a metabolite lookup index by HMDB ID or name, and retrieve fields like accession, name, chemical_formula, MW, SMILES, InChI, and inchikey.
- Extract chemical properties (e.g., molecular weight, formula, SMILES, InChI, inchikey, state).
- Retrieve classification from taxonomy (kingdom, class, etc.).
- Gather biological context: pathways, biofluid/tissue/cellular locations, and enzymes with protein mappings.
- Obtain disease associations with OMIM IDs and PubMed references.
- Access concentration data (normal/abnormal) filtered by biospecimen (e.g., Blood).
- Extract spectral data: MS and NMR peak lists by spectrum type, with peak details.
- Compile cross-database mappings to KEGG, PubChem, ChEBI, DrugBank, etc.
- Provide examples and quick-start snippets for typical tasks.
- The skill includes concrete code patterns for setup, lookup, and each data facet, showing how to parse elements and attributes using the HMDB XML namespace.
When to use it
- When you need metabolite information by HMDB ID or name and require chemical properties (MW, formula, SMILES), biocontext (pathways, enzymes), disease associations, biomarker data, or spectral data from the local HMDB XML.
- When you must map HMDB IDs to KEGG, PubChem, ChEBI, DrugBank, or other databases.
- When live web queries are not available and a local XML workflow is required.
What it can touch
- The skill uses Python code to parse the local XML file hmdb_metabolites.xml and accesses fields via the HMDB namespace (e.g., hmdb:accession, hmdb:name, hmdb:smiles, hmdb:pathways, hmdb:diseases, hmdb:protein_associations, hmdb:spectra, hmdb:kegg_id, etc.).
- It relies on the local file (no REST API) and does not perform network requests itself within the provided routines.
Caveats
- Dependency on a local HMDB XML download (~6 GB uncompressed) and appropriate Python packages (lxml or xml.etree.ElementTree, pandas).
- Not all entries have every field populated (e.g., some spectra, enzyme associations, or concentrations may be missing).
- No explicit handling of licensing beyond noting the CC-BY-4.0 license in the description; usage should comply with HMDB and referenced resources.
# HMDB Database — Local XML Access ## Overview Query the Human Metabolome Database (HMDB, 220,000+ metabolite entries) by parsing locally downloaded XML with Python's ElementTree. Covers metabolite lookup, chemical properties, biological context (pathways, enzymes, biofluids), disease/biomarker associations, spectral data for metabolite identification, and cross-database ID mapping to KEGG, PubChem, ChEBI, and DrugBank. ## When to Use - Looking up metabolite information (description, chemical class, cellular location) by HMDB ID or name - Retrieving chemical properties (molecular weight, formula, SMILES, InChI, logP, PSA) for metabolomics analysis - Finding pathway associations and enzyme links for a set of metabolites - Identifying biofluid/tissue locations of metabolites (blood, urine, CSF, saliva) - Querying disease associations and normal/abnormal concentration ranges for biomarker discovery - Extracting NMR or MS spectral peak lists for metabolite identification - Mapping HMDB IDs to KEGG, PubChem, ChEBI, DrugBank, or other databases - For drug-specific data (interactions, targets, pharmacology) use `drugbank-database-access` instead - For live compound property queries withou
- Overview
- When to Use
- Prerequisites
- Quick Start
- Core API
- 1. XML Setup and Metabolite Lookup
- 2. Chemical Properties
- 3. Biological Context
- 4. Disease and Biomarker Queries
- 5. Spectral Data
- 6. Cross-Database Mapping
- Key Concepts
- HMDB XML Entry Structure
- Data Field Completeness
pip install lxml pandas
What does the hmdb-database skill do?
Parse HMDB (Human Metabolome Database) local XML for metabolite info, chemical properties, biological context, disease links, spectra, and cross-DB mapping. No REST API — uses ~6 GB XML download. Use drugbank-database-access for drugs; pubchem-compound-search for live lookups.
How do I install it?
Run `npx skills add BioTender-max/awesome-bio-agent-skills --skill hmdb-database --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From BioTender-max/awesome-bio-agent-skills, a repository with 135 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
