maldi_average_by_well: Align and average MALDI spectra by well

Description Usage Arguments Details

View source: R/maldi_fun.R

Description

Applies maldi_average_spectra to each group of wells using maldi_tapply.

Usage

1
2
3
4
5
6
7
8
maldi_average_by_well(
  object,
  method_baseline = "SNIP",
  method_average = "mean",
  ...,
  final_trim_range = c(0, Inf),
  pivot = "[0-9]_[A-Z]+[0-9]+"
)

Arguments

object

A (list of) MassSpectrum.

method_baseline

Method for background subtraction. See MALDIquant::removeBaseline.

method_average

Method to average replicate measurements. See MALDIquant::averageMassSpectra.

...

Arguments passed to alignSpectra.

final_trim_range

A numeric vector from which the maximum and the minimum value are taken to trim the spectrum to a relevant range.

pivot

A regular expression describing the name of a single folder in each tree up to which "groups" and from which "replicates" are established. See Details.

Details

The wells are identified using pivot from the associated paths in the object. See import_layout_from_paths.maldi.


benjbuch/summerrmass documentation built on Dec. 19, 2021, 8:43 a.m.