biogas
Tools for biogas research in R: process biogas data and predict biogas production.
https://github.com/sashahafner/biogas
Category: Renewable Energy
Sub Category: Bioenergy
Last synced: about 20 hours ago
JSON representation
Repository metadata
Tools for biogas research in R: process biogas data and predict biogas production
- Host: GitHub
- URL: https://github.com/sashahafner/biogas
- Owner: sashahafner
- Created: 2018-05-02T06:37:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-04-06T01:05:30.000Z (22 days ago)
- Last Synced: 2025-04-10T04:40:04.243Z (18 days ago)
- Language: R
- Size: 1.24 MB
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 39
- Releases: 3
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
README.md
Overview
The biogas package is an R package for biogas research.
It provides tools for processing biogas data, predicting biogas production, making conversions, and planning experiments.
For example, the calcBgVol()
function can be used for calculating biochemical methane potential from original measurements.
The calcCOD()
function can calculate the chemical oxygen demand of a compound based on a chemical formula.
And the planBMP()
function can suggest substrate or inoculum quantities for a biochemical methane potential (BMP) experiment based on multiple constraints.
An example
Much of the biogas package is dedicated to processing of laboratory measurements, but those functions are difficult to demonstrate in a short example.
So, an alternative is the predBg()
microbial stoichiometry function.
With it, the theoretical maximum BMP of, say, cellulose, could be calculated with
> predBg("C6H10O5")
[1] 413.7274
and we could get a lot more information, including an estimate of biogas composition as affected by pH, for a 5:1 mixture of waste paper and waste oil with
> predBg(mcomp = c(C6H10O5 = 5/6, C54H100O7 = 1/6), mass = 1,
fd = 0.8, fs = 0.1, conc.sub = 50, pH = c(6.5, 7, 8.5),
temp = 35, value = "all")
form mass mol.mass moles COD fs fe fd
1 C1.52618H2.61516O1.00000 1 36.9655 0.02705225 1.454303 0.1 0.9 0.8
2 C1.52618H2.61516O1.00000 1 36.9655 0.02705225 1.454303 0.1 0.9 0.8
3 C1.52618H2.61516O1.00000 1 36.9655 0.02705225 1.454303 0.1 0.9 0.8
conc.sub temp pH hydro fCH4 xCH4 vCH4 vCO2 vBg
1 50 35 6.5 0.09279292 0.5566161 0.5689900 365.8395 275.91411 641.7536
2 50 35 7.0 0.09279292 0.5566161 0.5864017 365.8395 256.90636 622.7459
3 50 35 8.5 0.09279292 0.5566161 0.8921576 365.8395 44.02904 409.8686
mCH4 mCO2 mCO2Bg mCO2.sol cTIC m.bio N.req
1 0.2624617 0.5735654 0.54543300 0.02813242 0.03196140 0.08225028 0.01018521
2 0.2624617 0.5735654 0.50785807 0.06570735 0.07465048 0.08225028 0.01018521
3 0.2624617 0.5735654 0.08703757 0.48652785 0.55274693 0.08225028 0.01018521
See the vignettes and help files for more details.
Getting started
The biogas package is available from CRAN, and so can be installed directly in R with:
install.packages("biogas")
To see available vignettes, use
vignette(package = 'biogas')
and then, e.g.,
vignette('calcBgVol_function')
or
vignette('predBg_function')
Alternatively, download the vignettes from the CRAN page.
More information
- Open-access paper describing the package: https://doi.org/10.1016/j.softx.2018.06.005
- Web application interface to the package (OBA): https://biotransformers.shinyapps.io/oba1/
- YouTube playlist for OBA (shows some of what the biogas package can do): https://www.youtube.com/playlist?list=PLt5lRUaaL8JMKDyuRIrKkuloRQk6YmYhn
- Mailing list: sasha.hafner at bce.au.dk
Owner metadata
- Name: Sasha Hafner
- Login: sashahafner
- Email:
- Kind: user
- Description:
- Website: https://au.dk/[email protected]
- Location:
- Twitter:
- Company: @AU-BCE-EE
- Icon url: https://avatars.githubusercontent.com/u/35272876?v=4
- Repositories: 25
- Last ynced at: 2024-06-11T15:58:17.905Z
- Profile URL: https://github.com/sashahafner
GitHub Events
Total
- Create event: 2
- Release event: 2
- Issues event: 18
- Issue comment event: 19
- Push event: 29
Last Year
- Create event: 2
- Release event: 2
- Issues event: 18
- Issue comment event: 19
- Push event: 29
Committers metadata
Last synced: 6 days ago
Total Commits: 347
Total Committers: 3
Avg Commits per committer: 115.667
Development Distribution Score (DDS): 0.455
Commits in past year: 39
Committers in past year: 1
Avg Commits per committer in past year: 39.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
Sasha D. Hafner | s****r@g****m | 189 |
Nanna Løjborg | n****g@h****m | 157 |
Jonas Ohlsson | j****s@v****e | 1 |
Committer domains:
- vansinne.se: 1
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 70
Total pull requests: 1
Average time to close issues: 6 months
Average time to close pull requests: about 6 hours
Total issue authors: 4
Total pull request authors: 1
Average comments per issue: 1.0
Average comments per pull request: 0.0
Merged pull request: 1
Bot issues: 0
Bot pull requests: 0
Past year issues: 18
Past year pull requests: 0
Past year average time to close issues: about 1 month
Past year average time to close pull requests: N/A
Past year issue authors: 1
Past year pull request authors: 0
Past year average comments per issue: 0.89
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- sashahafner (66)
- NannaLojborg (2)
- jonasoh (1)
- alex-bagnoud (1)
Top Pull Request Authors
- jonasoh (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 1
-
Total downloads:
- cran: 519 last-month
- Total dependent packages: 0
- Total dependent repositories: 1
- Total versions: 19
- Total maintainers: 1
cran.r-project.org: biogas
Process Biogas Data and Predict Biogas Production
- Homepage: https://github.com/sashahafner/biogas/
- Documentation: http://cran.r-project.org/web/packages/biogas/biogas.pdf
- Licenses: GPL-2
- Latest release: 1.64.0 (published 23 days ago)
- Last Synced: 2025-04-26T12:32:34.053Z (2 days ago)
- Versions: 19
- Dependent Packages: 0
- Dependent Repositories: 1
- Downloads: 519 Last month
-
Rankings:
- Dependent repos count: 23.981%
- Average: 28.527%
- Dependent packages count: 28.751%
- Downloads: 32.85%
- Maintainers (1)
Dependencies
- ggplot2 * suggests
- knitr * suggests
- testthat * suggests
Score: 11.3246542439736