private SearchResult runGeneManiaAlgorithm() throws ApplicationException, DataStoreException, NoRelatedGenesInfoException { RelatedGenesEngineRequestDto request = createRequest(); response = runQuery(request); EnrichmentEngineRequestDto enrichmentRequest = createEnrichmentRequest(response); EnrichmentEngineResponseDto enrichmentResponse = computeEnrichment(enrichmentRequest); SearchResult options = networkUtils.createSearchOptions(human, request, response, enrichmentResponse, data, genes); return options; }
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; } }