MeanOfSpectraAsSig: Return the mean of multiple spectra as a signature

Description Usage Arguments Value

View source: R/plot_error_bar_fns.R

Description

Return the mean of multiple spectra as a signature

Usage

1
2
3
4
5
MeanOfSpectraAsSig(
  spectra,
  mean.weighted = TRUE,
  title = "sig.from.spectra.mean"
)

Arguments

spectra

An ICAMS spectrum catalog. Convert each spectrum to a signature and then compute the mean.

mean.weighted

Logical. Whether to weigh the samples according to the number of mutations in them to calculate the weighted mean as the consensus signature. Default is TRUE. If FALSE, then arithmetic mean will be calculated.

title

The name of the output signature.

Value

The mean of the spectra as a signature and the constituent spectra as signatures.


steverozen/ICAMSxtra documentation built on Feb. 9, 2022, 7:01 a.m.