Hi, I am new to clusterProfiler and following the R documentation.
In the website instruction for enrichplot, here is some demo for enrichGO:
library(clusterProfiler)
data(geneList, package="DOSE")
de <- names(geneList)[abs(geneList) > 2]
ego <- enrichGO(de, OrgDb = "org.Hs.eg.db", ont="BP", readable=TRUE)
library(enrichplot)
goplot(ego)
And I just use this but get no results. Here is my code:
library(clusterProfiler)
library(org.Hs.eg.db)
library(DOSE)
data(geneList)
de <- names(geneList)[abs(geneList) > 2]
ego <- enrichGO(de, OrgDb = "org.Hs.eg.db", ont="BP", readable=TRUE)
head(summary(ego))
and I get:
> head(summary(ego))
[1] ID Description GeneRatio BgRatio pvalue p.adjust qvalue geneID Count
<0 rows> (or 0-length row.names)
Warning message:
In summary(ego) :
summary method to convert the object to data.frame is deprecated, please use as.data.frame instead.
So, what's wrong about my performance? Could anyone give me a hint.
Sure, here is the contents:
There code is from the website instruction and I think the default process uses entrez_id.
Hey Sugus,
I just tried your codes and it works well.
GO:0006270 GO:0006270 DNA replication initiation 2/6 42/17381 8.498316e-05 0.01453212 0.006440829 CDC45/MCM10 2 GO:0007062 GO:0007062 sister chromatid cohesion 2/6 133/17381 8.543746e-04 0.04335978 0.019217629 CDCA8/CDC20 2 GO:0000070 GO:0000070 mitotic sister chromatid segregation 2/6 142/17381 9.730351e-04 0.04335978 0.019217629 CDCA8/CDC20 2 GO:0006261 GO:0006261 DNA-dependent DNA replication 2/6 145/17381 1.014264e-03 0.04335978 0.019217629 CDC45/MCM10 2 GO:0000819 GO:0000819 sister chromatid segregation 2/6 230/17381 2.525189e-03 0.04962063 0.021992521 CDCA8/CDC20 2 GO:0140014 GO:0140014 mitotic nuclear division 2/6 253/17381 3.045861e-03 0.04962063 0.021992521 CDCA8/CDC20 2
In summary(ego) : summary method to convert the object to data.frame is deprecated, please use as.data.frame instead.
Yes, it works today. So weird.....
Dear all,
I'm trying to run groupGO, but its return "no count, noGeneRatio and no geneID but just a list as shown below:
"ID" "Description" "Count" "GeneRatio" "geneID" "GO:0005886" "GO:0005886" "plasma membrane" 0 "0/0" "" "GO:0005628" "GO:0005628" "prospore membrane" 0 "0/0" "" "GO:0005789" "GO:0005789" "endoplasmic reticulum membrane" 0 "0/0" "" "GO:0019867" "GO:0019867" "outer membrane" 0 "0/0" "" "GO:0031090" "GO:0031090" "organelle membrane" 0 "0/0" "" "GO:0034357" "GO:0034357" "photosynthetic membrane" 0 "0/0" "" "GO:0036362" "GO:0036362" "ascus membrane" 0 "0/0" ""
and return "No gene can be mapped" when I ran enrichGO after this.
Can anyone please assist? let say I have a gene list "Erf","Cdh22","Arhgap8","Rab11fip4","Mn1","Grb10","Ehbp1" for rat?
Appreciate that.
Best wishes, WF