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.
Hey!

Could you please show me with your contents of 'de', the input of your enrichGo command.

Because for my case, I will try to change my gene ID from 'ensembl_ID' to 'entrezid' to get more mapping results.

Since you got nothing mapping results, I guess there is something wrong in your input genes.

#Group_4 enriched Go terms

group4_top100_gene<- as.character((markergenes$Ensembl_ID)[9920:10019])

ID <- bitr(group4_top100_gene, fromType="ENSEMBL", toType="ENTREZID", OrgDb="org.Dr.eg.db")

head(ID)

ego <- enrichGO(gene = as.vector(ID$ENTREZID),
                OrgDb=org.Dr.eg.db,
                ont = "BP",
                minGSSize = 1,
                pvalueCutoff = 0.05,
                qvalueCutoff = 1,
                readable = TRUE)
head(summary(ego))

dim(ego)

result <- simplify(ego, cutoff=0.7, by="p.adjust", select_fun=min)

barplot(result, showCategory=10,title="GO terms enriched in group_4")

dotplot(result,showCategory=15,title="GO terms enriched in group_4")
dim(result)

Bests
Shizheng