Hello, I am trying to use the "WebGestaltR" package in CRAN (https://cran.r-project.org/web/packages/WebGestaltR/index.html) and I prepared a txt file of the DEG list with only one column.
However, there was an error message as "For the user ID list, please upload a 'txt' file with only one column". I would appreciate it if you could inform me of how to cope with this problem.
install.packages("WebGestaltR")
install.packages("systemfonts")
library(systemfonts)
library(WebGestaltR)
geneFile <- system.file("2flyDEG2.txt", package="WebGestaltR")
outputDirectory <- getwd()
enrichResult <- WebGestaltR(enrichMethod="ORA",organism="dmelanogaster", enrichDatabase="pathway_KEGG",interestGeneFile=geneFile,interestGeneType="genesymbol", isOutput=TRUE,outputDirectory=outputDirectory, projectName=NULL)
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.
Thank you so much for your advice. As you told me,
system.file()
was not appropriate here.I put the txt file in the same working directory with that of the R markdown for this analysis and read the table. However, same error message showed up. The place of the file may still be incorrect...
I appreciate all your kind advice but I decided to use another package for pathway analysis which I was able to use.