This is probably a simple fix but I am trying to run roast using curated gene sets from the MSigDB. I have been able to run roast successfully in the past using GO gene sets but am struggling to use these other type of gene sets.
I am getting an error message when I try to create the list of gene sets I'm exploring . The four bolded lines are where I'm pretty sure I'm making an mistake.
summarized.counts <- read.table("C:/Users/Alicia/Documents/summarized.counts.matrix", row.names=1, header=TRUE, sep="\t")
geneset <- read.csv("C:/Users/Alicia/Desktop/TEST.txt", row.names=1, sep="", stringsAsFactors=FALSE)
design_two<-model.matrix(~0+ factor(c(1,1,1,2,2,2,3,3,3)))
colnames(design_two)<-c("stage1", "stage2", "stage3")
con<-makeContrasts(stage3-stage1, levels=design_two)
library(org.Hs.eg.db)
importgene <- c("M5539", "M2222")
importgene <- unique(importgene)
Rkeys(org.Hs.egGO2ALLEGS)<-importgene
How exactly to a create a list of those gene sets of interest and what data base do I then use to associate that information with my sequence?
The
*.RData
files that I pointed you are in a format that's directly usable with the "limma GSEA suite" (roast, camera, romer, ...), so go download those.You're life will be enumerably easier if the
rownames()
of your expression matrix are entrez IDs, then *bam* ... results.Please be sure to read the extensive help that is provided with those functions, too.