View source: R/statistic-ora.R
run_ora | R Documentation |
Calculates regulatory activities using ORA.
run_ora(
mat,
network,
.source = source,
.target = target,
n_up = ceiling(0.05 * nrow(mat)),
n_bottom = 0,
n_background = 20000,
with_ties = TRUE,
seed = 42,
minsize = 5,
...
)
mat |
Matrix to evaluate (e.g. expression matrix).
Target nodes in rows and conditions in columns.
|
network |
Tibble or dataframe with edges and it's associated metadata. |
.source |
Column with source nodes. |
.target |
Column with target nodes. |
n_up |
Integer indicating the number of top targets to slice from mat. |
n_bottom |
Integer indicating the number of bottom targets to slice from mat. |
n_background |
Integer indicating the background size of the sliced
targets. If not specified the number of background targets is determined by
the total number of unique targets in the union of |
with_ties |
Should ties be kept together? The default, |
seed |
A single value, interpreted as an integer, or NULL for random number generation. |
minsize |
Integer indicating the minimum number of targets per source. |
... |
Arguments passed on to
|
ORA measures the overlap between the target feature set and a list of most
altered molecular features in mat. The most altered molecular features can
be selected from the top and or bottom of the molecular readout distribution,
by default it is the top 5% positive values. With these, a contingency table
is build and a one-tailed Fisher’s exact test is computed to determine if a
regulator’s set of features are over-represented in the selected features
from the data. The resulting score, ora
, is the minus log10 of the
obtained p-value.
A long format tibble of the enrichment scores for each source across the samples. Resulting tibble contains the following columns:
statistic
: Indicates which method is associated with which score.
source
: Source nodes of network
.
condition
: Condition representing each column of mat
.
score
: Regulatory activity (enrichment score).
Other decoupleR statistics:
decouple()
,
run_aucell()
,
run_fgsea()
,
run_gsva()
,
run_mdt()
,
run_mlm()
,
run_udt()
,
run_ulm()
,
run_viper()
,
run_wmean()
,
run_wsum()
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
mat <- readRDS(file.path(inputs_dir, "mat.rds"))
net <- readRDS(file.path(inputs_dir, "net.rds"))
run_ora(mat, net, minsize=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.