Search in sources :

Example 1 with DifferentialExpressionAnalysisRemoveTaskCommand

use of ubic.gemma.core.tasks.analysis.diffex.DifferentialExpressionAnalysisRemoveTaskCommand in project Gemma by PavlidisLab.

the class DifferentialExpressionAnalysisController method remove.

/**
 * AJAX entry point to remove an analysis given by the ID
 *
 * @param id id
 * @return string
 * @throws Exception exception
 */
public String remove(Long eeId, Long id) {
    ExpressionExperiment ee = expressionExperimentService.load(eeId);
    if (ee == null) {
        throw new IllegalArgumentException("Cannot access experiment with id=" + eeId);
    }
    DifferentialExpressionAnalysis toRemove = differentialExpressionAnalysisService.load(id);
    if (toRemove == null) {
        throw new IllegalArgumentException("Cannot access analysis with id=" + id);
    }
    DifferentialExpressionAnalysisRemoveTaskCommand cmd = new DifferentialExpressionAnalysisRemoveTaskCommand(ee, toRemove);
    this.experimentReportService.evictFromCache(ee.getId());
    return taskRunningService.submitRemoteTask(cmd);
}
Also used : DifferentialExpressionAnalysis(ubic.gemma.model.analysis.expression.diff.DifferentialExpressionAnalysis) ExpressionExperiment(ubic.gemma.model.expression.experiment.ExpressionExperiment) DifferentialExpressionAnalysisRemoveTaskCommand(ubic.gemma.core.tasks.analysis.diffex.DifferentialExpressionAnalysisRemoveTaskCommand)

Aggregations

DifferentialExpressionAnalysisRemoveTaskCommand (ubic.gemma.core.tasks.analysis.diffex.DifferentialExpressionAnalysisRemoveTaskCommand)1 DifferentialExpressionAnalysis (ubic.gemma.model.analysis.expression.diff.DifferentialExpressionAnalysis)1 ExpressionExperiment (ubic.gemma.model.expression.experiment.ExpressionExperiment)1