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