private EnrichmentEngineResponseDto computeEnrichment(EnrichmentEngineRequestDto request) throws ApplicationException, NoRelatedGenesInfoException { if (request == null) { return null; } if (request.getNodes().size() == 0) { throw new NoRelatedGenesInfoException(); } return mania.computeEnrichment(request); }
private RelatedGenesEngineResponseDto runQuery(RelatedGenesEngineRequestDto request) throws DataStoreException { try { request.setProgressReporter(NullProgressReporter.instance()); RelatedGenesEngineResponseDto result; result = mania.findRelated(request); request.setCombiningMethod(result.getCombiningMethodApplied()); networkUtils.normalizeNetworkWeights(result); return result; } catch (ApplicationException e) { Logger logger = Logger.getLogger(getClass()); logger.error("Unexpected error", e); // $NON-NLS-1$ return null; } }