A function to find enriched go terms from a query list of gene names relative to a reference list of gene names.
Usage
bb_goenrichment(
query,
reference,
group_pval = 0.01,
go_db = c("org.Hs.eg.db", "org.Dr.eg.db", "org.Mm.eg.db")
)Value
A list with three items:
- sampleGOdata
The
topGOdataobject built fromquery/reference.- resultFisher
The
topGOresultobject returned byrunTest().- res_table
A tibble of the top 100 GO terms (by
GenTable), withclassicFisherreplaced by the raw numeric p-values taken directly fromresultFisher@score(rather than GenTable's character-formatted, precision-truncated values) so downstream consumers (e.g.bb_gosummary) receive a numeric column.