ID Description GeneRatio BgRatio pvalue p.adjust qvalue geneID Count
ta ta ta 3/5 3/8 0.1785714 0.3571429 0.3571429 a/d/f 3
tb tb tb 1/5 5/8 1.0000000 1.0000000 1.0000000 c 1
In the above, enricher properly discards the elements outside universe for computing BgRatio but does not for GeneRatio. I was expecting GeneRatio for ta to be |adf|/|acdf| = 3/4.
Please see the following example where I have two terms and I call enricher on a gene group.
It gives the following output as.data.frame(res):
In the above, enricher properly discards the elements outside universe for computing BgRatio but does not for GeneRatio. I was expecting GeneRatio for
ta
to be|adf|/|acdf| = 3/4
.