Search in sources :

Example 1 with GeneDifferentialExpressionMetaAnalysisDetailValueObject

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);
}
Also used : GeneDifferentialExpressionMetaAnalysis(ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysis) TaskResult(ubic.gemma.core.job.TaskResult) GeneDifferentialExpressionMetaAnalysisDetailValueObject(ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisDetailValueObject)

Example 2 with GeneDifferentialExpressionMetaAnalysisDetailValueObject

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;
}
Also used : BaseValueObject(ubic.gemma.model.BaseValueObject) GeneDifferentialExpressionMetaAnalysisDetailValueObject(ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisDetailValueObject)

Aggregations

GeneDifferentialExpressionMetaAnalysisDetailValueObject (ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisDetailValueObject)2 TaskResult (ubic.gemma.core.job.TaskResult)1 BaseValueObject (ubic.gemma.model.BaseValueObject)1 GeneDifferentialExpressionMetaAnalysis (ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysis)1