Hi Iain Gallagher ,
I tried using your code to extract the genes of my interest that are DE from the list of DElist given to goseq analysis. But i got the following error. Could you please tell me what was the mistake that is being done.
#Goseq analysis
genes=as.integer(p.adjust(de.cmn$table$PValue[de.cmn$table$logFC!=0],method="BH")<.05)
names(genes)=row.names(de.cmn$table[de.cmn$table$logFC!=0,])
table(genes)
pwf=nullp(genes,"hg19","knownGene")
GO.wall=goseq(pwf,"hg19","knownGene")
enriched=GO.wall$category[p.adjust(GO.wall$over_represented_pvalue, method="BH")<.05]
biocLite("org.Hs.eg.db")
library(org.Hs.eg.db)
biocLite("GO.db")
library(GO.db)
biocLite("annotate")
library(annotate)
sigCats <- GO.wall[which(GO.wall[,2] < 0.05),]
cats <- sigCats$category
terms <- stack(lapply(mget(cats, GO:0005615, ifnotfound=NA), extracellular space))
ERROR: Error: unexpected symbol in "terms <- stack(lapply(mget(cats, GO:0005615, ifnotfound=NA), extracellular space"
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Hi Ian and Helen - I tried this bit of code but got an error at the point of
am I missing something, or not put the code in correctly>
preceeding the offeding line, this is how I set it up
Is it a KEGG thing (does this only work with GO terms)?
Cheers,
Matt
output of sessionInfo():