HMDB Database
Overview
The Human Metabolome Database (HMDB) is a comprehensive, freely available resource containing detailed information about small molecule metabolites found in the human body.
When to Use This Skill
This skill should be used when performing metabolomics research, clinical chemistry, biomarker discovery, or metabolite identification tasks.
Database Contents
HMDB version 5.0 (current as of 2025) contains:
- 220,945 metabolite entries covering both water-soluble and lipid-soluble compounds
- 8,610 protein sequences for enzymes and transporters involved in metabolism
- 130+ data fields per metabolite including:
- Chemical properties (structure, formula, molecular weight, InChI, SMILES)
- Clinical data (biomarker associations, diseases, normal/abnormal concentrations)
- Biological information (pathways, reactions, locations)
- Spectroscopic data (NMR, MS, MS-MS spectra)
- External database links (KEGG, PubChem, MetaCyc, ChEBI, PDB, UniProt, GenBank)
Core Capabilities
1. Web-Based Metabolite Searches
Access HMDB through the web interface at https://www.hmdb.ca/ for:
Text Searches:
- Search by metabolite name, synonym, or identifier (HMDB ID)
- Example HMDB IDs: HMDB0000001, HMDB0001234
- Search by disease associations or pathway involvement
- Query by biological specimen type (urine, serum, CSF, saliva, feces, sweat)
Structure-Based Searches:
- Use ChemQuery for structure and substructure searches
- Search by molecular weight or molecular weight range
- Use SMILES or InChI strings to find compounds
Spectral Searches:
- LC-MS spectral matching
- GC-MS spectral matching
- NMR spectral searches for metabolite identification
Advanced Searches:
- Combine multiple criteria (name, properties, concentration ranges)
- Filter by biological locations or specimen types
- Search by protein/enzyme associations
2. Accessing Metabolite Information
When retrieving metabolite data, HMDB provides:
Chemical Information:
- Systematic name, traditional names, and synonyms
- Chemical formula and molecular weight
- Structure representations (2D/3D, SMILES, InChI, MOL file)
- Chemical taxonomy and classification
Biological Context:
- Metabolic pathways and reactions
- Associated enzymes and transporters
- Subcellular locations
- Biological roles and functions
Clinical Relevance:
- Normal concentration ranges in biological fluids
- Biomarker associations with diseases
- Clinical significance
- Toxicity information when applicable
Analytical Data:
- Experimental and predicted NMR spectra
- MS and MS-MS spectra
- Retention times and chromatographic data
- Reference peaks for identification
3. Downloadable Datasets
HMDB offers bulk data downloads at https://www.hmdb.ca/downloads in multiple formats:
Available Formats:
- XML: Complete metabolite, protein, and spectra data
- SDF: Metabolite structure files for cheminformatics
- FASTA: Protein and gene sequences
- TXT: Raw spectra peak lists
- CSV/TSV: Tabular data exports
Dataset Categories:
- All metabolites or filtered by specimen type
- Protein/enzyme sequences
- Experimental and predicted spectra (NMR, GC-MS, MS-MS)
- Pathway information
Best Practices:
- Download XML format for comprehensive data including all fields
- Use SDF format for structure-based analysis and cheminformatics workflows
- Parse CSV/TSV formats for integration with data analysis pipelines
- Check version dates to ensure up-to-date data (current: v5.0, 2023-07-01)
Usage Requirements:
- Free for academic and non-commercial research
- Commercial use requires explicit permission (contact samackay@ualberta.ca)
- Cite HMDB publication when using data
4. Programmatic API Access
API Availability:
HMDB does not provide a public REST API. Programmatic access requires contacting the development team:
Alternative Programmatic Access:
- R/Bioconductor: Use the
hmdbQuery package for R-based queries
- Install:
BiocManager::install("hmdbQuery")
- Provides HTTP-based querying functions
- Downloaded datasets: Parse XML or CSV files locally for programmatic analysis
- Web scraping: Not recommended; contact team for proper API access instead
5. Common Research Workflows
Metabolite Identification in Untargeted Metabolomics:
- Obtain experimental MS or NMR spectra from samples
- Use HMDB spectral search tools to match against reference spectra
- Verify candidates by checking molecular weight, retention time, and MS-MS fragmentation
- Review biological plausibility (expected in specimen type, known pathways)
Biomarker Discovery:
- Search HMDB for metabolites associated with disease of interest
- Review concentration ranges in normal vs. disease states
- Identify metabolites with strong differential abundance
- Examine pathway context and biological mechanisms
- Cross-reference with literature via PubMed links
Pathway Analysis:
- Identify metabolites of interest from experimental data
- Look up HMDB entries for each metabolite
- Extract pathway associations and enzymatic reactions
- Use linked SMPDB (Small Molecule Pathway Database) for pathway diagrams
- Identify pathway enrichment for biological interpretation
Database Integration:
- Download HMDB data in XML or CSV format
- Parse and extract relevant fields for local database
- Link with external IDs (KEGG, PubChem, ChEBI) for cross-database queries
- Build local tools or pipelines incorporating HMDB reference data
Related HMDB Resources
The HMDB ecosystem includes related databases:
- DrugBank: ~2,832 drug compounds with pharmaceutical information
- T3DB (Toxin and Toxin Target Database): ~3,670 toxic compounds
- SMPDB (Small Molecule Pathway Database): Pathway diagrams and maps
- FooDB: ~70,000 food component compounds
These databases share similar structure and identifiers, enabling integrated queries across human metabolome, drug, toxin, and food databases.
Best Practices
Data Quality:
- Verify metabolite identifications with multiple evidence types (spectra, structure, properties)
- Check experimental vs. predicted data quality indicators
- Review citations and evidence for biomarker associations
Version Tracking:
- Note HMDB version used in research (current: v5.0)
- Databases are updated periodically with new entries and corrections
- Re-query for updates when publishing to ensure current information
Citation:
- Always cite HMDB in publications using the database
- Reference specific HMDB IDs when discussing metabolites
- Acknowledge data sources for downloaded datasets
Performance:
- For large-scale analysis, download complete datasets rather than repeated web queries
- Use appropriate file formats (XML for comprehensive data, CSV for tabular analysis)
- Consider local caching of frequently accessed metabolite information
Reference Documentation
See references/hmdb_data_fields.md for detailed information about available data fields and their meanings.
1---
2name: hmdb-database
3description: "Access Human Metabolome Database (220K+ metabolites). Search by name/ID/structure, retrieve chemical properties, biomarker data, NMR/MS spectra, pathways, for metabolomics and identification."
4metadata:
5 source: https://skillmd.com/skills/chen-yu-hao/hmdb-database
6---
7
8# HMDB Database
9
10## Overview
11
12The Human Metabolome Database (HMDB) is a comprehensive, freely available resource containing detailed information about small molecule metabolites found in the human body.
13
14## When to Use This Skill
15
16This skill should be used when performing metabolomics research, clinical chemistry, biomarker discovery, or metabolite identification tasks.
17
18## Database Contents
19
20HMDB version 5.0 (current as of 2025) contains:
21
22- **220,945 metabolite entries** covering both water-soluble and lipid-soluble compounds
23- **8,610 protein sequences** for enzymes and transporters involved in metabolism
24- **130+ data fields per metabolite** including:
25 - Chemical properties (structure, formula, molecular weight, InChI, SMILES)
26 - Clinical data (biomarker associations, diseases, normal/abnormal concentrations)
27 - Biological information (pathways, reactions, locations)
28 - Spectroscopic data (NMR, MS, MS-MS spectra)
29 - External database links (KEGG, PubChem, MetaCyc, ChEBI, PDB, UniProt, GenBank)
30
31## Core Capabilities
32
33### 1. Web-Based Metabolite Searches
34
35Access HMDB through the web interface at https://www.hmdb.ca/ for:
36
37**Text Searches:**
38- Search by metabolite name, synonym, or identifier (HMDB ID)
39- Example HMDB IDs: HMDB0000001, HMDB0001234
40- Search by disease associations or pathway involvement
41- Query by biological specimen type (urine, serum, CSF, saliva, feces, sweat)
42
43**Structure-Based Searches:**
44- Use ChemQuery for structure and substructure searches
45- Search by molecular weight or molecular weight range
46- Use SMILES or InChI strings to find compounds
47
48**Spectral Searches:**
49- LC-MS spectral matching
50- GC-MS spectral matching
51- NMR spectral searches for metabolite identification
52
53**Advanced Searches:**
54- Combine multiple criteria (name, properties, concentration ranges)
55- Filter by biological locations or specimen types
56- Search by protein/enzyme associations
57
58### 2. Accessing Metabolite Information
59
60When retrieving metabolite data, HMDB provides:
61
62**Chemical Information:**
63- Systematic name, traditional names, and synonyms
64- Chemical formula and molecular weight
65- Structure representations (2D/3D, SMILES, InChI, MOL file)
66- Chemical taxonomy and classification
67
68**Biological Context:**
69- Metabolic pathways and reactions
70- Associated enzymes and transporters
71- Subcellular locations
72- Biological roles and functions
73
74**Clinical Relevance:**
75- Normal concentration ranges in biological fluids
76- Biomarker associations with diseases
77- Clinical significance
78- Toxicity information when applicable
79
80**Analytical Data:**
81- Experimental and predicted NMR spectra
82- MS and MS-MS spectra
83- Retention times and chromatographic data
84- Reference peaks for identification
85
86### 3. Downloadable Datasets
87
88HMDB offers bulk data downloads at https://www.hmdb.ca/downloads in multiple formats:
89
90**Available Formats:**
91- **XML**: Complete metabolite, protein, and spectra data
92- **SDF**: Metabolite structure files for cheminformatics
93- **FASTA**: Protein and gene sequences
94- **TXT**: Raw spectra peak lists
95- **CSV/TSV**: Tabular data exports
96
97**Dataset Categories:**
98- All metabolites or filtered by specimen type
99- Protein/enzyme sequences
100- Experimental and predicted spectra (NMR, GC-MS, MS-MS)
101- Pathway information
102
103**Best Practices:**
104- Download XML format for comprehensive data including all fields
105- Use SDF format for structure-based analysis and cheminformatics workflows
106- Parse CSV/TSV formats for integration with data analysis pipelines
107- Check version dates to ensure up-to-date data (current: v5.0, 2023-07-01)
108
109**Usage Requirements:**
110- Free for academic and non-commercial research
111- Commercial use requires explicit permission (contact samackay@ualberta.ca)
112- Cite HMDB publication when using data
113
114### 4. Programmatic API Access
115
116**API Availability:**
117HMDB does not provide a public REST API. Programmatic access requires contacting the development team:
118
119- **Academic/Research groups:** Contact eponine@ualberta.ca (Eponine) or samackay@ualberta.ca (Scott)
120- **Commercial organizations:** Contact samackay@ualberta.ca (Scott) for customized API access
121
122**Alternative Programmatic Access:**
123- **R/Bioconductor**: Use the `hmdbQuery` package for R-based queries
124 - Install: `BiocManager::install("hmdbQuery")`
125 - Provides HTTP-based querying functions
126- **Downloaded datasets**: Parse XML or CSV files locally for programmatic analysis
127- **Web scraping**: Not recommended; contact team for proper API access instead
128
129### 5. Common Research Workflows
130
131**Metabolite Identification in Untargeted Metabolomics:**
1321. Obtain experimental MS or NMR spectra from samples
1332. Use HMDB spectral search tools to match against reference spectra
1343. Verify candidates by checking molecular weight, retention time, and MS-MS fragmentation
1354. Review biological plausibility (expected in specimen type, known pathways)
136
137**Biomarker Discovery:**
1381. Search HMDB for metabolites associated with disease of interest
1392. Review concentration ranges in normal vs. disease states
1403. Identify metabolites with strong differential abundance
1414. Examine pathway context and biological mechanisms
1425. Cross-reference with literature via PubMed links
143
144**Pathway Analysis:**
1451. Identify metabolites of interest from experimental data
1462. Look up HMDB entries for each metabolite
1473. Extract pathway associations and enzymatic reactions
1484. Use linked SMPDB (Small Molecule Pathway Database) for pathway diagrams
1495. Identify pathway enrichment for biological interpretation
150
151**Database Integration:**
1521. Download HMDB data in XML or CSV format
1532. Parse and extract relevant fields for local database
1543. Link with external IDs (KEGG, PubChem, ChEBI) for cross-database queries
1554. Build local tools or pipelines incorporating HMDB reference data
156
157## Related HMDB Resources
158
159The HMDB ecosystem includes related databases:
160
161- **DrugBank**: ~2,832 drug compounds with pharmaceutical information
162- **T3DB (Toxin and Toxin Target Database)**: ~3,670 toxic compounds
163- **SMPDB (Small Molecule Pathway Database)**: Pathway diagrams and maps
164- **FooDB**: ~70,000 food component compounds
165
166These databases share similar structure and identifiers, enabling integrated queries across human metabolome, drug, toxin, and food databases.
167
168## Best Practices
169
170**Data Quality:**
171- Verify metabolite identifications with multiple evidence types (spectra, structure, properties)
172- Check experimental vs. predicted data quality indicators
173- Review citations and evidence for biomarker associations
174
175**Version Tracking:**
176- Note HMDB version used in research (current: v5.0)
177- Databases are updated periodically with new entries and corrections
178- Re-query for updates when publishing to ensure current information
179
180**Citation:**
181- Always cite HMDB in publications using the database
182- Reference specific HMDB IDs when discussing metabolites
183- Acknowledge data sources for downloaded datasets
184
185**Performance:**
186- For large-scale analysis, download complete datasets rather than repeated web queries
187- Use appropriate file formats (XML for comprehensive data, CSV for tabular analysis)
188- Consider local caching of frequently accessed metabolite information
189
190## Reference Documentation
191
192See `references/hmdb_data_fields.md` for detailed information about available data fields and their meanings.