Hi,
I’m using GOstats. I want to do GO enrichment with a customized background for unannotated genomes.
I followed the PDF manual ---“How To Use GOstats and Category to do Hypergeometric testing with unsupported model organisms”.
I got the following error in hyperGTest():
“getUniverseHelper(probes, datPkg, entrezIds) :
After filtering, there are no valid IDs that can be used as the Gene universe.
Check input values to confirm they are the same type as the central ID used by your annotation package. For chip packages, this will still mean the central GENE identifier used by the package”
>goFrameData=read.table("new_test.txt",header=T) > head(goFrameData) frame.go_id frame.Evidence frame.gene_id 1 GO:0009507 ISM 1 2 GO:0016102 IDA 1 3 GO:0009117 RCA 1 4 GO:0005783 IDA 2 5 GO:0071395 IEP 2 6 GO:0043231 ISS 2 #The gene ids used to map to GO are set as “1,2….”(numeric) >goFrame=GOFrame(goFrameData,organism="test") >goAllFrame=GOAllFrame(goFrame) >gsc <- GeneSetCollection(goAllFrame, setType = GOCollection()) >universe=unique(goFrameData$frame.gene_id) >genes=c(1:5) >params <- GSEAGOHyperGParams(name="My Custom GSEA based annot Params", geneSetCollection=gsc, geneIds = genes, universeGeneIds = universe, ontology = "MF", pvalueCutoff = 0.05, conditional = FALSE, testDirection = "over") Over <- hyperGTest(params)
My understanding is that universeGeneIds and geneIds should be subset of the same gene ids in goFrameData. But it seems they are different.
Can someone help?
Look forward to your response.
Zhiqiang