bzhanglab / WebGestaltR

R package for WebGestalt
https://bzhanglab.github.io/WebGestaltR/
34 stars 14 forks source link

Error in WebGestaltRBatch for GSEA #4

Closed danielnewhouse closed 4 years ago

danielnewhouse commented 4 years ago

Hello, I am looking to use WebGestaltRBatch to process several .rnk files for GSEA. I can successfully run each .rnk file individually, but get the below error message when trying to run the .rnk files in batch.

In looking at the R code in GitHub, it seems that formatCheck is setting dataType=list when it should be dataType=rnk. The "test" folder only contains .rnk files.

Is there a workaround to this issue? I am not sure why the Batch mode analysis is not recognizing the .rnk files.

Thank you, Daniel Newhouse

Error Message:

Process file: ~test/MM.bisque4.rnk
Loading the functional categories...
Loading the ID list...
Error in formatCheck(dataType = dataType, inputGeneFile = inputGeneFile,  : 
  ERROR: For the user ID list, please upload a 'txt' file with only one column.

Code used that produced the error:

WebGestaltRBatch(enrichMethod = "GSEA",
                 interestGeneFolder = "~/test", 
                 organism="hsapiens",
                 interestGeneType="genesymbol",
                 isParallel = FALSE, nThreads = 4, 
                 enrichDatabase = "geneontology_Biological_Process_noRedundant",
                 minNum=5, sigmethod="fdr", fdrMethod="BH")

Running this formatCheck code also reproduces the error:

formatCheck(dataType = "list", inputGeneFile = "MM.bisque4.rnk")

However, if I change dataType to rnk, the error goes away

formatCheck(dataType = "rnk", inputGeneFile = "MM.bisque4.rnk")
yxngl commented 4 years ago

Thanks. I will release a version on CRAN soon.