I am trying to perform GSEA on DESeq2 results by ranking the t stat and successfully ran fgsea to extract a list of enriched pathways. However, when I run the collapsePathway
function, I receive this error message:
Error in preparePathwaysAndStats(pathways, stats, minSize, maxSize, gseaParam, :
Not all stats values are finite numbers
My code:
res.fgsea <- fgsea(pathways = gmt.file, stats=ranked_genes,
minSize=15, maxSize=500)
cp.res <- collapsePathways(fgseaRes=res.fgsea[order(pval)][padj < 0.05],
pathways = gmt.file,
stats=ranked_genes)
Please could you help me with this issue.
I encountered the same issue while I am sure the data type of stats are finite numbers. Is there a solution to this issue now? (PS: I was analyzing GSE48301 using hugene10sttranscriptcluster.db and GO file (c2.all.v2023.2.Hs.symbols.gmt.txt))