Class ExpressionExperimentBatchCorrectionServiceImpl
java.lang.Object
ubic.gemma.core.analysis.preprocess.batcheffects.ExpressionExperimentBatchCorrectionServiceImpl
- All Implemented Interfaces:
ExpressionExperimentBatchCorrectionService
@Component
public class ExpressionExperimentBatchCorrectionServiceImpl
extends Object
implements ExpressionExperimentBatchCorrectionService
Methods for correcting batch effects.
- Author:
- paul
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIs there a Batch factor provided? Is there a confound problem? Do we have at least two samples per batch? This will return true even if there is evidence the data has been batch-corrected before; we assume the caller wants to redo it based on the raw dataRun ComBat using default settings (parametric)comBat(ExpressionExperiment ee, ExpressionDataDoubleMatrix originalDataMatrix) Run ComBat with a specific data matrix.For convenience of some testing classesstatic ExpressionDataDoubleMatrixremoveOutliers(ExpressionDataDoubleMatrix originalDataMatrix, ExpressionExperiment ee) Remove outlier samples from the data matrix, based on outliers that were flagged in the experiment (not just candidate outliers)
-
Field Details
-
COLLECTION_OF_MATERIAL_URI
- See Also:
-
DE_EXCLUDE_URI
- See Also:
-
DE_INCLUDE_URI
- See Also:
-
-
Constructor Details
-
ExpressionExperimentBatchCorrectionServiceImpl
public ExpressionExperimentBatchCorrectionServiceImpl()
-
-
Method Details
-
checkCorrectability
Description copied from interface:ExpressionExperimentBatchCorrectionServiceIs there a Batch factor provided? Is there a confound problem? Do we have at least two samples per batch? This will return true even if there is evidence the data has been batch-corrected before; we assume the caller wants to redo it based on the raw data- Specified by:
checkCorrectabilityin interfaceExpressionExperimentBatchCorrectionService- Parameters:
ee- the experiment- Returns:
- whether it is correctable
-
comBat
Description copied from interface:ExpressionExperimentBatchCorrectionServiceRun ComBat using default settings (parametric)The matrix is constructed from the experiment's processed vectors.
- Specified by:
comBatin interfaceExpressionExperimentBatchCorrectionService
-
comBat
public ExpressionDataDoubleMatrix comBat(ExpressionExperiment ee, ExpressionDataDoubleMatrix originalDataMatrix) Description copied from interface:ExpressionExperimentBatchCorrectionServiceRun ComBat with a specific data matrix.- Specified by:
comBatin interfaceExpressionExperimentBatchCorrectionService- Parameters:
originalDataMatrix- the matrix- Returns:
- batch corrected matrix, or null if there's no batching factor
-
removeOutliers
public static ExpressionDataDoubleMatrix removeOutliers(ExpressionDataDoubleMatrix originalDataMatrix, ExpressionExperiment ee) Remove outlier samples from the data matrix, based on outliers that were flagged in the experiment (not just candidate outliers)- Returns:
- the original matrix, or if outliers were present, a new matrix with the outliers removed
-
getBatchFactor
Description copied from interface:ExpressionExperimentBatchCorrectionServiceFor convenience of some testing classes- Specified by:
getBatchFactorin interfaceExpressionExperimentBatchCorrectionService- Parameters:
ee- the experiment to get the batch factor for- Returns:
- the batch factor of the experiment, or null, if experiment has no batch factor
-