Closed helaersr closed 1 year ago
gseaPermutation
is a function written in C++ and used via Rpp. It may be possible that during installation there was some problem with compilation leading to this issue. However if this only happens with KEGG and not others, then this is unlikely to be the problem.
What happens if you run the KEGG GSEA example?
####### GSEA example #########
rankFile <- system.file("extdata", "GeneRankList.rnk", package="WebGestaltR")
outputDirectory <- getwd()
enrichResult <- WebGestaltR(enrichMethod="GSEA", organism="hsapiens",
enrichDatabase="pathway_KEGG", interestGeneFile=rankFile,
interestGeneType="genesymbol", sigMethod="top", topThr=10, minNum=5,
outputDirectory=outputDirectory)
If you still have an issue you could try reinstalling WebGestaltR
and see if that fixes it.
remove.packages("WebGestaltR")
install.packages("WebGestaltR")
Same problem with the example
> library("WebGestaltR")
******************************************
* *
* Welcome to WebGestaltR ! *
* *
******************************************
> rankFile <- system.file("extdata", "GeneRankList.rnk", package="WebGestaltR")
> outputDirectory <- getwd()
> enrichResult <- WebGestaltR(enrichMethod="GSEA", organism="hsapiens",
enrichDatabase="pathway_KEGG", interestGeneFile=rankFile,
interestGeneType="genesymbol", sigMethod="top", topThr=10, minNum=5,
outputDirectory=outputDirectory)
Loading the functional categories...
Loading the ID list...
Summarizing the uploaded ID list by GO Slim data...
Performing the enrichment analysis...
Error in { : task 1 failed - "could not find function "gseaPermutation""
In addition: Warning messages:
1: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00232
2: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00290
3: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00400
4: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00440
5: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00471
6: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00524
7: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00780
8: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa00785
9: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score does not contain minimum number of items in set for hsa05033
10: In swGsea(inputDf, thresh_type = "val", perms = perNum, min_set_size = minNum, :
score has more than 500 items in set hsa01100
I reinstall the package, there is no error during the installation process, and I still have the same problem. But now, I have the problem with any database (e.g. GO). As it worked before in the same environment, I'm a bit confused on what could be missing/inaccessible (at first KEGG was working too). Do you see any missing package in my sessioninfo ?
OK I found the problem.
It seems that Rcpp(?) needs a writable library path. My libPaths were limited to read-only paths. After adding an (empty) writable path to my libPaths, everything worked again.
Thanks for help !
When using WebGestaltR with KEGG pathway database, I generally have this error 👍🏻
The traceback
My rsession info
Do you have any idea of what could cause this issue ?