Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enrichr analysis error #77

Open
dbau opened this issue Jul 9, 2019 · 1 comment
Open

Enrichr analysis error #77

dbau opened this issue Jul 9, 2019 · 1 comment

Comments

@dbau
Copy link

dbau commented Jul 9, 2019

Hi,

I have a problem with the Enrichr analysis. When I run it as:

# Initialize results
results['enrichr'] = {}

# Loop through signatures
for label, signature in signatures.items():

    # Run analysis
    results['enrichr'][label] = analyze(signature=signature, tool='enrichr', signature_label=label, geneset_size=500)

    # Display results
    plot(results['enrichr'][label])

I get the following error:


Exception                                 Traceback (most recent call last)
<ipython-input-62-6cd0bc5bc6ce> in <module>()
      6 
      7     # Run analysis
----> 8     results['enrichr'][label] = analyze(signature=signature, tool='enrichr', signature_label=label, geneset_size=500)
      9 
     10     # Display results

<ipython-input-1-835cab3f0c8d> in analyze(tool, **kwargs)
     69                 kwargs['dataset'][normalization_method] = normalize_dataset(method = normalization_method, dataset=kwargs['dataset'])
     70 
---> 71         return {'results': eval(tool).run(**kwargs), 'tool': tool}
     72 
     73 # Plot

/library/v1.0.5/analysis_tools/enrichr/enrichr.py in run(signature, geneset_size, libraries, signature_label)
     60 
     61         # Submit to Enrichr
---> 62         enrichr_ids = {geneset_label: submit_enrichr_geneset(geneset=geneset, label=signature_label+', '+geneset_label+', from BioJupies') for geneset_label, geneset in genesets.items()}
     63         enrichr_ids['signature_label'] = signature_label
     64         return enrichr_ids

/library/v1.0.5/analysis_tools/enrichr/enrichr.py in <dictcomp>(.0)
     60 
     61         # Submit to Enrichr
---> 62         enrichr_ids = {geneset_label: submit_enrichr_geneset(geneset=geneset, label=signature_label+', '+geneset_label+', from BioJupies') for geneset_label, geneset in genesets.items()}
     63         enrichr_ids['signature_label'] = signature_label
     64         return enrichr_ids

/library/v1.0.5/analysis_tools/enrichr/enrichr.py in submit_enrichr_geneset(geneset, label)
     47         response = requests.post(ENRICHR_URL, files=payload)
     48         if not response.ok:
---> 49                 raise Exception('Error analyzing gene list')
     50         time.sleep(0.5)
     51         data = json.loads(response.text)

Exception: Error analyzing gene list

I can I fix it?

Thanks in advance!
Davide

@dbau
Copy link
Author

dbau commented Jul 12, 2019

Hi,

Any news on this issue? Could Biojupies use the new enrichr server to overcome this error?

Thanks,
Davide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant