Skip to main content

Thank you for visiting You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

Bayesian deconvolution and quantification of metabolites in complex 1D NMR spectra using BATMAN


Data processing for 1D NMR spectra is a key bottleneck for metabolomic and other complex-mixture studies, particularly where quantitative data on individual metabolites are required. We present a protocol for automated metabolite deconvolution and quantification from complex NMR spectra by using the Bayesian automated metabolite analyzer for NMR (BATMAN) R package. BATMAN models resonances on the basis of a user-controllable set of templates, each of which specifies the chemical shifts, J-couplings and relative peak intensities for a single metabolite. Peaks are allowed to shift position slightly between spectra, and peak widths are allowed to vary by user-specified amounts. NMR signals not captured by the templates are modeled non-parametrically by using wavelets. The protocol covers setting up user template libraries, optimizing algorithmic input parameters, improving prior information on peak positions, quality control and evaluation of outputs. The outputs include relative concentration estimates for named metabolites together with associated Bayesian uncertainty estimates, as well as the fit of the remainder of the spectrum using wavelets. Graphical diagnostics allow the user to examine the quality of the fit for multiple spectra simultaneously. This approach offers a workflow to analyze large numbers of spectra and is expected to be useful in a wide range of metabolomics studies.

This is a preview of subscription content

Access options

Buy article

Get time limited or full article access on ReadCube.


All prices are NET prices.

Figure 1: Deconvolution and peak quantification in metabolomic NMR spectra is complicated by peak overlap and shift.
Figure 2: Workflow of a single BATMAN run.
Figure 3: Typical fit results for two spectra of bacterial supernatants.
Figure 4: Chemical-shift sorting and spline fitting.
Figure 5: Fitting complex multiplets with empirical and raster templates.
Figure 6: Diagnostic scatter plots for threonine in the bacterial supernatant data.
Figure 7: Diagnostic mirrored stack plots.
Figure 8: Chemical shift distribution plots.


  1. Sreekumar, A. et al. Metabolomic profiles delineate potential role for sarcosine in prostate cancer progression. Nature 457, 910–914 (2009).

    CAS  Article  Google Scholar 

  2. Holmes, E. et al. Human metabolic phenotype diversity and its association with diet and blood pressure. Nature 453, 396–400 (2008).

    CAS  Article  Google Scholar 

  3. Weckwerth, W. et al. Differential metabolic networks unravel the effects of silent plant phenotypes. Proc. Natl. Acad. Sci. USA 101, 7809–7814 (2004).

    CAS  Article  Google Scholar 

  4. Lindon, J.C. et al. The Consortium for Metabonomic Toxicology (COMET): aims, activities and achievements. Pharmacogenomics 6, 691–699 (2005).

    CAS  Article  Google Scholar 

  5. Nicholson, J.K. & Wilson, I.D. High-resolution proton magnetic-resonance spectroscopy of biological-fluids. Prog. Nucl. Magn. Reson. Spectrosc. 21, 449–501 (1989).

    CAS  Article  Google Scholar 

  6. Fan, T.W.M. Metabolite profiling by one- and two-dimensional NMR analysis of complex mixtures. Prog. Nucl. Magn. Reson. Spectrosc. 28, 161–219 (1996).

    CAS  Article  Google Scholar 

  7. Zhang, S. et al. Advances in NMR-based biofluid analysis and metabolite profiling. Analyst 135, 1490–1498 (2010).

    CAS  Article  Google Scholar 

  8. Beckonert, O. et al. Metabolic profiling, metabolomic and metabonomic procedures for NMR spectroscopy of urine, plasma, serum and tissue extracts. Nat. Protoc. 2, 2692–2703 (2007).

    CAS  Article  Google Scholar 

  9. Ebbels, T.M.D. & Cavill, R. Bioinformatic methods in NMR-based metabolic profiling. Prog. Nucl. Magn. Reson. Spectrosc. 55, 361–374 (2009).

    CAS  Article  Google Scholar 

  10. Ebbels, T.M.D. & De Iorio, M. Statistical data analysis in metabolomics. in Handbook of Statistical Systems Biology (eds. Girolami, M.A., Balding, D. & Stumpf, M.) (Thompson Digital, 2011).

  11. Wishart, D.S. et al. HMDB: the Human Metabolome Database. Nucleic Acids Res. 35 (Database issue), D521–D526 (2007).

    CAS  Article  Google Scholar 

  12. Ulrich, E.L. et al. BioMagResBank. Nucleic Acids Res. 36 (Database issue), D402–D408 (2008).

    CAS  PubMed  Google Scholar 

  13. Holmes, E. et al. Automatic data reduction and pattern recognition methods for analysis of 1H nuclear magnetic resonance spectra of human urine from normal and pathological states. Anal. Biochem. 220, 284 (1994).

    CAS  Article  Google Scholar 

  14. Spraul, M. et al. Automatic reduction of NMR spectroscopic data for statistical and pattern recognition classification of samples. J. Pharm. Biomed. Anal. 12, 1215–1225 (1994).

    CAS  Article  Google Scholar 

  15. Cloarec, O. et al. Evaluation of the orthogonal projection on latent structure model limitations caused by chemical shift variability and improved visualization of biomarker changes in 1H NMR spectroscopic metabonomic studies. Anal. Chem. 77, 517 (2005).

    CAS  Article  Google Scholar 

  16. Csenki, L. et al. Proof of principle of a generalized fuzzy Hough transform approach to peak alignment of one-dimensional 1H NMR data. Anal. Bioanal. Chem. 389, 875–885 (2007).

    CAS  Article  Google Scholar 

  17. Alm, E. et al. A solution to the 1D NMR alignment problem using an extended generalized fuzzy Hough transform and mode support. Anal. Bioanal. Chem. 395, 213–223 (2009).

    CAS  Article  Google Scholar 

  18. Astle, W. et al. A bayesian model of NMR spectra for the deconvolution and quantification of metabolites in complex biological mixtures. J. Am. Stat. Assoc. 107, 1259–1271 (2012).

    CAS  Article  Google Scholar 

  19. Hao, J. et al. BATMAN—an R package for the automated quantification of metabolites from nuclear magnetic resonance spectra using a Bayesian model. Bioinformatics 28, 2088–2090 (2012).

    CAS  Article  Google Scholar 

  20. Liebeke, M. et al. Combining spectral ordering with peak fitting for one-dimensional NMR quantitative metabolomics. Anal. Chem. 85, 4605–4612 (2013).

    CAS  Article  Google Scholar 

  21. Reily, M.D. et al. DFTMP, an NMR reagent for assessing the near-neutral pH of biological samples. J. Am. Chem. Soc. 128, 12360–12361 (2006).

    CAS  Article  Google Scholar 

  22. Behrends, V. et al. Metabolite profiling to characterize disease-related bacteria: gluconate excretion by Pseudomonas aeruginosa mutants and clinical isolates from cystic fibrosis patients. J. Biol. Chem. 288, 15098–15109 (2013).

    CAS  Article  Google Scholar 

  23. Zheng, C. et al. Identification and quantification of metabolites in (1)H NMR spectra by Bayesian model selection. Bioinformatics 27, 1637–1644 (2011).

    CAS  Article  Google Scholar 

  24. Weljie, A.M. et al. Targeted profiling: quantitative analysis of 1H NMR metabolomics data. Anal. Chem. 78, 4430–4442 (2006).

    CAS  Article  Google Scholar 

  25. Tredwell, G.D. et al. Between-person comparison of metabolite fitting for NMR-based quantitative metabolomics. Anal. Chem. 83, 8683–8687 (2011).

    CAS  Article  Google Scholar 

  26. Sokolenko, S. et al. Understanding the variability of compound quantification from targeted profiling metabolomics of 1D-1H-NMR spectra in synthetic mixtures and urine with additional insights on choice of pulse sequences and robotic sampling. Metabolomics 9, 887–903 (2013).

    CAS  Article  Google Scholar 

  27. Slupsky, C.M. et al. Investigations of the effects of gender, diurnal variation, and age in human urinary metabolomic profiles. Anal. Chem. 79, 6995–7004 (2007).

    CAS  Article  Google Scholar 

  28. Viant, M.R. et al. International NMR-based environmental metabolomics intercomparison exercise. Environ. Sci. Technol. 43, 219–225 (2009).

    CAS  Article  Google Scholar 

Download references


T.M.D.E., M.D.I., W.A. and J.H. acknowledge support from the Biotechnology and Biological Sciences Research Council (BBSRC), UK, grant BB/E20372/1. J.G.B., T.M.D.E., J.H. and M.L. acknowledge support from the Natural Environment Research Council (NERC), UK, grant NE/H009973/1. T.M.D.E. and J.H. acknowledge support from the European Commission COSMOS project, contract EC312941. We thank the eMICE consortium for use of the synthetic mixture spectra.

Author information

Authors and Affiliations



T.M.D.E. and M.D.I. conceived the project and supervised the development of the Bayesian model. W.A. developed the Bayesian model and J.H. implemented the corresponding R package. J.G.B. and M.L. provided theoretical and practical input on NMR spectroscopy, including software testing and ideas for new features. T.M.D.E. and J.H. wrote the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Timothy M D Ebbels.

Ethics declarations

Competing interests

The authors declare no competing financial interests.

Supplementary information

Supplementary Data

Comparison of BATMAN and Chenomx NMR Suite results. (PDF 805 kb)

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Hao, J., Liebeke, M., Astle, W. et al. Bayesian deconvolution and quantification of metabolites in complex 1D NMR spectra using BATMAN. Nat Protoc 9, 1416–1427 (2014).

Download citation

  • Published:

  • Issue Date:

  • DOI:

Further reading


By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.


Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing