hms-dbmi-cellenics / issues

This repository is used to report and track issues
1 stars 0 forks source link

[Bug] Pathway analysis doesn't work #100

Closed saracastel closed 5 months ago

saracastel commented 6 months ago

Background A user reported that pathway analysis doesn't work. This issue was reproduced using two different datasets:

For pantherdb, the error "We couldn't launch pathway analysis" shows up (see attached screenshot).

Image

For enrichr, the error "504 Gateway Time-out" shows up (see attached screenshot).

Image

Goals Investigate and fix the issue so that pathway analysis can be run successfully.

alexvpickering commented 5 months ago

There seems to be a couple of things going on here:

image

// src/utils/pathwayAnalysis/launchPathwayService.js
const { total, data } = genesList;

  switch (serviceName) {
    case pathwayServices.PANTHERDB:
      url = serviceUrls[pathwayServices.PANTHERDB];
      params = {
        correction: 'fdr',
        format: 'html',
        resource: 'PANTHER',
        ontology: 'biological_process',
        input: data.gene_id.join('\n'),
        species,
      };
...