Plot a graph that shows the top over-represented terms of a given category for a given regulation. Terms are ordered by their ORA scores, computed from their odds ratios and adjusted p-values.
PlotORA(
object,
category,
regulation = c("UP", "DOWN", "FLAT"),
max_terms_show = 20,
GO_aspect = c("biological_process", "molecular_function", "cellular_component"),
OR_threshold = 1,
bh_p_value_threshold = 0.05
)# S4 method for scDiffCom
PlotORA(
object,
category,
regulation = c("UP", "DOWN", "FLAT"),
max_terms_show = 20,
GO_aspect = c("biological_process", "molecular_function", "cellular_component"),
OR_threshold = 1,
bh_p_value_threshold = 0.05
)
A ggplot object.
scDiffCom
object
ORA category to display. Must be the name of one of the
category present in ora_table
.
ORA regulation to display. Can be either UP
(default), DOWN
or FLAT
.
Maximum number of terms to display. Default is
20
.
Name of the GO aspect to display when
category == "GO_TERMS"
. Can be either biological_process
(
default), molecular_function
or cellular_component
.
Only the terms with an odds ratio above this threshold
will be displayed. Default is 1
, meaning no filtering is performed.
Only the terms with an adjusted p-value below
this threshold (and always below 0.05) will be displayed. Default is
0.05
.
The ORA score is computed as the product between log2(odds ratio)
and
-log10(adj. p-value)
.