This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How can I do the "fdr" mutiple test correction to the GO enrichment results from "TopGO" ?

It seems that the multiple test for the GO enrichment result is important. However, the TopGO didn't do that, so I decide to do that by myself. The delemma looks like this: fdr correction with p.adjust() in R need the complete GO enrichment result, whereas the GenTable(,topNodes =N) in TopGO only give out the top N result. So how can I do the "fdr" mutiple test correction to the GO enrichment results from "TopGO"?

Sincerely

r

1 answer

Instead of specifying topNodes to some value N, you can get all available GO Terms using:

allGO = usedGO(object = GOdata) 
# use it in GenTable as follows:
GenTable(GOdata, ... ,topNodes = length(allGO))

Then you can go about doing your p-value adjustment.

Thank you for all of your help. Finally, the topNodes = length(allGO) from komal.rathi helped me out.

Log in to answer this question.