Search in sources :

Example 1 with GeneDifferentialExpressionMetaAnalysisSummaryValueObject

use of ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisSummaryValueObject in project Gemma by PavlidisLab.

the class PhenotypeAssociationManagerServiceImpl method convertDifferentialExpressionEvidence2ValueObject.

private DiffExpressionEvidenceValueObject convertDifferentialExpressionEvidence2ValueObject(DifferentialExpressionEvidence differentialExpressionEvidence) {
    DiffExpressionEvidenceValueObject diffExpressionEvidenceValueObject = null;
    if (differentialExpressionEvidence != null) {
        GeneDifferentialExpressionMetaAnalysis geneDifferentialExpressionMetaAnalysis = this.geneDiffExMetaAnalysisService.loadWithResultId(differentialExpressionEvidence.getGeneDifferentialExpressionMetaAnalysisResult().getId());
        Collection<Long> ids = new HashSet<>();
        ids.add(geneDifferentialExpressionMetaAnalysis.getId());
        GeneDifferentialExpressionMetaAnalysisSummaryValueObject geneDiffExMetaAnalysisSummaryValueObject = this.geneDiffExMetaAnalysisService.findMetaAnalyses(ids).iterator().next();
        diffExpressionEvidenceValueObject = new DiffExpressionEvidenceValueObject(differentialExpressionEvidence, geneDiffExMetaAnalysisSummaryValueObject);
        // set the count, how many evidences where created from the specific meta analysis
        diffExpressionEvidenceValueObject.setNumEvidenceFromSameMetaAnalysis(this.phenoAssocService.countEvidenceWithGeneDifferentialExpressionMetaAnalysis(geneDifferentialExpressionMetaAnalysis.getId()));
    }
    return diffExpressionEvidenceValueObject;
}
Also used : GeneDifferentialExpressionMetaAnalysis(ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysis) GeneDifferentialExpressionMetaAnalysisSummaryValueObject(ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisSummaryValueObject)

Aggregations

GeneDifferentialExpressionMetaAnalysis (ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysis)1 GeneDifferentialExpressionMetaAnalysisSummaryValueObject (ubic.gemma.model.analysis.expression.diff.GeneDifferentialExpressionMetaAnalysisSummaryValueObject)1