Hi there,
Actually I have two questions,
First, how to extract detail information from a GSEA object derived from GSEA() {clusterPorfiler R package}. Like the cmd:
GSEA.RES <- GSEA(geneList = geneList,TERM2GENE=MSigDB,seed = 111,verbose=F)
I have to use gseaplot and point the interested pathway ID to show the figure, but I want the detail txt information, how to get that?
Second, why GSEA results changed whatever I set seed or not? If I re-run the cmd above, I will get totally different res data.frame with different number of enrichmenet pathways.
res <- as.data.frame(GSEA.RES)
Thanks advanced!
Did you figure out why the results change? I am having the same issue and seem to have no idea how to fix this. Thanks!
Yeah, it is true that the result would change no matter what seed you set. But try to set the nPerm = 10000 instead of 1000 by default, and that would quite stable just like you set a seed!
About your second question, the manual stats that
seed
is logical. So I don't understand why you are getting different results and why a numeric value is even accepted.gesaplot
should take the output ofGSEA
(which is agseaResult
object) directly.OMG it should be logical, how stupid I am.... Thanks for pointing out that and let me try.
Actually nothing happened when I set logical seed. The results still change.