% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mnsea.R
\name{collapse_multilayer_scores}
\alias{collapse_multilayer_scores}
\title{Collapse multi-layer diffusion scores}
\usage{
collapse_multilayer_scores(
  x,
  collapse = c("weighted_mean", "sum", "mean", "max_abs"),
  layer_weights = NULL,
  output_space = c("union", "gene"),
  mapping = NULL,
  target_layer = NULL
)
}
\arguments{
\item{x}{result from \code{propagate_multilayer()}.}

\item{collapse}{one of "weighted_mean", "sum", "mean", or "max_abs".}

\item{layer_weights}{optional named numeric vector used when
\code{collapse = "weighted_mean"}.}

\item{output_space}{one of "union" or "gene".}

\item{mapping}{optional mapping data.frame with \code{source_id}, \code{target_id}, and
optional \code{layer} columns.}

\item{target_layer}{optional layer name to extract before collapsing.}
}
\value{
A \code{multilayer_collapsed} object with a \code{score} vector.
}
\description{
Collapse multi-layer diffusion scores
}
