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 TypeMethodDescriptionbooleanCheck if the given experiment is correctable for batch effects.Run ComBat using default settings (parametric)comBat(ExpressionExperiment ee, ExpressionDataDoubleMatrix originalDataMatrix) Run ComBat with a specific data matrix.
-
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:ExpressionExperimentBatchCorrectionServiceCheck if the given experiment is correctable for batch effects.For a dataset to be correctable, it must meet the following criteria:
- a batch factor must be present
- there must be no confounding factor
- there must be 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
-