Thank very much for the answer. But I have an Error.
As you said I removed NAs and saved the file as .rnk
er <- er[er$X != "", ]
er <- er[complete.cases(er), ]
write.table(er,file="GSEA.rnk",quote=F,sep="\t",row.names=F)
I downloaded gsea-3.0.jar
On Command line I gave java -jar gsea-3.0.jar
I see the GSEA software and browsed the GSEA.rnk file and selected the "GSEA Preranked" from the "Tools" pull-down menu and gave RUN.
And I see the GSEA reports status as - Error!
Here is the ERROR I saw on command line
MacBook-Pro:home ras$ java -jar gsea-3.0.jar
3129 [INFO ] Begun importing: RankedList from: /home/GSEA.rnk
3164 [INFO ] Loaded file: /home/GSEA.rnk
3166 [INFO ] Loading ... 1 files
GSEA.rnk
Files loaded successfully: 1 / 1
There were NO errors
7655 [INFO ] File download started. Retrieving h.all.v6.2.symbols.gmt from remote server...
8129 [INFO ] Download complete
8326 [INFO ] Begun importing: GeneSetMatrix from: h.all.v6.2.symbols.gmt
8353 [INFO ] Got gsets: 50 now preprocessing them ... min: 15 max: 500
8375 [INFO ] Done preproc for smaller than: 15
35248 [ERROR] Tool exec error at edu.mit.broad.xbench.tui.TaskManager.run(TaskManager.java:447)
xtools.api.param.BadParamException: After pruning, none of the gene sets passed size thresholds.
at xtools.api.param.ParamFactory.checkAndBarfIfZeroSets(ParamFactory.java:88)
at xtools.gsea.GseaPreranked.execute(GseaPreranked.java:95)
at edu.mit.broad.xbench.tui.TaskManager$ToolRunnable.run(TaskManager.java:436)
at java.lang.Thread.run(Thread.java:745)
8420 [INFO ] Renaming rpt dir on error to: /Users/ras/gsea_home/output/sep26/error_my_analysis.GseaPreranked.1537953606909
It says After pruning, none of the gene sets passed size thresholds
What could be the reason?
It again works with Gene Ontology genesets. It gave status Success