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);
}
Aggregations