Replies: 1 comment
-
I have just realized that the author did not implement barplot for GSEA. Thanks, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear Professor,
Hope you are doing great. I am using ClusterProfiler for GSEA and been trying with MSigDB. Follow are my codes.
MSigDb analysis
library(msigdbr)
msigdbr_show_species()
Step 1
C3_t2g <- msigdbr(species = "Mus musculus", category = "C7") %>%
dplyr::select(gs_name, entrez_gene)
head(C3_t2g)
Step 2
em2 <- GSEA(geneList, TERM2GENE = C3_t2g)
head(em2)
Visualization
dotplot(em2)
barplot(em2, showCategory=20)
Once I visualized with dot plot it worked okay, but barplot did not work as I kept getting the following error.
Error in barplot.default(em2, showCategory = 20) :
'height' must be a vector or a matrix
it is not a normal dataframe and I have been trying to fix it, but not solve it yet. Appreciate if you could give me a guide to proceed with barplot with my case. I am looking forward to hearing from you soon.
Kind Regards,
Synat
Beta Was this translation helpful? Give feedback.
All reactions