I am working with a non model organism and I performed a gene set enrichment test using topGO and GOstats. The analysis in both cases worked properly, but I would need an enrichment for a higher level of GO (less specific). Is someone aware of a way to select the annotation level to use for performing the enrichment with these two tools?
Thank you for your help.
Thanks for your answer, This is a really good idea when working with GOstats. However, this apporach will work quite good if the GO IDs enriched are not that many. In case of 50-70 GO IDs, this would require quite a lot of manual work. I'm just wondering if there is a way/package to subset the enriched GO according with a desired specificity.
You can get the DAG structure from your GOHyperGResults object using the goDag() extractor function. This will return a graphNEL object that you can either plot to see the different levels, and select the GO IDs you like by hand. Alternatively you could probably extract the things you care about from the graphNEL object, but I am not that familiar with such things, so my usefulness in this matter has come to an end.