When running the following command:
ego.down <- enrichGO(gene = down$newid,
universe = bg.list$newid,
OrgDb = org.Hs.eg.db,
keyType = 'ENSEMBL',
ont = "BP", # biological process, change this to "MF" for molecular function, or "CC" for cellular components
pAdjustMethod = "BH",
pvalueCutoff = 0.01,
qvalueCutoff = 0.05,
readable = TRUE)
saveRDS(ego.down,file="./GOBP.down.shRBBP6.2.RDS")
dotplot(ego.down,showCategory=20,x="GeneRatio",font.size=13) + ggtitle("GO (BP) terms of down-regulated genes\nCW468_shRBBP6_2")+
scale_y_discrete(labels=function(x) str_wrap(x,width = 40)) +
theme(plot.title = element_text(size=16,face = "bold",hjust = .5),
legend.title = element_text(size=15),
legend.text = element_text(size=14))
Error reported:
Error in ans[ypos] <- rep(yes, length.out = len)[ypos] : replacement has length zero
After checking, it is found that the threshold is set too high. Just lower the threshold:
pvalueCutoff = 0.01,
qvalueCutoff = 0.05,
Replace the above with:
pvalueCutoff = 0.2,
qvalueCutoff = 0.2,
Similar Posts:
- ggplot2 texts : Add text annotations to a graph in R software
- [Solved] Java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
- How to Solve Datatable field value is empty Error
- Ffmpeg scaling — the solution of “width / height not divisible by 2”
- When vue3 introduces element plus, index.css cannot be found. Solve the problem
- How to Customizate the Style of Option Box by JQuery Component
- [How to Solve] Cannot set property ‘onclick’ of null
- [Solved] MySQL Add New Field Error: ERROR 1118 — Row size too large. The maximum row size for the used table type
- used in key specification without a key length
- Solve the problem of style in cannot read property ‘style’ of null