Hi
I am trying to use msigdbr in my ran-seq script in order to do GSEA. My model is yeast so I am trying this code:
yeast_gsea <- msigdbr(species = "Saccharomyces cerevisiae") #gets all collections/signatures with yeast
yeast_gsea %>% dplyr::distinct(gs_cat, gs_subcat) %>% dplyr::arrange(gs_cat, gs_subcat)
#choose a specific msigdb collection/subcollection yeast_gsea_c5 <- msigdbr(species = "Saccharomyces cerevisiae", category = "C5") %>% dplyr::select(gs_name, gene_symbol)
Everything works without error but the enrichments I get at the end has terms for human (like leukemia and Sprengel), so I am sure something is going wrong but I am clueless. I am a beginner and I would appreciate any help.
Please use the formatting bar (especially the
code
option) to present your post better. You can use backticks for inline code (`text` becomestext
), or use one of (a) the option highlighted in the image below/ (b) fenced code blocks for multi-line code. Fenced code blocks are useful in syntax highlighting. If your code has long lines with a single command, break those lines into multiple lines with proper escape sequences so they're easier to read and still run when copy-pasted. I've done it for you this time.Please do not use the quote (double quotes) option - that is used to quote a source verbatim.