Description Usage Arguments Details Value
Default method to align and average MALDI spectra.
1 2 3 4 5 6 7 | maldi_average_spectra(
object,
method_baseline = "SNIP",
method_average = "mean",
...,
final_trim_range = c(0, Inf)
)
|
object |
A (list of) |
method_baseline |
Method for background subtraction. See MALDIquant::removeBaseline. |
method_average |
Method to average replicate measurements. See MALDIquant::averageMassSpectra. |
... |
Arguments passed to |
final_trim_range |
A numeric vector from which the maximum and the minimum value are taken to trim the spectrum to a relevant range. |
The baseline of the spectra is removed using method_baseline
first,
then the spectra aligned using the default parameters of
alignSpectra
unless other arguments
are passed via ...
. The aligned spectra are averaged and trimmed to
final_trim_range
.
This method can be substituted/overwritten to adapt specific needs in a pipeline.
A single MassSpectrum
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.