Skip to main content
NAR Genomics and Bioinformatics logoLink to NAR Genomics and Bioinformatics
. 2025 May 19;7(2):lqaf062. doi: 10.1093/nargab/lqaf062

ComBat-met: adjusting batch effects in DNA methylation data

Junmin Wang 1,
PMCID: PMC12086544  PMID: 40391088

Abstract

Integration of genomics data is routinely hindered by unwanted technical variations known as batch effects. Despite wide availability, existing batch correction methods often fall short in capturing the unique characteristics of DNA methylation data. We present ComBat-met, a beta regression framework to adjust batch effects in DNA methylation studies. Our method fits beta regression models to the data, calculates batch-free distributions, and maps the quantiles of the estimated distributions to their batch-free counterparts. Compared to traditional methods, ComBat-met followed by differential methylation analysis shows improved statistical power without compromising false positive rates based on simulated data. Additionally, we demonstrate the ability of ComBat-met to remove cross-batch variations and recover biological signals using data from The Cancer Genome Atlas.

Introduction

High-throughput genomics technologies have revolutionized our ability to investigate complex biological systems. Among these, DNA methylation profiling has emerged as a powerful tool for studying epigenetic regulation, providing insights into gene expression, organoid development, disease mechanisms, and environmental influences.

Traditionally, a key step in DNA methylation profiling, whether through bisulfite sequencing or methylation microarrays, is the conversion of unmethylated cytosines to thymines via bisulfite treatment [1]. This process is crucial for distinguishing between methylated and unmethylated cytosines, as only unmethylated cytosines are converted, leaving methylated cytosines unchanged. However, variations in the efficiency of this cytosine-to-thymine conversion across experimental batches can introduce systematic biases in methylation data [2, 3]. Factors such as differences in bisulfite treatment conditions and technical inconsistencies in the bisulfite conversion reaction itself can all lead to batch effects [4]. Failure to address batch effects can obscure true biological signals, impeding the accuracy and reproducibility of downstream analyses [5, 6].

Recently, alternative methods for DNA methylation profiling have gained increasing popularity. Enzymatic conversion techniques, such as TET-assisted pyridine borane sequencing and APOBEC-coupled sequencing approaches, provide less destructive alternatives to bisulfite conversion, avoiding harsh chemical treatments [7, 8]. Additionally, nanopore sequencing has emerged as a powerful platform capable of directly detecting DNA methylation without the need for chemical conversion [9]. By leveraging the electrical signal changes caused by modified cytosines during sequencing, this technology enables real-time methylation analysis with long-read capabilities. Although these newer methods reduce some of the biases seen with bisulfite conversion, batch effects can still arise due to variations in DNA input quality, enzymatic reaction conditions, or sequencing platform differences. As a result, batch correction remains a critical step in ensuring data reliability across methylation profiling techniques.

Various methods have been developed to correct for batch effects in genomics data. Among them, ComBat, which uses an empirical Bayes framework by borrowing information across genes, has gained widespread adoption in the field of microarray data analysis [10]. ComBat-seq, which employs a negative binomial regression model to retain the integer nature of sequence count data, is widely used in RNA-seq studies [11]. For variation from unknown sources, surrogate variable analysis (SVA) and remove unwanted variation (RUV) are commonly used to generate surrogate variables, which help account for latent factors, reduce dependence, and stabilize error rate estimates in downstream differential expression analysis [12, 13].

Despite the success of ComBat, ComBat-seq, SVA, and RUV in their respective domains, the direct application of the aforementioned tools to DNA methylation data remains challenging. This is because DNA methylation data consist of methylation percentages, also known as β-values representing the proportion of methylated alleles at specific genomic loci. β-values are constrained within the range of 0–1, and the underlying distribution of β-values often deviates from a Gaussian distribution, exhibiting skewness and over-dispersion. To address this issue, β-values can be converted to M-values through a logit transformation prior to batch correction [14]. Beyond these general strategies, several methods have been specifically developed for methylation data, including the two-stage RUVm, a variant of RUV, and BEclear [6, 15]. However, the effectiveness of these approaches has yet to be systematically investigated.

Here we introduce ComBat-met, a method tailored specifically for adjusting batch effects in DNA methylation data. Building upon the principles of ComBat and ComBat-seq, our method employs a beta regression framework to account for the specific characteristics of β-values. ComBat-met estimates the parameters of a beta regression model, calculates a batch-free distribution, i.e. the expected distribution as if there were no batch effects in the data, based on the estimated model parameters, and adjusts the data by mapping the quantiles of the estimated distribution to its batch-free counterpart (Fig. 1). Besides the common cross-batch average, we also allow adjustment of β-values to a reference batch, where all batches are adjusted to the mean and precision of the reference [16].

Figure 1.

Figure 1.

Diagram of the ComBat-met workflow. Model parameters are estimated using beta regression followed by the calculation of a batch-free distribution. A quantile-matching procedure is subsequently applied to map data from the estimated distribution to its batch-free counterpart.

In the rest of this paper, we describe the methodology of ComBat-met and demonstrate its performance through comprehensive benchmarking analyses and real-world applications. By utilizing simulated data, we demonstrated that ComBat-met followed by differential methylation analysis achieved superior statistical power compared to traditional approaches while correctly controlling the Type I error rate in nearly all cases. Furthermore, to illustrate its ability to recover biologically meaningful results and influence downstream analyses, we applied ComBat-met to batch-correct the methylation data in breast cancer patients pulled from The Cancer Genome Atlas (TCGA) [17]. Our results suggest that ComBat-met provides an effective solution for mitigating batch effects in methylation data, enabling more accurate and reliable downstream analyses.

Materials and methods

Beta regression model

Let Inline graphic denote the β-value of a feature in sample Inline graphic from batch Inline graphic. A feature could be a probe, a site, or any molecular entity for which the methylation percentage could be defined. Inline graphic is assumed to follow a beta distribution, where Inline graphic and Inline graphic denote the mean and precision of the distribution. The beta regression model is defined as:

graphic file with name TM0006.gif (1)
graphic file with name TM0007.gif (2)

where Inline graphic, Inline graphic, and Inline graphic denote the common cross-batch average M-value (i.e. logit transformation of β-values), the covariate vector, and the corresponding regression coefficients, respectively. Inline graphic represents the batch-associated additive effect on the common cross-batch average M-value. To ensure identifiability, the sum of Inline graphic weighted by the sample size in each batch is constrained to zero [10]. Parameters are estimated via maximum likelihood estimation using the betareg() function in the betareg R package [18].

In the context of reference-based adjustment, Inline graphic and Inline graphic in Equation (1) represent the average M-value in the chosen reference batch and the additive difference between the reference batch and batch Inline graphic, respectively. The rest of the notations remain unchanged.

Since the model above is applied independently to each feature, the model fitting step is highly parallelizable. To improve computational efficiency, we implemented parallelization using the parLapply() function from the parallel package, enabling concurrent processing across multiple threads.

Inspired by ComBat and ComBat-seq, we also provided a non-parametric empirical Bayes method to shrink parameters in ComBat-met [10, 11]. This approach pools information across features to generate empirical Bayes estimates of the mean and precision batch effects. Though available, parameter shrinkage is not recommended, as demonstrated in the Results and Discussion sections. Further details on parameter shrinkage can be found in the Supplementary Methods. Unless otherwise noted, ComBat-met refers to ComBat-met without parameter shrinkage in the remaining text.

Adjustment

To adjust the data, we take a quantile-matching approach similar to that described in ComBat-seq (Fig. 1) [11]. We assume that the adjusted data follow a beta distribution, i.e. Inline graphic. Once the regression model is fitted to the data, we calculate the parameters for the batch-free distributions, Inline graphic and Inline graphic, as follows:

graphic file with name TM00019.gif (3)
graphic file with name TM00020.gif (4)

where Inline graphic is the number of batches, Inline graphic is the number of samples in batch Inline graphic, and Inline graphic, Inline graphic, and Inline graphic represent the maximum likelihood estimates of Inline graphic, Inline graphic, and Inline graphic in Equations (1) and (2), respectively. The adjusted data Inline graphic are then calculated by matching the quantile of the original data Inline graphic on the estimated distribution Inline graphic to its quantile counterpart on the batch-free distribution, i.e. Inline graphic. Specifically, each Inline graphic is mapped to its counterpart Inline graphic such that the cumulative distribution of Inline graphic, i.e. Inline graphic is closest to that of Inline graphic, i.e. Inline graphic (Fig. 1). For reference-based adjustment, Inline graphic and Inline graphic are the maximum likelihood estimates of the mean and precision in the reference batch, respectively. If parameter shrinkage is applied, details on the adjustment are provided in the Supplementary Methods.

Simulation

The simulation was set up as follows. A total of 1000 features were generated with a balanced design involving two biological conditions and two batches across 20 samples (N = 20). Without loss of generality, we assumed that 100 out of 1000 features were truly differentially methylated, and the methylation percentage of these features was higher under condition 2 than under condition 1 by 10%. Data simulation was implemented using the dataSim() function in the methylKit R package, yielding Inline graphic matrices of coverages (i.e. total numbers of bases) and numbers of methylated bases [19]. β-values were calculated as the ratios of numbers of methylated bases to coverages for each feature.

All features were affected by batch. Both the mean and precision of batch effects were allowed to vary. The methylation percentage in one batch was assumed to be either higher or lower than that in the other batch by 0%, 2%, 5%, or 10%. The precision in one batch was set to a baseline value equal to 10, and the precision in the other batch was set to be 1-, 2-, 5-, or 10-fold of the baseline value. The remaining simulation parameters were resolved to their default values in dataSim() [19].

The simulation was repeated 1000 times, followed by differential methylation analysis. A feature was deemed significant if its P-value was <.05. The proportion of significant features among those that were and were not truly differentially methylated were counted towards true positive rates (TPRs) and false positive rates (FPRs), respectively. Median TPRs and FPRs over the 1000 repeated simulations were calculated under each parameter setting.

Other approaches

To validate ComBat-met, we compared its performance with several additional batch correction workflows: naïve ComBat, the “one-step” approach, M-value ComBat, SVA, RUVm, ComBat-biseq, and BEclear. Naïve Combat, in which β-values are directly batch-corrected without first transforming them to M-values, was included in the Results section solely to demonstrate the importance of using appropriate model assumptions.

The “one-step” approach, M-value ComBat, SVA, and RUVm all required that β-values be logit-transformed to M-values, which were implicitly assumed to be normally distributed, prior to batch correction. The “one-step” approach included the batch variable directly as a covariate in the differential linear model. M-value ComBat adjusted M-values for batch effects through ComBat [10]. SVA computed a surrogate variable to be included as a covariate in the downstream differential analysis without reference to the given batch information [12]. Similarly, RUVm extended the RUV framework by leveraging control features to estimate and adjust for unwanted variation in methylation data [15]. BEclear, in contrast, applied latent factor models to identify batch-associated variations and replace them with values reconstructed from neighboring data entries [6].

To accommodate bisulfite sequencing data, we also developed ComBat-biseq, a method which retains the integer nature of count data. Unlike ComBat-met, ComBat-biseq initiates batch correction by fitting beta-binomial regression models to methylated cytosine counts. The remaining steps, however, are akin to ComBat-met (see Supplementary Fig. 1 for details). Beta-binomial regression, as well as the distribution and quantile functions of the beta-binomial distribution were implemented using the aod and updog R packages [20, 21]. Similar to ComBat-met, we also provided an empirical Bayes shrinkage method in ComBat-biseq. In the remaining text, ComBat-biseq refers to ComBat-biseq without parameter shrinkage unless otherwise noted.

For all approaches except ComBat-biseq, limma was chosen as the primary method for differential methylation testing [22]. Limma allows for the inclusion of batch effects and latent variables as covariates, enabling a comprehensive evaluation of all batch correction methods we explored, including SVA. To evaluate the impact of differential methylation testing methods, we also performed the analysis using minfi, a well-established R package in the DNA methylation research community [23]. The “one-step” approach, SVA, and RUVm were not evaluated using minfi, as minfi does not support the inclusion of batch effects or latent variables as covariates. For ComBat-biseq, differential methylation analysis of the adjusted bisulfite sequencing data was implemented using a likelihood ratio test in the methylSig package [24].

Application to real-world experimental data

Level 3 Illumina 450K methylation data (calculated β-values mapped to the genome) for tumor and adjacent normal tissues in breast cancer patients were downloaded from TCGA using the TCGAbiolinks R package [25, 26]. To evaluate precision correction, we retained only batches containing at least two samples for batch adjustment. Furthermore, we focused exclusively on tumor samples in the luminal B subtype cohort for demonstration and visualization purposes. Our analysis included a total of 11 batches spanning 96 adjacent normal tissue samples and 19 batches spanning 135 tumor tissue samples. Similar to a previous study, tumor and adjacent normal tissue samples were analyzed separately to account for the larger inter-patient heterogeneity in tumor tissues (Supplementary Figs S2 and S3) [6].

The probe-level β-value matrices were adjusted to the reference batch “A12R,” which was present in both tumor and normal samples, using the ComBat-met and M-value ComBat workflows. To demonstrate the impact of batch correction on downstream machine learning, a neural network was trained to classify samples as normal or tumor based on methylation percentages. A minimalistic architecture was used, consisting of an input layer (three randomly selected probes), two hidden layers (the first with 16 nodes and the second with four nodes), and an output layer. Random feature selection ensured that the model’s performance was not biased by any probe set, and this process was repeated 50 times. The model was trained on data both before and after ComBat-met adjustment, using the same sets of methylation probes. The performance was compared across 50 iterations using accuracy metrics.

Results

Using appropriate model assumptions for β-values

To demonstrate the importance of applying appropriate statistical models, we simulated an example of a β-value matrix with a balanced design, consisting of 20 samples (N = 20) pulled from two batches and two conditions (Fig. 2). While naïve ComBat, which applies ComBat directly to the β-value matrix, reduces cross-batch variations, doing so also causes adjusted β-values to exceed the maximum plausible limit of one in Samples 12 and 13, posing challenges for data interpretation and downstream analysis (Fig. 2). This problem arises because ComBat operates based on a Gaussian model [10]. Similar to count data, β-values exhibit skewness and over-dispersion that cannot be captured by a Gaussian distribution.

Figure 2.

Figure 2.

Example of problems caused by Gaussian model-based batch correction in DNA methylation data. A β-value matrix of 20 samples was simulated with a balanced design involving two batches and two categories. The left, middle, and right panels represent the unadjusted, Gaussian model-adjusted, and beta model-adjusted β-values across 20 samples, respectively. Batches are shown by color, and categories are shown by shape. Dashed lines represent the maximum plausible β-value equal to one.

Unlike ComBat, ComBat-met assumes that β-values follow a beta distribution, a statistical model much more suitable for the behavior of proportions and percentages. As such, it not only imposes a naturally confined range of (0, 1) on the adjusted β-values but also renders parameter estimation more robust to outliers, yielding the smallest cross-batch variations post-adjustment (Fig. 2).

While the beta distribution offers advantages in modeling methylation data, the Gaussian approximation remains a potential simpler alternative. To further investigate when direct adjustment is appropriate, we generated β-values with varying means and precisions, fitting Gaussian distributions to compare their agreement (Supplementary Fig. S4). Results indicate that the Gaussian approximation is reasonable when β-values are centered around 0.5 with medium or high precision. However, for β-values near 0 or 1, or when precision decreases, the Gaussian fit deteriorates (Supplementary Fig. S4). This was further supported by the example given in Fig. 2, where naïve ComBat and ComBat-met produced similar results for β-values averaging around 0.5 (Samples 1–10) but diverged significantly otherwise (Samples 11–20). Even though direct adjustment is computationally more efficient, ComBat-met provides a more robust approach across all parameter ranges. By preserving the appropriate distributional structure of β-values, it avoids propagating errors from the batch correction step into downstream analyses.

ComBat-met demonstrates balanced control of power and FPRs

We evaluated the FPR of ComBat-met using simulated DNA methylation data. In our simulations, the cross-batch differences in the mean and precision of the methylation percentage were allowed to vary. The resulting data were batch-corrected either using ComBat-met, M-value ComBat, ComBat-biseq, SVA, RUVm, or BEclear prior to differential methylation analysis, or by directly including the batch variable in the analysis (i.e. “one-step” approach). Details of each method are provided in the Materials and methods section.

The comparison of different batch correction methods is provided in Fig. 3. ComBat-met, M-value ComBat, and the “one-step” approach demonstrated close control of the FPR around 0.05 in most cases (Fig. 3). Although ComBat-met and M-value ComBat exceeded the threshold of 0.05 for small cross-batch differences in means and precisions (e.g. a 2% mean difference and a two-fold precision difference) (Fig. 3), a slightly inflated FPR could generally be tolerated for discovery studies.

Figure 3.

Figure 3.

Median true positive rates and FPRs calculated based on simulation data. The cross-batch mean difference in methylation percentage was set to 0%, 2%, 5%, or 10%. The precision of the batch effect was set to have a 1-, 2-, 5-, or 10-fold change. The simulation was repeated 1000 times. Methods are shown by color. Detailed information about each method is provided in the Materials and methods section.

In contrast to the aforementioned methods, ComBat-biseq consistently exhibited severe inflations of FPRs (Fig. 3). This behavior was most likely attributed to the small sample size, leading to breakdowns in the asymptotic argument of the likelihood ratio test downstream ComBat-biseq. Additional simulations supported this hypothesis, as the same workflow maintained much more precise control of the FPR for a larger sample size (N = 100) (Supplementary Fig. S5). BEclear showed markedly inflated FPRs for scenarios involving a 10% cross-batch mean difference, underscoring its limitations in handling large batch effects (Fig. 3). On the other hand, SVA and RUVm showed unstable performance across different parameter settings, with inflated FPRs in some cases and reduced TPRs in others (Fig. 3). This variability was expected, considering that SVA and RUVm, unlike ComBat-derived methods, are not optimized for scenarios where technical variations originate from identifiable sources.

The TPRs of these methods were evaluated based on the 10% features that were truly differentially methylated. All batch correction methods yielded higher TPRs than no adjustment, especially notable for a 10% cross-batch difference in the mean methylation percentage (Fig. 3).

Among different methods, ComBat-met and M-value ComBat achieved similar TPRs under circumstances with zero or a two-fold cross-batch precision difference (Fig. 3). However, for scenarios involving a 5- or 10-fold precision change, ComBat-met demonstrated a markedly increased power to detect methylation changes compared to M-value ComBat, without compromising the FPRs (Fig. 3). This highlights the superior performance of ComBat-met, as large precision differences typically occur when combining data from heterogeneous batches, such as those from different profiling platforms or studies. While ComBat-biseq achieved even higher TPRs than ComBat-met, its limited ability to control FPRs significantly restricts its suitability for small sample sizes (Fig. 3).

In evaluating the impact of empirical Bayes parameter shrinkage, we found that ComBat-met without shrinkage consistently outperformed its counterpart with shrinkage, exhibiting higher power while maintaining appropriate control of false positives (Supplementary Fig. S6). Notably, shrinkage led to an overly conservative behavior, with FPRs remaining below 0.05 even when the nominal threshold was set at 0.05. Moreover, ComBat-met with shrinkage demonstrated FPRs and TPRs more similar to those observed under no adjustment, suggesting that shrinkage resulted in incomplete removal of batch effects (Supplementary Fig. S6 and Fig. 3). This was likely due to the beta distribution’s ability to handle outliers and skewed data, reducing the necessity for additional shrinkage (see the Discussion section for details). Similar to ComBat-met, shrinkage in ComBat-biseq also reduced both TPRs and FPRs relative to non-shrinkage in most scenarios (Supplementary Fig. S6). However, even with shrinkage, ComBat-biseq failed to control false positives adequately, reinforcing its limitations for small sample sizes.

To ensure the reliability of our findings, we also evaluated the impact of downstream differential methylation testing, comparing results from limma and minfi. Both approaches yielded highly consistent results, indicating the robustness of our findings to the choice of the framework (Supplementary Fig. S7).

ComBat-met improves batch adjustment and enhances machine learning performance

To demonstrate the ability of ComBat-met to recover biological insights, we applied our method to batch-correct the TCGA dataset described in the Materials and methods section. In adjacent normal tissues, samples from the same batches were clustered together in the unadjusted data (Supplementary Fig. S8). Both M-value ComBat and ComBat-met effectively mitigated batch effects, as evidenced by the absence of batch-related sample separation in the adjusted data (Supplementary Fig. S8). Analysis of explained variation further suggested that batch-related variance was markedly reduced in the data adjusted by ComBat-met compared to M-value ComBat (Fig. 4A). While the tumor samples were seemingly less batch-affected due to larger inter-patient heterogeneity, quantitative analysis also revealed the greatest reduction of batch-explained variance in the data adjusted by ComBat-met, similar to adjacent normal samples (Supplementary Fig. S9 and Fig. 4A). Applying ComBat-met with parameter shrinkage led to incomplete reduction of batch effects (Supplementary Fig. S10).

Figure 4.

Figure 4.

Application of ComBat-met to remove batch effects in the TCGA data. (A) Percent of variation explained by batch in the unadjusted probe-level data, probe-level data adjusted by M-value ComBat, and probe-level data adjusted by ComBat-met in tumor and adjacent normal samples. (B) Neural network architecture and a box plot showing the difference in classification accuracy between models trained on unadjusted data and data adjusted by ComBat-met. Each dot represents the result from one of 50 iterations. A positive difference indicates that the model trained on adjusted data achieves higher accuracy. The P-value was calculated using a paired t-test.

The impact of batch correction on downstream classification tasks was evaluated using a neural network trained to distinguish between normal and tumor samples based on methylation percentages. Models trained on batch-adjusted data achieved a significantly higher mean accuracy of 0.81 (SD: 0.10) compared to 0.70 (SD: 0.13) for models trained on unadjusted data (Fig. 4B and P = Inline graphic). While the absolute improvement may appear modest, the extent of improvement depends on the magnitude of batch effects—greater batch effects yield greater benefits from adjustment.

Another notable feature of the results is the variability in classification accuracy across iterations (Fig. 4B). This variability is expected, as batch effects do not always hinder model performance. In some cases, batch effects that align with biological differences may artificially enhance classification accuracy. Nevertheless, our analysis demonstrates that on average, batch adjustment with ComBat-met results in higher accuracy, highlighting its value in preserving biological signal while minimizing unwanted variation.

Discussion

In this work, we have developed ComBat-met, which adjusts batch effects in DNA methylation data by employing a beta regression framework. Our work not only underscores the importance of batch correction in methylation studies but also highlights the superior performance of ComBat-met through simulations and real-world applications. Compared to the widely adopted M-value ComBat approach, ComBat-met demonstrates more effective removal of batch effects and markedly improved sensitivity to detect methylation changes for scenarios involving large cross-batch precision differences, without sacrificing specificity.

ComBat-met is an extension of ComBat and ComBat-seq [10, 11]. Despite the differences in their probabilistic assumptions, all these methods adopt a regression framework to model the means and precision of batch effects followed by an adjustment step, which is in essence, a quantile-mapping procedure. Similar to ComBat, ComBat-met also provides users the option to adjust β-values to not only the common cross-batch average but also any existing batch as the reference [16]. In large consortium projects, datasets are typically generated sequentially [27], so batch correction would always need to be reapplied in the event of incoming new datasets if the correction method depends on all datasets in hand. Our reference-based strategy allows new data to be adjusted without impacting the previous results, facilitating data integration across sequential batches.

While ComBat-met brings major improvement to batch correction for methylation studies, we acknowledge several limitations of our approach. First, ComBat-met runs more slowly than M-value ComBat. Unlike linear regression, beta regression lacks a closed-form solution and therefore requires iterative methods for maximum likelihood estimation. Parallel computing has been employed to expedite the regression step in ComBat-met. Second, ComBat-met is designed specifically to address batch effects stemming from identifiable sources. In the presence of unknown sources of variation, SVA or RUV should be applied instead [12, 13].

Additionally, ComBat employs an empirical Bayes framework to shrink batch effect parameters [10]. This approach borrows information across features, making the adjustment robust for data with small sample sizes or outliers. Inspired by the non-parametric empirical Bayes method in ComBat [10], we provide a similar option in ComBat-met, enabling users the freedom to shrink parameters at will. However, in the context of beta regression, parameter shrinkage has been shown to cause under-correction of batch effects. Our observations are consistent with ComBat-seq, which also under-corrects when coupled to parameter shrinkage. Similar to the negative binomial distribution, beta distributions can accommodate a wide range of skewness, conferring more robustness to outliers and making parameter shrinkage unnecessary [11]. Furthermore, it is noteworthy that nonparametric empirical Bayes, which requires extensive Monte-Carlo sampling, becomes extremely time-consuming for large DNA methylomes even if only a subset of features are sampled. While we discourage the use of parameter shrinkage in ComBat-met, it will be interesting to further explore the impact of outlying β-values and refine our method to better accommodate outliers in methylation data.

In conclusion, ComBat-met emerges as a powerful batch correction method for capturing the unique characteristics of DNA methylation data. Our work demonstrates the great potential of this approach in facilitating data integration and accelerating biological discoveries.

Supplementary Material

lqaf062_Supplemental_File

Acknowledgements

The results shown here are in part based upon data generated by the TCGA Research Network: https://www.cancer.gov/tcga.

Author contributions: Junmin Wang (Conceptualization [lead], Investigation [lead], Methodology [lead], Software [lead], Validation [lead], Visualization [lead], Writing—original draft [lead], Writing—review & editing [lead]).

Supplementary data

Supplementary data is available at NAR Genomics & Bioinformatics online.

Conflict of interest

None declared.

Data availability

ComBat-met is available as an R package. All code is publicly hosted on GitHub (https://github.com/JmWangBio/ComBatMet) and archived via Zenodo (https://doi.org/10.5281/zenodo.15133340).

References

  • 1. Frommer  M, McDonald  LE, Millar  DS  et al.  A genomic sequencing protocol that yields a positive display of 5-methylcytosine residues in individual DNA strands. Proc Natl Acad Sci USA. 1992; 89:1827–31. 10.1073/pnas.89.5.1827. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2. Ross  JP, van Dijk  S, Phang  M  et al.  Batch-effect detection, correction and characterisation in Illumina HumanMethylation450 and MethylationEPIC BeadChip array data. Clin Epigenet. 2022; 14:58. 10.1186/s13148-022-01277-9. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3. Price  EM, Robinson  WP  Adjusting for batch effects in DNA methylation microarray data, a lesson learned. Front Genet. 2018; 9:83. 10.3389/fgene.2018.00083. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4. Olova  N, Krueger  F, Andrews  S  et al.  Comparison of whole-genome bisulfite sequencing library preparation strategies identifies sources of biases affecting DNA methylation data. Genome Biol. 2018; 19:33. 10.1186/s13059-018-1408-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5. Wang  J, Novick  S  Peptide set test: a peptide-centric strategy to infer differentially expressed proteins. Bioinformatics. 2024; 40:btae270. 10.1093/bioinformatics/btae270. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Akulenko  R, Merl  M, Helms  V  BEclear: batch effect detection and adjustment in DNA methylation data. PLoS One. 2016; 11:e0159921. 10.1371/journal.pone.0159921. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7. Liu  Y, Siejka-Zielinska  P, Velikova  G  et al.  Bisulfite-free direct detection of 5-methylcytosine and 5-hydroxymethylcytosine at base resolution. Nat Biotechnol. 2019; 37:424–9. 10.1038/s41587-019-0041-2. [DOI] [PubMed] [Google Scholar]
  • 8. Schutsky  EK, DeNizio  JE, Hu  P  et al.  Nondestructive, base-resolution sequencing of 5-hydroxymethylcytosine using a DNA deaminase. Nat Biotechnol. 2018; 10.1038/nbt.4204. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9. Simpson  JT, Workman  RE, Zuzarte  PC  et al.  Detecting DNA cytosine methylation using nanopore sequencing. Nat Methods. 2017; 14:407–10. 10.1038/nmeth.4184. [DOI] [PubMed] [Google Scholar]
  • 10. Johnson  WE, Li  C, Rabinovic  A  Adjusting batch effects in microarray expression data using empirical Bayes methods. Biostatistics. 2007; 8:118–27. 10.1093/biostatistics/kxj037. [DOI] [PubMed] [Google Scholar]
  • 11. Zhang  Y, Parmigiani  G, Johnson  WE  ComBat-seq: batch effect adjustment for RNA-seq count data. NAR Genom Bioinform. 2020; 2:lqaa078. 10.1093/nargab/lqaa078. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Leek  JT, Johnson  WE, Parker  HS  et al.  The sva package for removing batch effects and other unwanted variation in high-throughput experiments. Bioinformatics. 2012; 28:882–3. 10.1093/bioinformatics/bts034. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13. Gagnon-Bartsch  JA, Speed  TP  Using control genes to correct for unwanted variation in microarray data. Biostatistics. 2012; 13:539–52. 10.1093/biostatistics/kxr034. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14. Tian  Y, Morris  TJ, Webster  AP  et al.  ChAMP: updated methylation analysis pipeline for Illumina BeadChips. Bioinformatics. 2017; 33:3982–4. 10.1093/bioinformatics/btx513. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15. Maksimovic  J, Gagnon-Bartsch  JA, Speed  TP  et al.  Removing unwanted variation in a differential methylation analysis of Illumina HumanMethylation450 array data. Nucleic Acids Res. 2015; 43:e106. 10.1093/nar/gkv526. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16. Zhang  Y, Jenkins  DF, Manimaran  S  et al.  Alternative empirical Bayes models for adjusting for batch effects in genomic studies. BMC Bioinformatics. 2018; 19:262. 10.1186/s12859-018-2263-6. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Cancer  Genome Atlas N  Comprehensive molecular portraits of human breast tumours. Nature. 2012; 490:61–70. 10.1038/nature11412. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. Cribari-Neto  F, Zeileis  A  Beta regression in R. J Stat Soft. 2010; 34:1–24. 10.18637/jss.v034.i02. [DOI] [Google Scholar]
  • 19. Akalin  A, Kormaksson  M, Li  S  et al.  methylKit: a comprehensive R package for the analysis of genome-wide DNA methylation profiles. Genome Biol. 2012; 13:R87. 10.1186/gb-2012-13-10-r87. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20. Lesnoff  M, Lancelot  R  Aod: analysis of overdispersed data. 2012; 1 May 2025, date last accessedhttps://cran.r-project.org/package=aod.
  • 21. Gerard  D, Ferrao  LFV, Garcia  AAF  et al.  Genotyping polyploids from messy sequencing data. Genetics. 2018; 210:789–807. 10.1534/genetics.118.301468. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Ritchie  ME, Phipson  B, Wu  D  et al.  limma powers differential expression analyses for RNA-sequencing and microarray studies. Nucleic Acids Res. 2015; 43:e47. 10.1093/nar/gkv007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23. Aryee  MJ, Jaffe  AE, Corrada-Bravo  H  et al.  Minfi: a flexible and comprehensive bioconductor package for the analysis of Infinium DNA methylation microarrays. Bioinformatics. 2014; 30:1363–9. 10.1093/bioinformatics/btu049. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Park  Y, Figueroa  ME, Rozek  LS  et al.  MethylSig: a whole genome DNA methylation analysis pipeline. Bioinformatics. 2014; 30:2414–22. 10.1093/bioinformatics/btu339. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Colaprico  A, Silva  TC, Olsen  C  et al.  TCGAbiolinks: an R/bioconductor package for integrative analysis of TCGA data. Nucleic Acids Res. 2016; 44:e71. 10.1093/nar/gkv1507. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26. Mounir  M, Lucchetta  M, Silva  TC  et al.  New functionalities in the TCGAbiolinks package for the study and integration of cancer data from GDC and GTEx. PLoS Comput Biol. 2019; 15:e1006701. 10.1371/journal.pcbi.1006701. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 27. Wang  J, Novick  S  DOSE-L1000: unveiling the intricate landscape of compound-induced transcriptional changes. Bioinformatics. 2023; 39:btad683. 10.1093/bioinformatics/btad683. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

lqaf062_Supplemental_File

Data Availability Statement

ComBat-met is available as an R package. All code is publicly hosted on GitHub (https://github.com/JmWangBio/ComBatMet) and archived via Zenodo (https://doi.org/10.5281/zenodo.15133340).


Articles from NAR Genomics and Bioinformatics are provided here courtesy of Oxford University Press

RESOURCES