1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/decoupleR-consensus.R
\name{run_consensus}
\alias{run_consensus}
\title{Consensus score between methods}
\usage{
run_consensus(df, include_time = FALSE, seed = NULL)
}
\arguments{
\item{df}{\code{decouple} data frame result}
\item{include_time}{Should the time per statistic evaluated be informed?}
\item{seed}{Deprecated parameter.}
}
\value{
Updated tibble with the computed consensus score between methods
}
\description{
Function to generate a consensus score between methods from the
result of the \code{decouple} function.
}
\examples{
inputs_dir <- system.file("testdata", "inputs", package = "decoupleR")
mat <- readRDS(file.path(inputs_dir, "mat.rds"))
net <- readRDS(file.path(inputs_dir, "net.rds"))
results <- decouple(
mat = mat,
network = net,
.source = "source",
.target = "target",
statistics = c("wmean", "ulm"),
args = list(
wmean = list(.mor = "mor", .likelihood = "likelihood"),
ulm = list(.mor = "mor", .likelihood = "likelihood")
),
consensus_score = FALSE,
minsize = 0
)
run_consensus(results)
}
|