clusterprofiler dotplot facet_grid plot based on ONTOLOGY
0
0
Entering edit mode
19 months ago

Hello everyone

I am using clusterProfiler for gene enrichment analysis against GO terms (MF, BP and CC). For dotplot, I used facet_grid based on the "ONTOLOGY" in the data frame. I am interested in generating same type of plot as shown here https://freeimage.host/i/go-dot-3dv5d.2nDmuV

k1_all <- enrichGO(unique(ids$ENTREZID), OrgDb = org.Hs.eg.db, ont = "ALL", pvalueCutoff = 0.05, pAdjustMethod = "BH", qvalueCutoff = 0.05, readable = TRUE)

dotplot(k1_all, showCategory = 20) + facet_grid(ONTOLOGY ~.)

But I am getting only BP category in output file.

enter image description here

Please let me know if I am doing something wrong. I would appreciate all the suggestions.

dotplot clusterprofiler facet_grid • 1.4k views
ADD COMMENT
2
Entering edit mode

This is probably because your 20 first categories are only BP (argument showCategory is set to 20). You may create a sub-dataset with the top categories for each ontology.

ADD REPLY
0
Entering edit mode

It worked after subset. Thanks alot.

ADD REPLY

Login before adding your answer.

Traffic: 2348 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6