View source: R/construct_funcs.R
createPeaksFilter | R Documentation |
createPeaksFilter returns a peak.filter
object.
createPeaksFilter(peaksIndices)
peaksIndices |
a named array representing the selected peaks. Names correspond to the m/z values. |
Function to create a custom peak that can be subsequently applied using
the function applyPeaksFilter-msi.dataset-method
. Argument of
the function is the index vector of the selected peaks named with their m/z
values. The m/z values are used to check whether the indices correspond to the
common m/z values in the msi.dataset-class
object.
peak.filter
object.
Paolo Inglese p.inglese14@imperial.ac.uk
applyPeaksFilter-msi.dataset-method
library("SPUTNIK")
mz <- seq(100, 195, 5)
mzIdx <- sample(100, 20)
names(mzIdx) <- mz
peaksFilter <- createPeaksFilter(mzIdx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.