Software Open Access

Quantitative microbiological risk assessment for different wastewater reuse options in Old Ford (v.1.0)

Rustler, Michael

The code and data allows you to reproduce the quantitative microbiological risk assessment (QMRA) for the wastewater treatment plant Old Ford, which was performed in the EU project DEMOWARE ( and is documentated in the  DEMOWARE Deliverable 3.2 (p. 119-130).


The following licences apply:

Code: MIT License

Data: Creative Commons Attribution 4.0 International (CC BY 4.0)

Text: Creative Commons Attribution 4.0 International (CC BY 4.0)


How to reproduce the risk calculation?



For performing the risk calculation you need to make sure to have R (>= 3.3.1, installed on your computer and at least 16GB of RAM (required to perform the risk calculation for the “toilet flushing scenario”). An integrated development environment (IDE) like RStudio is helpful but is not required. However, the workflow described below assumes that you are using RStudio.


To perform the risk calculation for the Old Ford case study you need to:

  1. Open the R script run_risk_calculation.R in RStudio,

  2. Run the whole script by clicking on the Source button in RStudío

  3. Wait until risk calculation & plotting is completed for all 3 scenarios

Important note:

In case the R script crashes because of insufficient RAM memory for the 3rd scenario you are still able to reproduce the results and plots for the first two. If this occurs just close RStudio, reopen the R script run_risk_calculation.R and just perform the lines 32 until 132. That’s all!


Happy reproducing!

For performing the quantitative microbial risk assessment the R package kwb.qmra, v.0.1.1 ( is used. Both, documents and data in this repository are licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license. All contained code is licensed under the MIT Licence (MIT).
Files (252.6 kB)
Name Size
252.6 kB Download
All versions This version
Views 267267
Downloads 110110
Data volume 27.8 MB27.8 MB
Unique views 239239
Unique downloads 6969


Cite as