コード例 #1
0
  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;
  }
コード例 #2
0
 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;
   }
 }