run_consensus {decoupleR} | R Documentation

## Consensus score between methods

### Description

Function to generate a consensus score between methods from the result of the `decouple` function.

### Usage

    run_consensus(df, include_time = FALSE, seed = NULL)

### Arguments

`df` | `decouple` data frame result
`include_time` | Should the time per statistic evaluated be informed?
`seed` | Deprecated parameter.

### Value

Updated tibble with the computed consensus score between methods

### Examples

    inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
    mat <- readRDS(file.path(inputs_dir, "input-expr_matrix.rds"))
    network <- readRDS(file.path(inputs_dir, "input-dorothea_genesets.rds"))

    results <- decouple(
       mat = mat,
       network = network,
       .source = "tf",
       .target = "target",
       statistics = c("wmean", "ulm"),
       args = list(
                wmean = list(.mor = "mor", .likelihood = "likelihood"),
                ulm = list(.mor = "mor", .likelihood = "likelihood")
            ),
       consensus_score = FALSE
       )
    run_consensus(results)

[Package decoupleR version 2.0.1 Index]