use of ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisDetailValueObject in project Gemma by PavlidisLab.
the class DiffExMetaAnalyzerTaskImpl method execute.
@Override
public TaskResult execute() {
GeneDifferentialExpressionMetaAnalysis metaAnalysis = this.diffExMetaAnalyzerService.analyze(taskCommand.getAnalysisResultSetIds());
if (metaAnalysis != null) {
metaAnalysis.setName(taskCommand.getName());
metaAnalysis.setDescription(taskCommand.getDescription());
if (taskCommand.isPersist()) {
metaAnalysis = this.diffExMetaAnalyzerService.persist(metaAnalysis);
}
}
GeneDifferentialExpressionMetaAnalysisDetailValueObject metaAnalysisVO = (metaAnalysis == null ? null : this.geneDiffExMetaAnalysisHelperService.convertToValueObject(metaAnalysis));
return new TaskResult(taskCommand, metaAnalysisVO);
}
use of ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisDetailValueObject in project Gemma by PavlidisLab.
the class DiffExMetaAnalyzerController method findDetailMetaAnalysisById.
public BaseValueObject findDetailMetaAnalysisById(Long id) {
BaseValueObject baseValueObject = new BaseValueObject();
try {
GeneDifferentialExpressionMetaAnalysisDetailValueObject analysisVO = this.geneDiffExMetaAnalysisHelperService.findDetailMetaAnalysisById(id);
if (analysisVO == null) {
baseValueObject.setErrorFound(true);
baseValueObject.setObjectAlreadyRemoved(true);
} else {
baseValueObject.setValueObject(analysisVO);
}
} catch (Throwable throwable) {
log.error(throwable.getMessage(), throwable);
baseValueObject = generateBaseValueObject(throwable);
}
return baseValueObject;
}
Aggregations