Skip to contents

Checks the correlation across the regulators in a network.

Usage

check_corr(
  network,
  .source = "source",
  .target = "target",
  .mor = "mor",
  .likelihood = NULL
)

Arguments

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.

Value

Correlation pairs tibble.

Examples

inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
net <- readRDS(file.path(inputs_dir, "net.rds"))
check_corr(net, .source='source')
#> # A tibble: 3 × 3
#>   source source.2 correlation
#>   <chr>  <chr>          <dbl>
#> 1 T1     T3             0.364
#> 2 T2     T3            -0.487
#> 3 T1     T2            -0.688