I am trying to run fgsea on a vector, v, containing Pearson's correlation. The vector names contain the corresponding gene IDs. When I run the following command, I get back an empty dataframe.
fgseaRes <- fgsea(pathways=examplePathways, stats=v, minSize=15, maxSize=500, nperm=100000)
I've tested the command on the example pathways and exampleRanks and get back a full result so I'm not sure why this return an empty dataframe.
class(v) and typeof(v) return the same as class(exampleRanks) and typeof(exampleRanks).
My vector has also been sorted in increasing order using: v <- sort(v, decreasing=FALSE)
Anyone can help with this?