R CMD Check via {tic} linting test-coverage codecov pipeline status coverage report CRAN Status Badge CRAN Checks

rBiasCorrection is the R implementation with minor modifications of the algorithms described by Moskalev et al. in their research article ‘Correction of PCR-bias in quantitative DNA methylation studies by means of cubic polynomial regression’, published 2011 in Nucleic acids research, Oxford University Press (DOI: https://doi.org/10.1093/nar/gkr213).


CRAN version

You can install rBiasCorrection simply with via R’s install.packages interface:


development version

If you want to use the latest development version, you can install the github version of rBiasCorrection with:



This is a basic example which shows you how to correct PCR-bias in quantitative DNA methylation data:

  paste0(tempdir(), "/experimental_data.csv")
  paste0(tempdir(), "/calibration_data.csv")
experimental <- paste0(tempdir(), "/experimental_data.csv")
calibration <- paste0(tempdir(), "/calibration_data.csv")

  experimental = experimental,
  calibration = calibration,
  samplelocusname = "BRAF"

More detailed information on how to use the package rBiasCorrection can be found in the package vignette and the FAQs.


The GUI BiasCorrector provides the functionality implemented in rBiasCorrection in a web application. For further information please visit https://github.com/kapsner/BiasCorrector.


For further information, please refer to the frequently asked questions.

Citation of Moskalev et al. (2011)

    author = {Moskalev, Evgeny A. and Zavgorodnij, Mikhail G. and Majorova, Svetlana P. and Vorobjev, Ivan A. and Jandaghi, Pouria and Bure, Irina V. and Hoheisel, Jörg D.},
    title = "{Correction of PCR-bias in quantitative DNA methylation studies by means of cubic polynomial regression}",
    journal = {Nucleic Acids Research},
    volume = {39},
    number = {11},
    pages = {e77-e77},
    year = {2011},
    month = {04},
    abstract = "{DNA methylation profiling has become an important aspect of biomedical molecular analysis. Polymerase chain reaction (PCR) amplification of bisulphite-treated DNA is a processing step that is common to many currently used methods of quantitative methylation analysis. Preferential amplification of unmethylated alleles—known as PCR-bias—may significantly affect the accuracy of quantification. To date, no universal experimental approach has been reported to overcome the problem. This study presents an effective method of correcting biased methylation data. The procedure includes a calibration performed in parallel to the analysis of the samples under investigation. DNA samples with defined degrees of methylation are analysed. The observed deviation of the experimental results from the expected values is used for calculating a regression curve. The equation of the best-fitting curve is then used for correction of the data obtained from the samples of interest. The process can be applied irrespective of the locus interrogated and the number of sites analysed, avoiding an optimization of the amplification conditions for each individual locus.}",
    issn = {0305-1048},
    doi = {10.1093/nar/gkr213},
    url = {https://dx.doi.org/10.1093/nar/gkr213},
    eprint = {http://oup.prod.sis.lan/nar/article-pdf/39/11/e77/16775711/gkr213.pdf},