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

Error getting the Enrichr libraries #235

Open
talponer opened this issue Nov 24, 2023 · 7 comments
Open

Error getting the Enrichr libraries #235

talponer opened this issue Nov 24, 2023 · 7 comments

Comments

@talponer
Copy link

Setup

I am reporting a problem with GSEApy version, Python version, and operating
system as follows:

3.8.17 | packaged by conda-forge | (default, Jun 16 2023, 07:06:00) 
[GCC 11.4.0]
CPython
Linux-4.18.0-326.el8.x86_64-x86_64-with-glibc2.10
0.10.8

Expected behaviour

gp.get_library_name()[1:10]
['ARCHS4_Cell-lines',
 'ARCHS4_IDG_Coexp',
 'ARCHS4_Kinases_Coexp',
 'ARCHS4_TFs_Coexp',
 'ARCHS4_Tissues',
 'Achilles_fitness_decrease',
 'Achilles_fitness_increase',
 'Aging_Perturbations_from_GEO_down',
 'Aging_Perturbations_from_GEO_up',
 'Allen_Brain_Atlas_10x_scRNA_2021']

Actual behaviour

gp.get_library_name()[1:10]
Exception: Error getting the Enrichr libraries

The same problem arise when using the function enrichr:

smad3jun_reactome = gp.enrichr(
    gene_list = smad3jun,
    gene_sets = ['Reactome_2016'],
    organism = 'Human', 
    description = 'SMAD3 - JUN',
    background = None, 
    outdir = None,
    verbose = True
 )

2023-11-24 10:33:49,115 Connecting to Enrichr Server to get latest library names


Truncated Traceback (Use C-c C-$ to view full TB):
File /envs/scenicplus/lib/python3.8/site-packages/gseapy/enrichr.py:241, in Enrichr.get_libraries(self)
    239 response = requests.get(lib_url, verify=True)
    240 if not response.ok:
--> 241     raise Exception("Error getting the Enrichr libraries")
    242 libs_json = json.loads(response.text)
    243 libs = [lib['libraryName'] for lib in libs_json['statistics']]

Exception: Error getting the Enrichr libraries

Thank you for checking this!

@dpaysan
Copy link

dpaysan commented Dec 7, 2023

I have the same problem

@romain-lopez
Copy link

Hi! I also have the same problem!

@dpaysan
Copy link

dpaysan commented Dec 13, 2023

I recommend as a temporary workaround to download the respective .gmt files from MSigDB and running enrichr with providing the file location of the .gmt file as parameter for the genesets.

@romain-lopez
Copy link

Thanks! This is really useful!

@zqfang
Copy link
Owner

zqfang commented Dec 14, 2023

I'll try to connect to enrichr web service to see whether they can provide a more stable link

@zqfang
Copy link
Owner

zqfang commented Dec 15, 2023

@talponer , I just noticed that you've used a quite old version of GSEApy.

Pleaes update GSEApy to the latest version, which will solve your issue

The link to enrichr has expired since it uses a new web site address

@racng
Copy link

racng commented Dec 19, 2023

Upgrading from v1.0.4 to v1.1.0 has solved my issue.

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

5 participants