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

enrichWP is not working for a few organisms #729

Open
prateekgv opened this issue Sep 30, 2024 · 3 comments
Open

enrichWP is not working for a few organisms #729

prateekgv opened this issue Sep 30, 2024 · 3 comments

Comments

@prateekgv
Copy link

prateekgv commented Sep 30, 2024

R version
4.3.1

packageVersion("clusterProfiler")
‘4.10.1’

get_wp_organisms() gives:
"Caenorhabditis elegans" "Bos taurus" "Arabidopsis thaliana"

@guidohooiveld
Copy link

Mmm, did you also try with the latest version of clusterProfiler (and R)? It is working in my hands....

> get_wp_organisms() 
 [1] "Anopheles gambiae"        "Arabidopsis thaliana"    
 [3] "Bos taurus"               "Caenorhabditis elegans"  
 [5] "Canis familiaris"         "Danio rerio"             
 [7] "Drosophila melanogaster"  "Equus caballus"          
 [9] "Gallus gallus"            "Homo sapiens"            
[11] "Mus musculus"             "Pan troglodytes"         
[13] "Populus trichocarpa"      "Rattus norvegicus"       
[15] "Saccharomyces cerevisiae" "Solanum lycopersicum"    
[17] "Sus scrofa"               "Zea mays"                
> packageVersion("clusterProfiler")
[1] ‘4.12.6’
> R.Version()$version.string
[1] "R version 4.4.0 Patched (2024-05-21 r86580 ucrt)"
>

@prateekgv
Copy link
Author

Is there a way to fix the issue for the older R version (4.3.1)? I am dependent on this version of R for my analysis because several other packages in my pipeline use this version of R.

@guidohooiveld
Copy link

The issue is that the URL of WikiPathways has meanwhile been changed.

Yet, a quick-and-dirty hack may be to source the current WikiPathways 'module' in your R-4.3.1.

Doing this in R-4.3.0 that I still have installed:

> library(clusterProfiler)
> 
> source("https://raw.githubusercontent.com/YuLab-SMU/clusterProfiler/refs/heads/devel/R/wikiPathways.R")
> 
> get_wp_organisms() 
 [1] "Anopheles gambiae"        "Arabidopsis thaliana"    
 [3] "Bos taurus"               "Caenorhabditis elegans"  
 [5] "Canis familiaris"         "Danio rerio"             
 [7] "Drosophila melanogaster"  "Equus caballus"          
 [9] "Gallus gallus"            "Homo sapiens"            
[11] "Mus musculus"             "Pan troglodytes"         
[13] "Populus trichocarpa"      "Rattus norvegicus"       
[15] "Saccharomyces cerevisiae" "Solanum lycopersicum"    
[17] "Sus scrofa"               "Zea mays"                
> 
> packageVersion("clusterProfiler")
[1] ‘4.10.1’
> 
> R.Version()$version.string
[1] "R version 4.3.0 (2023-04-21 ucrt)"
> 
>

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

2 participants