clusterProfiler icon indicating copy to clipboard operation
clusterProfiler copied to clipboard

enrichWP is not working for a few organisms

Open prateekgv opened this issue 1 year ago • 3 comments

R version 4.3.1

packageVersion("clusterProfiler") ‘4.10.1’

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

prateekgv avatar Sep 30 '24 03:09 prateekgv

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)"
>

guidohooiveld avatar Oct 03 '24 09:10 guidohooiveld

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.

prateekgv avatar Oct 04 '24 16:10 prateekgv

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)"
> 
>

guidohooiveld avatar Oct 06 '24 14:10 guidohooiveld