View source: R/statistic-zscore.R
run_zscore | R Documentation |
Calculates regulatory activities using a z-score as descibed in KSEA or RoKAI.
run_zscore(
mat,
network,
.source = source,
.target = target,
.mor = mor,
.likelihood = likelihood,
sparse = FALSE,
center = FALSE,
na.rm = FALSE,
minsize = 5L,
flavor = "RoKAI"
)
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. |
.mor |
Column with edge mode of regulation (i.e. mor). |
.likelihood |
Deprecated argument. Now it will always be set to 1. |
sparse |
Deprecated parameter. |
center |
Logical value indicating if |
na.rm |
Should missing values (including NaN) be omitted from the
calculations of |
minsize |
Integer indicating the minimum number of targets per source. |
flavor |
Whether the calculation should be based on RoKAI (default) or KSEA. |
The z-score calculates the mean of the molecular features of the known targets for each regulator and adjusts it for the number of identified targets for the regulator, the standard deviation of all molecular features (RoKAI), as well as the mean of all moleculare features (KSEA).
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_ora()
,
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_zscore(mat, net, minsize=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.