Class ComBat<R,​C>


  • public class ComBat<R,​C>
    extends Object
    An implementation of the ComBat algorithm described by Johson et al as described in:

    Johnson, WE, Rabinovic, A, and Li, C (2007). Adjusting batch effects in microarray expression data using Empirical Bayes methods. Biostatistics 8(1):118-127.

    • Method Detail

      • plot

        public void plot​(String filePrefix)
        Make diagnostic plots. FIXME: As in the original ComBat, this only graphs the first batch's statistics. In principle we can (and perhaps should) examine these plots for all the batches.
        Parameters:
        filePrefix - file prefix
      • run

        public DoubleMatrix2D run()
                           throws ubic.gemma.core.analysis.preprocess.batcheffects.ComBatException
        Returns:
        data corrected using parametric prior estimator
        Throws:
        ubic.gemma.core.analysis.preprocess.batcheffects.ComBatException - combat problems
      • run

        public DoubleMatrix2D run​(boolean parametric)
                           throws ubic.gemma.core.analysis.preprocess.batcheffects.ComBatException
        Parameters:
        parametric - if false, use the non-parametric (slower) method for estimating the priors.
        Returns:
        corrected data
        Throws:
        ubic.gemma.core.analysis.preprocess.batcheffects.ComBatException - combat problems