biogas: Process Biogas Data and Predict Biogas Production

Functions for calculating biochemical methane potential (BMP) from laboratory measurements and other types of data processing and prediction useful for biogas research. Raw laboratory measurements for diverse methods (volumetric, manometric, gravimetric, gas density) can be processed to calculate BMP. Theoretical maximum BMP or methane or biogas yield can be predicted from various measures of substrate composition. Molar mass and calculated oxygen demand (COD') can be determined from a chemical formula. Measured gas volume can be corrected for water vapor and to standard (or user-defined) temperature and pressure. Gas quantity can be converted between volume, mass, and moles. A function for planning BMP experiments can consider multiple constraints in suggesting substrate or inoculum quantities, and check for problems. Inoculum and substrate mass can be determined for planning BMP experiments. Finally, a set of first-order models can be fit to measured methane production rate or cumulative yield in order to extract estimates of ultimate yield and kinetic constants. See Hafner et al. (2018) <doi:10.1016/j.softx.2018.06.005> for details. OBA is a web application that provides access to some of the package functionality: <https://biotransformers.shinyapps.io/oba1/>. The Standard BMP Methods website documents the calculations in detail: <https://www.dbfz.de/en/BMP>.

Version: 1.64.0
Depends: R (≥ 3.5.0)
Suggests: minpack.lm, knitr, ggplot2, tinytest
Published: 2025-04-05
Author: Sasha D. Hafner ORCID iD [aut, cre], Charlotte Rennuit [aut], Camilla Justesen [aut], Nanna Lojborg [aut], Jacob Mortensen [aut], Jonas Ohlsson [aut], Sergi Astals [ctb], Konrad Koch [ctb], Soeren Weinrich [ctb], Jin Mi Triolo [ctb], Ali Heidarzadeh Vazifehkhoran [ctb]
Maintainer: Sasha D. Hafner <sasha.hafner at bce.au.dk>
License: GPL-2
URL: https://github.com/sashahafner/biogas/, https://www.dbfz.de/en/BMP
NeedsCompilation: no
Materials: README NEWS ChangeLog
CRAN checks: biogas results

Documentation:

Reference manual: biogas.pdf
Vignettes: Getting started with the biogas package (source, R code)
Data processing for manometric BMP measurements (source, R code)
Data processing for volumetric BMP measurements (source, R code)
Predicting methane and biogas production (source, R code)

Downloads:

Package source: biogas_1.64.0.tar.gz
Windows binaries: r-devel: biogas_1.61.zip, r-release: biogas_1.61.zip, r-oldrel: biogas_1.61.zip
macOS binaries: r-devel (arm64): biogas_1.61.tgz, r-release (arm64): biogas_1.61.tgz, r-oldrel (arm64): biogas_1.61.tgz, r-devel (x86_64): biogas_1.61.tgz, r-release (x86_64): biogas_1.61.tgz, r-oldrel (x86_64): biogas_1.61.tgz
Old sources: biogas archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=biogas to link to this page.