Closed FionaMoon closed 2 years ago
When I use default parameter of eps
, I got result and warning.
fgseaRes <- fgseaMultilevel(pathways = my.db,
stats = prerank.genes,
minSize=5,
maxSize=2500
)
Warning messages: 1: In fgseaMultilevel(pathways = my.db, stats = prerank.genes, minSize = 5, : For some of the pathways the P-values were likely overestimated. For such pathways log2err is set to NA. 2: In fgseaMultilevel(pathways = my.db, stats = prerank.genes, minSize = 5, : For some pathways, in reality P-values are less than 1e-10. You can set the
eps
argument to zero for better estimation.
So, how to choose proper eps
?
@FionaMoon what kind of data you use as an input? It looks like to few genes: fgsea should be run on all the expressed genes, not just differentially expressed ones.
Additionally, what version you are using? There were a number of fixes that made the behavior more stable on such unexpected inputs, so you can try to install the version from github
Thank you for your answer. My data is scRNA-seq which contains fewer genes than bulk RNA-seq. Here's my data
library(scater)
library(Seurat)
# install SeuratDisk from GitHub using the remotes package remotes::install_github(repo =
# 'mojaveazure/seurat-disk', ref = 'develop')
library(SeuratDisk)
library(SeuratData)
library(patchwork)
# download and save PBMC3K from SeuratData
InstallData("pbmc3k")
pbmc <- LoadData(ds = "pbmc3k", type = "pbmc3k.final")
I've solved this problem by use another algorithm to calculate DEGs. Thank you.
Hi, I met a wired problem. I have a list which contains 10 DEG(different expression genes) results of 10 different samples . However, every time I run
fgseaMultilevel
, I will stuck on the 7th sample without any warning or result. I 've checked the 7th sample, but find nothing special.The parameters I use as following:
I wonder what's result in that?
Thank you in advance. Fiona