Skip to content

batchCorr

Bioc current

Within And Between Batch Correction Of LC-MS Metabolomics Data

v1.2.0 · Package record · software · GPL-2

Release Lineage

Entered 3.22 · Oct 30, 2025

Current · Requires R 4.6

1.0 In 2 of 49 releases 3.23

Description

From the perspective of metabolites as the continuation of the central dogma of biology, metabolomics provides the closest link to many phenotypes of interest. This makes metabolomics research promising in teasing apart the complexities of living systems. However, due to experimental reasons, the data includes non-biological variation which limits quality and reproducibility, especially if the data is obtained from several batches. The batchCorr package reduces unwanted variation by way of between-batch alignment, within-batch drift correction and between-batch normalization using batch-specific quality control samples and long-term reference QC samples. Please see the associated article for more thorough descriptions of algorithms.

Advisories

None published for Bioconductor

Test coverage

Line coverage

–

Expression

–

Tests / Examples

–

Functions

29 3 exported

Complexity

6 avg / 22 max

Call network

29 nodes / 29 edges

Test coverage is not measured for Bioconductor packages; nodes fall back to a neutral fill.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

Code

Structure

Lines of code

3,684

Files

35

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,380 (64.6%)Tests 427 (11.6%)Docs 543 (14.7%)Vignettes 334 (9.1%)

API

Exported functions

6

Internal functions

26

Recent export changes

v3.22+6 alignBatches, correctDrift, getBatch +3 more

Testing

Has tests

Yes

Test-to-code ratio

0.18

testthat edition

–

Docs

Roxygen coverage

100%

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.4.0

System requirements

–

C++ standard

–

License

GPL-2

License flags

SPDX valid, OSI approved

History

Versions

2

First release

2025-10-29

Latest release

2026-04-28

Avg cadence

181 days

Cold removal rate

–

Dep drift

0

LOC over versions

v3.22: 3,684 LOCv3.23: 3,684 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/bioc-code-metrics.

Documentation

In the Bioconductor 3.23 release
READMEYes · 270 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structuredCitation fileYes · cites a publicationWebsitenot declared in DESCRIPTION
Help pages
7
Examples that run
100%6 run in a plain check
Exported functions with examples
100%
Documented parameters
92%
Return-value docs
100%
Help pages citing references
14%
Vignettes (1)

Repository practices

Upstream repositoryBeta

Checks run against github.com/metabocomp/batchcorr on 2026-10-21.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v4 (2026-10-20)

Datasets

Bundled datasets · 3
NameClassSizeAlso in
PTfillmatrix90 × 1,000No other package
PTnofillmatrix90 × 1,000No other package
metadata.frame90 × 3No other package

All of batchCorr's data objects

Topics

Maintainer
Anton Ribbenstedt

Available on

CRANr2uBioconductorautoCRANCOPR

Suggested by (1)

People

Cite

Cite this package

Run in R for the authors' entry:

citation("batchCorr")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.3390/metabo10040135, 10.1007/s11306-016-1124-4.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for batchCorr version 1.2.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy