HMDB Data Fields Reference
This document provides detailed information about the data fields available in HMDB metabolite entries.
Metabolite Entry Structure
Each HMDB metabolite entry contains 130+ data fields organized into several categories:
Chemical Data Fields
Identification:
accession: Primary HMDB ID (e.g., HMDB0000001)
secondary_accessions: Previous HMDB IDs for merged entries
name: Primary metabolite name
synonyms: Alternative names and common names
chemical_formula: Molecular formula (e.g., C6H12O6)
average_molecular_weight: Average molecular weight in Daltons
monoisotopic_molecular_weight: Monoisotopic molecular weight
Structure Representations:
smiles: Simplified Molecular Input Line Entry System string
inchi: International Chemical Identifier string
inchikey: Hashed InChI for fast lookup
iupac_name: IUPAC systematic name
traditional_iupac: Traditional IUPAC name
Chemical Properties:
state: Physical state (solid, liquid, gas)
charge: Net molecular charge
logp: Octanol-water partition coefficient (experimental/predicted)
pka_strongest_acidic: Strongest acidic pKa value
pka_strongest_basic: Strongest basic pKa value
polar_surface_area: Topological polar surface area (TPSA)
refractivity: Molar refractivity
polarizability: Molecular polarizability
rotatable_bond_count: Number of rotatable bonds
acceptor_count: Hydrogen bond acceptor count
donor_count: Hydrogen bond donor count
Chemical Taxonomy:
kingdom: Chemical kingdom (e.g., Organic compounds)
super_class: Chemical superclass
class: Chemical class
sub_class: Chemical subclass
direct_parent: Direct chemical parent
alternative_parents: Alternative parent classifications
substituents: Chemical substituents present
description: Text description of the compound
Biological Data Fields
Metabolite Origins:
origin: Source of metabolite (endogenous, exogenous, drug metabolite, food component)
biofluid_locations: Biological fluids where found (blood, urine, saliva, CSF, etc.)
tissue_locations: Tissues where found (liver, kidney, brain, muscle, etc.)
cellular_locations: Subcellular locations (cytoplasm, mitochondria, membrane, etc.)
Biospecimen Information:
biospecimen: Type of biological specimen
status: Detection status (detected, expected, predicted)
concentration: Concentration ranges with units
concentration_references: Citations for concentration data
Normal and Abnormal Concentrations:
For each biofluid (blood, urine, saliva, CSF, feces, sweat):
- Normal concentration value and range
- Units (μM, mg/L, etc.)
- Age and gender considerations
- Abnormal concentration indicators
- Clinical significance
Pathway and Enzyme Information
Metabolic Pathways:
pathways: List of associated metabolic pathways
- Pathway name
- SMPDB ID (Small Molecule Pathway Database ID)
- KEGG pathway ID
- Pathway category
Enzymatic Reactions:
protein_associations: Enzymes and transporters
- Protein name
- Gene name
- Uniprot ID
- GenBank ID
- Protein type (enzyme, transporter, carrier, etc.)
- Enzyme reactions
- Enzyme kinetics (Km values)
Biochemical Context:
reactions: Biochemical reactions involving the metabolite
reaction_enzymes: Enzymes catalyzing reactions
cofactors: Required cofactors
inhibitors: Known enzyme inhibitors
Disease and Biomarker Associations
Disease Links:
diseases: Associated diseases and conditions
- Disease name
- OMIM ID (Online Mendelian Inheritance in Man)
- Disease category
- References and evidence
Biomarker Information:
biomarker_status: Whether compound is a known biomarker
biomarker_applications: Clinical applications
biomarker_for: Diseases or conditions where used as biomarker
Spectroscopic Data
NMR Spectra:
nmr_spectra: Nuclear Magnetic Resonance data
- Spectrum type (1D ¹H, ¹³C, 2D COSY, HSQC, etc.)
- Spectrometer frequency (MHz)
- Solvent used
- Temperature
- pH
- Peak list with chemical shifts and multiplicities
- FID (Free Induction Decay) files
Mass Spectrometry:
ms_spectra: Mass spectrometry data
- Spectrum type (MS, MS-MS, LC-MS, GC-MS)
- Ionization mode (positive, negative, neutral)
- Collision energy
- Instrument type
- Peak list (m/z, intensity, annotation)
- Predicted vs. experimental flag
Chromatography:
chromatography: Chromatographic properties
- Retention time
- Column type
- Mobile phase
- Method details
External Database Links
Database Cross-References:
kegg_id: KEGG Compound ID
pubchem_compound_id: PubChem CID
pubchem_substance_id: PubChem SID
chebi_id: Chemical Entities of Biological Interest ID
chemspider_id: ChemSpider ID
drugbank_id: DrugBank accession (if applicable)
foodb_id: FooDB ID (if food component)
knapsack_id: KNApSAcK ID
metacyc_id: MetaCyc ID
bigg_id: BiGG Model ID
wikipedia_id: Wikipedia page link
metlin_id: METLIN ID
vmh_id: Virtual Metabolic Human ID
fbonto_id: FlyBase ontology ID
Protein Database Links:
uniprot_id: UniProt accession for associated proteins
genbank_id: GenBank ID for associated genes
pdb_id: Protein Data Bank ID for protein structures
Literature and Evidence
References:
general_references: General references about the metabolite
- PubMed ID
- Reference text
- Citation
synthesis_reference: Synthesis methods and references
protein_references: References for protein associations
pathway_references: References for pathway involvement
Ontology and Classification
Ontology Terms:
ontology_terms: Related ontology classifications
- Term name
- Ontology source (ChEBI, MeSH, etc.)
- Term ID
- Definition
Data Quality and Provenance
Metadata:
creation_date: Date entry was created
update_date: Date entry was last updated
version: HMDB version number
status: Entry status (detected, expected, predicted)
evidence: Evidence level for detection/presence
XML Structure Example
When downloading HMDB data in XML format, the structure follows this pattern:
<metabolite>
<accession>HMDB0000001</accession>
<name>1-Methylhistidine</name>
<chemical_formula>C7H11N3O2</chemical_formula>
<average_molecular_weight>169.1811</average_molecular_weight>
<monoisotopic_molecular_weight>169.085126436</monoisotopic_molecular_weight>
<smiles>CN1C=NC(CC(=O)O)=C1</smiles>
<inchi>InChI=1S/C7H11N3O2/c1-10-4-8-3-5(10)2-7(11)12/h3-4H,2H2,1H3,(H,11,12)</inchi>
<inchikey>BRMWTNUJHUMWMS-UHFFFAOYSA-N</inchikey>
<biospecimen_locations>
<biospecimen>Blood</biospecimen>
<biospecimen>Urine</biospecimen>
</biospecimen_locations>
<pathways>
<pathway>
<name>Histidine Metabolism</name>
<smpdb_id>SMP0000044</smpdb_id>
<kegg_map_id>map00340</kegg_map_id>
</pathway>
</pathways>
<diseases>
<disease>
<name>Carnosinemia</name>
<omim_id>212200</omim_id>
</disease>
</diseases>
<normal_concentrations>
<concentration>
<biospecimen>Blood</biospecimen>
<concentration_value>3.8</concentration_value>
<concentration_units>uM</concentration_units>
</concentration>
</normal_concentrations>
</metabolite>
Querying Specific Fields
When working with HMDB data programmatically:
For metabolite identification:
- Query by
accession, name, synonyms, inchi, smiles
For chemical similarity:
- Use
smiles, inchi, inchikey, molecular_weight, chemical_formula
For biomarker discovery:
- Filter by
diseases, biomarker_status, normal_concentrations, abnormal_concentrations
For pathway analysis:
- Extract
pathways, protein_associations, reactions
For spectral matching:
- Compare against
nmr_spectra, ms_spectra peak lists
For cross-database integration:
- Map using external IDs:
kegg_id, pubchem_compound_id, chebi_id, etc.
Field Completeness
Not all fields are populated for every metabolite:
- Highly complete fields (>90% of entries): accession, name, chemical_formula, molecular_weight, smiles, inchi
- Moderately complete (50-90%): biospecimen_locations, tissue_locations, pathways
- Variably complete (10-50%): concentration data, disease associations, protein associations
- Sparsely complete (<10%): experimental NMR/MS spectra, detailed kinetic data
Predicted and computational data (e.g., predicted MS spectra, predicted concentrations) supplement experimental data where available.
1---2name: 058-document-6ffe48f63description: HMDB Data Fields Reference4---5# HMDB Data Fields Reference67This document provides detailed information about the data fields available in HMDB metabolite entries.89## Metabolite Entry Structure1011Each HMDB metabolite entry contains 130+ data fields organized into several categories:1213### Chemical Data Fields1415**Identification:**16- `accession`: Primary HMDB ID (e.g., HMDB0000001)17- `secondary_accessions`: Previous HMDB IDs for merged entries18- `name`: Primary metabolite name19- `synonyms`: Alternative names and common names20- `chemical_formula`: Molecular formula (e.g., C6H12O6)21- `average_molecular_weight`: Average molecular weight in Daltons22- `monoisotopic_molecular_weight`: Monoisotopic molecular weight2324**Structure Representations:**25- `smiles`: Simplified Molecular Input Line Entry System string26- `inchi`: International Chemical Identifier string27- `inchikey`: Hashed InChI for fast lookup28- `iupac_name`: IUPAC systematic name29- `traditional_iupac`: Traditional IUPAC name3031**Chemical Properties:**32- `state`: Physical state (solid, liquid, gas)33- `charge`: Net molecular charge34- `logp`: Octanol-water partition coefficient (experimental/predicted)35- `pka_strongest_acidic`: Strongest acidic pKa value36- `pka_strongest_basic`: Strongest basic pKa value37- `polar_surface_area`: Topological polar surface area (TPSA)38- `refractivity`: Molar refractivity39- `polarizability`: Molecular polarizability40- `rotatable_bond_count`: Number of rotatable bonds41- `acceptor_count`: Hydrogen bond acceptor count42- `donor_count`: Hydrogen bond donor count4344**Chemical Taxonomy:**45- `kingdom`: Chemical kingdom (e.g., Organic compounds)46- `super_class`: Chemical superclass47- `class`: Chemical class48- `sub_class`: Chemical subclass49- `direct_parent`: Direct chemical parent50- `alternative_parents`: Alternative parent classifications51- `substituents`: Chemical substituents present52- `description`: Text description of the compound5354### Biological Data Fields5556**Metabolite Origins:**57- `origin`: Source of metabolite (endogenous, exogenous, drug metabolite, food component)58- `biofluid_locations`: Biological fluids where found (blood, urine, saliva, CSF, etc.)59- `tissue_locations`: Tissues where found (liver, kidney, brain, muscle, etc.)60- `cellular_locations`: Subcellular locations (cytoplasm, mitochondria, membrane, etc.)6162**Biospecimen Information:**63- `biospecimen`: Type of biological specimen64- `status`: Detection status (detected, expected, predicted)65- `concentration`: Concentration ranges with units66- `concentration_references`: Citations for concentration data6768**Normal and Abnormal Concentrations:**69For each biofluid (blood, urine, saliva, CSF, feces, sweat):70- Normal concentration value and range71- Units (μM, mg/L, etc.)72- Age and gender considerations73- Abnormal concentration indicators74- Clinical significance7576### Pathway and Enzyme Information7778**Metabolic Pathways:**79- `pathways`: List of associated metabolic pathways80 - Pathway name81 - SMPDB ID (Small Molecule Pathway Database ID)82 - KEGG pathway ID83 - Pathway category8485**Enzymatic Reactions:**86- `protein_associations`: Enzymes and transporters87 - Protein name88 - Gene name89 - Uniprot ID90 - GenBank ID91 - Protein type (enzyme, transporter, carrier, etc.)92 - Enzyme reactions93 - Enzyme kinetics (Km values)9495**Biochemical Context:**96- `reactions`: Biochemical reactions involving the metabolite97- `reaction_enzymes`: Enzymes catalyzing reactions98- `cofactors`: Required cofactors99- `inhibitors`: Known enzyme inhibitors100101### Disease and Biomarker Associations102103**Disease Links:**104- `diseases`: Associated diseases and conditions105 - Disease name106 - OMIM ID (Online Mendelian Inheritance in Man)107 - Disease category108 - References and evidence109110**Biomarker Information:**111- `biomarker_status`: Whether compound is a known biomarker112- `biomarker_applications`: Clinical applications113- `biomarker_for`: Diseases or conditions where used as biomarker114115### Spectroscopic Data116117**NMR Spectra:**118- `nmr_spectra`: Nuclear Magnetic Resonance data119 - Spectrum type (1D ¹H, ¹³C, 2D COSY, HSQC, etc.)120 - Spectrometer frequency (MHz)121 - Solvent used122 - Temperature123 - pH124 - Peak list with chemical shifts and multiplicities125 - FID (Free Induction Decay) files126127**Mass Spectrometry:**128- `ms_spectra`: Mass spectrometry data129 - Spectrum type (MS, MS-MS, LC-MS, GC-MS)130 - Ionization mode (positive, negative, neutral)131 - Collision energy132 - Instrument type133 - Peak list (m/z, intensity, annotation)134 - Predicted vs. experimental flag135136**Chromatography:**137- `chromatography`: Chromatographic properties138 - Retention time139 - Column type140 - Mobile phase141 - Method details142143### External Database Links144145**Database Cross-References:**146- `kegg_id`: KEGG Compound ID147- `pubchem_compound_id`: PubChem CID148- `pubchem_substance_id`: PubChem SID149- `chebi_id`: Chemical Entities of Biological Interest ID150- `chemspider_id`: ChemSpider ID151- `drugbank_id`: DrugBank accession (if applicable)152- `foodb_id`: FooDB ID (if food component)153- `knapsack_id`: KNApSAcK ID154- `metacyc_id`: MetaCyc ID155- `bigg_id`: BiGG Model ID156- `wikipedia_id`: Wikipedia page link157- `metlin_id`: METLIN ID158- `vmh_id`: Virtual Metabolic Human ID159- `fbonto_id`: FlyBase ontology ID160161**Protein Database Links:**162- `uniprot_id`: UniProt accession for associated proteins163- `genbank_id`: GenBank ID for associated genes164- `pdb_id`: Protein Data Bank ID for protein structures165166### Literature and Evidence167168**References:**169- `general_references`: General references about the metabolite170 - PubMed ID171 - Reference text172 - Citation173- `synthesis_reference`: Synthesis methods and references174- `protein_references`: References for protein associations175- `pathway_references`: References for pathway involvement176177### Ontology and Classification178179**Ontology Terms:**180- `ontology_terms`: Related ontology classifications181 - Term name182 - Ontology source (ChEBI, MeSH, etc.)183 - Term ID184 - Definition185186### Data Quality and Provenance187188**Metadata:**189- `creation_date`: Date entry was created190- `update_date`: Date entry was last updated191- `version`: HMDB version number192- `status`: Entry status (detected, expected, predicted)193- `evidence`: Evidence level for detection/presence194195## XML Structure Example196197When downloading HMDB data in XML format, the structure follows this pattern:198199```xml200<metabolite>201 <accession>HMDB0000001</accession>202 <name>1-Methylhistidine</name>203 <chemical_formula>C7H11N3O2</chemical_formula>204 <average_molecular_weight>169.1811</average_molecular_weight>205 <monoisotopic_molecular_weight>169.085126436</monoisotopic_molecular_weight>206 <smiles>CN1C=NC(CC(=O)O)=C1</smiles>207 <inchi>InChI=1S/C7H11N3O2/c1-10-4-8-3-5(10)2-7(11)12/h3-4H,2H2,1H3,(H,11,12)</inchi>208 <inchikey>BRMWTNUJHUMWMS-UHFFFAOYSA-N</inchikey>209210 <biospecimen_locations>211 <biospecimen>Blood</biospecimen>212 <biospecimen>Urine</biospecimen>213 </biospecimen_locations>214215 <pathways>216 <pathway>217 <name>Histidine Metabolism</name>218 <smpdb_id>SMP0000044</smpdb_id>219 <kegg_map_id>map00340</kegg_map_id>220 </pathway>221 </pathways>222223 <diseases>224 <disease>225 <name>Carnosinemia</name>226 <omim_id>212200</omim_id>227 </disease>228 </diseases>229230 <normal_concentrations>231 <concentration>232 <biospecimen>Blood</biospecimen>233 <concentration_value>3.8</concentration_value>234 <concentration_units>uM</concentration_units>235 </concentration>236 </normal_concentrations>237</metabolite>238```239240## Querying Specific Fields241242When working with HMDB data programmatically:243244**For metabolite identification:**245- Query by `accession`, `name`, `synonyms`, `inchi`, `smiles`246247**For chemical similarity:**248- Use `smiles`, `inchi`, `inchikey`, `molecular_weight`, `chemical_formula`249250**For biomarker discovery:**251- Filter by `diseases`, `biomarker_status`, `normal_concentrations`, `abnormal_concentrations`252253**For pathway analysis:**254- Extract `pathways`, `protein_associations`, `reactions`255256**For spectral matching:**257- Compare against `nmr_spectra`, `ms_spectra` peak lists258259**For cross-database integration:**260- Map using external IDs: `kegg_id`, `pubchem_compound_id`, `chebi_id`, etc.261262## Field Completeness263264Not all fields are populated for every metabolite:265266- **Highly complete fields** (>90% of entries): accession, name, chemical_formula, molecular_weight, smiles, inchi267- **Moderately complete** (50-90%): biospecimen_locations, tissue_locations, pathways268- **Variably complete** (10-50%): concentration data, disease associations, protein associations269- **Sparsely complete** (<10%): experimental NMR/MS spectra, detailed kinetic data270271Predicted and computational data (e.g., predicted MS spectra, predicted concentrations) supplement experimental data where available.