Class DifferentialExpressionAnalyzerServiceImpl
java.lang.Object
ubic.gemma.core.analysis.expression.diff.DifferentialExpressionAnalyzerServiceImpl
- All Implemented Interfaces:
DifferentialExpressionAnalyzerService
@Component
@Transactional(propagation=NEVER)
public class DifferentialExpressionAnalyzerServiceImpl
extends Object
implements DifferentialExpressionAnalyzerService
Differential expression service to run the differential expression analysis (and persist the results using the
appropriate data access objects).
Note that there is also a DifferentialExpressionAnalysisService (which handled CRUD for analyses). In contrast this
_does_ the analysis.
- Author:
- keshav
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
deleteAnalyses
(ExpressionExperiment expressionExperiment) Delete any differential expression analyses associated with the experiment.int
deleteAnalyses
(ExpressionExperiment ee, Collection<DifferentialExpressionAnalysis> analysesToDelete) Delete the specified differential expression analyses associated with the experiment.void
deleteAnalysis
(ExpressionExperiment expressionExperiment, DifferentialExpressionAnalysis existingAnalysis) Deletes the given analysis.void
Remove old files which will otherwise be cruft.extendAnalysis
(ExpressionExperiment ee, DifferentialExpressionAnalysis toUpdate, DifferentialExpressionAnalysisConfig baseConfig) Like redo, but we don't save the results, we just add the full set of results to the analysis given.getAnalyses
(ExpressionExperiment expressionExperiment) persistAnalysis
(ExpressionExperiment expressionExperiment, DifferentialExpressionAnalysis analysis, DifferentialExpressionAnalysisConfig config) Made public for testing purposes only.redoAnalyses
(ExpressionExperiment ee, Collection<DifferentialExpressionAnalysis> deas, DifferentialExpressionAnalysisConfig config, boolean ignoreFailingAnalyses) Redo multiple analyses.Redo an analysis.redoAnalysis
(ExpressionExperiment ee, DifferentialExpressionAnalysis dea, DifferentialExpressionAnalysisConfig config) Redo an analysis.runDifferentialExpressionAnalyses
(ExpressionExperiment expressionExperiment, DifferentialExpressionAnalysisConfig config)
-
Constructor Details
-
DifferentialExpressionAnalyzerServiceImpl
public DifferentialExpressionAnalyzerServiceImpl()
-
-
Method Details
-
deleteAnalyses
Description copied from interface:DifferentialExpressionAnalyzerService
Delete any differential expression analyses associated with the experiment. Also deletes files associated with the analysis (e.g., results dumps) and associated hitlist sizes and pvalue distributions.- Specified by:
deleteAnalyses
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
expressionExperiment
- the experiment- Returns:
- the number of analyses that were deleted
-
deleteAnalyses
public int deleteAnalyses(ExpressionExperiment ee, Collection<DifferentialExpressionAnalysis> analysesToDelete) Description copied from interface:DifferentialExpressionAnalyzerService
Delete the specified differential expression analyses associated with the experiment.- Specified by:
deleteAnalyses
in interfaceDifferentialExpressionAnalyzerService
-
deleteAnalysis
public void deleteAnalysis(ExpressionExperiment expressionExperiment, DifferentialExpressionAnalysis existingAnalysis) Description copied from interface:DifferentialExpressionAnalyzerService
Deletes the given analysis. Also deletes files associated with the analysis. (e.g., results dumps)- Specified by:
deleteAnalysis
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
expressionExperiment
- the experimentexistingAnalysis
- analysis
-
extendAnalysis
public Collection<ExpressionAnalysisResultSet> extendAnalysis(ExpressionExperiment ee, DifferentialExpressionAnalysis toUpdate, DifferentialExpressionAnalysisConfig baseConfig) Description copied from interface:DifferentialExpressionAnalyzerService
Like redo, but we don't save the results, we just add the full set of results to the analysis given. If we want to keep these results, must call update on the old one.- Specified by:
extendAnalysis
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
ee
- the experimenttoUpdate
- analysis- Returns:
- collection of results
-
getAnalyses
public Collection<DifferentialExpressionAnalysis> getAnalyses(ExpressionExperiment expressionExperiment) - Specified by:
getAnalyses
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
expressionExperiment
- the experiment- Returns:
- all DifferentialExpressionAnalysis entities for the experiment.
-
redoAnalysis
public Collection<DifferentialExpressionAnalysis> redoAnalysis(ExpressionExperiment ee, DifferentialExpressionAnalysis dea) Description copied from interface:DifferentialExpressionAnalyzerService
Redo an analysis.- Specified by:
redoAnalysis
in interfaceDifferentialExpressionAnalyzerService
- See Also:
-
redoAnalysis
public Collection<DifferentialExpressionAnalysis> redoAnalysis(ExpressionExperiment ee, DifferentialExpressionAnalysis dea, DifferentialExpressionAnalysisConfig config) Description copied from interface:DifferentialExpressionAnalyzerService
Redo an analysis.- Specified by:
redoAnalysis
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
ee
- the experimentdea
- analysis to base new one onconfig
- configuration for the analysis, factors and interactions will be ignored, but all other settings apply as usual- Returns:
- DEAs
-
redoAnalyses
public Collection<DifferentialExpressionAnalysis> redoAnalyses(ExpressionExperiment ee, Collection<DifferentialExpressionAnalysis> deas, DifferentialExpressionAnalysisConfig config, boolean ignoreFailingAnalyses) Description copied from interface:DifferentialExpressionAnalyzerService
Redo multiple analyses.- Specified by:
redoAnalyses
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
ignoreFailingAnalyses
- if true, analyses that fail will not be reported as errors, but will be skipped. Note that if all analyses fail, aAllAnalysesFailedException
will be raised.- See Also:
-
runDifferentialExpressionAnalyses
public Collection<DifferentialExpressionAnalysis> runDifferentialExpressionAnalyses(ExpressionExperiment expressionExperiment, DifferentialExpressionAnalysisConfig config) - Specified by:
runDifferentialExpressionAnalyses
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
expressionExperiment
- the experimentconfig
- config- Returns:
- persistent analyses.
-
persistAnalysis
public DifferentialExpressionAnalysis persistAnalysis(ExpressionExperiment expressionExperiment, DifferentialExpressionAnalysis analysis, DifferentialExpressionAnalysisConfig config) Made public for testing purposes only.- Specified by:
persistAnalysis
in interfaceDifferentialExpressionAnalyzerService
- Parameters:
expressionExperiment
- the experimentanalysis
- analysisconfig
- config- Returns:
- DEA
-
deleteStatistics
Remove old files which will otherwise be cruft.- Parameters:
ee
- the experimentanalysis
- analysis
-