precursorMz<-
method issue #336.backendRequiredSpectraVariables()
to allow definition of
mandatory spectra variables for a backend.MsBackendMetaboLights
.extractSpectra()
generic and implementation for MsBackend
. Fixes
issue #5.Spectra
.Spectra()
constructor method: better support for
initialization of backends that define their own specific parameters.estimatePrecursorIntensity()
to a method to avoid overrides/clashes
with the same-named implementation in xcms.selectSpectraVariables()
for MsBackendMzR
: ensure peaks variables
"mz"
and "intensity"
are not by default removed.filterPeaksRanges()
function to filter mass peaks by ranges on
numeric spectra or peak variables.Spectra
's processing queue: call functions from the
MetaboCoreUtils directly through their namespace (MsCoreUtils::
) to avoid
errors if performed in parallel on Windows machines or if called on a
re-loaded object.asDataFrame()
function to convert a (small) Spectra
object
into a long DataFrame
.dataStorageDataPath()
and dataStorageDataPath<-
methods to allow
updating/adapting the path of the data storage files of backends supporting
that issue #321.combineSpectra()
and combinePeaks()
issue
#320.estimatePrecursorMz()
function to estimate the precursor m/z for DDA
fragment spectra from previous MS1 spectra issue
#315.backendBpparam()
, backendParallelFactor()
and
supportsSetBackend()
to ProtGenerics. Required ProtGenerics version
1.35.4 or higher.filterRanges()
and filterValues()
functions to allow filtering of a
Spectra object based on ranges or similarities of any existing spectraData
variables.ProtGenerics
. Requires ProtGenerics
version 1.35.3.entropy
and nentropy
functions to allow to calculate the (normalized)
entropy for each spectrum.setBackend
that might cause chunk-wise processing to be not
run.Spectra
: add functions processingChunkSize
, backendParallelFactor
and
processingChunkFactor
to set or get definition of chunks for parallel
processing. All functions working on peaks data use this mechanism which
is implemented in the internal .peaksapply
function. The Spectra
object
gains a new slot "processingChunkSize"
that is used to define the
size of the processing chunks for the Spectra
. See also issue
#304.
This ensures processing also of very large data sets.bin
function (see
issue #302).
Addition of zero.rm
parameter to prevent creation of empty bins.filterFourierTransformArtefacts
function (see issue
#302). Thanks
Adriano Rutz for reporting.peaksData,MsBackendMemory
returns a data.frame
if additional peak
variables (in addition to "mz"
and "intensity"
) are requested. For
columns = c("mz", "intensity")
(the default) a list
of matrix
is
returned.peaksData,Spectra
returns either a matrix
or data.frame
and ensures
the peak data is correctly subset based on the lazy evaluation processing
queue.$,Spectra
to access peak variables ensures the lazy evaluation queue is
applied prior to extracting the values.applyProcessing
correctly subsets and processes all peak variables
depending on the processing queue.spectraData<-,Spectra
throws an error if processing queue is not empty and
values for peaks variables should be replaced.$<-,Spectra
throws an error if processing queue is not empty and a peaks
variable is going to be replaced.MsBackendDataFrame
.filterPrecursorPeaks
to allow filtering peaks within each spectrum
with m/z values relative to the precursor m/z of the spectrum.compareSpectra
.compareSpectra
to also pass parameters ppm
and tolerance
to
the peak similarity calculation functions FUN
: this allows to use custom
similarity function with integrated mapping of peaks.joinPeaksNone
to skip the peak matching in compareSpectra
if the
similarity scoring function performs its own peak matching.setBackend,Spectra
if both backends support
it.filterPrecursorMaxIntensity
function.filterPrecursorIsotopes
function.scalePeaks
function (see issue
#291).uniqueMsLevels
from ProtGenerics
.combinePeaks
for lists of peak matrices into combinePeaksData
.combinePeaks
generics.combinePeaks,Spectra
to combine peaks within each spectrum in a
Spectra
.deisotopeSpectra
and reduceSpectra
functions.MsBackendMemory
failed to return intensity or m/z values when
peaks data is empty.filterPrecursorScan()
(see #194 and PR #277).filterMzValues
that would only keep (or remove) the first
matching peak instead of all matching peaks (given ppm
and tolerance
).
Issue #274.keep
to filterMzRange
to support keeping or removing
matching peaks.backendBpparam
method that allows to evaluate whether a MsBackend
supports the provided (or the default) BiocParallel
-based parallel
processing setup..peaksapply
function to avoid splitting/merging
of data if not needed (e.g. if no parallel processing is performed).MsBackend
backends provided by other packages
(in the README and in the package vignette).MsBackend
vignette.supportsSetBackend
method for MsBackend
to specify whether a backend
supports setBackend,Spectra
.setBackend
checks using supportsSetBackend
whether a backend supports
setBackend
.setBackend
to only split and merge backends if necessary and
to not change dataOrigin
of the original backend.setBackend
with MsBackendMemory
for an empty Spectra
object
(issue #268).MsBackendMemory
(issue
#269).Spectra
with empty character
(issue
#267).MsBackend
vignette.MsBackend
compliance.MsBackend
from scratch (issue
#262).MsBackend
implementations.<=
with between
calls.containsMz()
when mz
isn't ordered (see #258).MsBackendMzR
of
length 0.chunkapply
function to split a Spectra
into chunks and
stepwise apply a function FUN
to each.combineSpectra
on Spectra
with read-only backends change backend
to an MsBackendMemory
instead of an MsBackendDataFrame
.compareSpectra
for GNPS-like similarity
scoring.MsBackendMemory
backend class providing a more efficient
in-memory data representation than MsBackendDataFrame
.spectrapply
from ProtGenerics
.setBackend
if provided Spectra
is empty.backendInitialize,Spectra,MsBackendDataFrame
returns a Spectra
object with the full provided spectra data.uniqueMsLevels
function to allow more efficient,
backend-specific, implementations for retrieving unique MS levels
from a data set.ppm
and tolerance
to PrecursorMzParam
(for
neutral loss calculation) and add option filterPeaks =
"removePrecursor"
.bin
method.columns
in peaksData,Spectra
and
peaksData,MsBackend
to c("mz", "intensity")
.peaksVariables
method and add parameter columns
(or ...
) to
peaksData
.columns
parameter to the peaksData
method of
MsBackendDataFrame
, MsBackendMzR
and MsBackendHdf5peaks
.neutralLoss
that would prevent calculation of neutral
loss spectra ifcoreSpectraVariables
function to export the core spectra
variables and their expected data types.neutralLoss
method and first algorithm to calculate neutral loss
spectra.combineSpectra
to the vignette.spectraVariableMapping
generic.filterPrecursorMz
method.filterPrecursorMzValue
method which allows to filter using
multiple precursor m/z values (issue
#230).MsBackend
implementations (issue
#186).MsBackendCached
backend.Spectra
is not empty. Otherwise call the backend's
implementation (issue MsBackendSql
#31).MsCoreUtils
issue
#87).countIdentifications()
function.filterFourierTransformArtefacts
function to remove fast
fourier artefact peaks seen on e.g. Orbitrap instruments (issue
#223).setBackend
(issue
#217).plotSpectra
and plotSpectraMirror
that would cause an error if
the number of peaks in a spectrum was 1 and labels were provided.joinSpectraData()
now check for duplicated keys in
x
(throws an error) and y
(thows a warning).plotMzDelta()
function to M/Z delta QC (ported from
MSnbase).MSnbase
(issue
#170) to Spectra
: on macOS
require reading also the spectrum header before reading the peaks data.combineSpectra
and combinePeaks
.filterMzValues
supports also removing peaks matching specified m/z values
(issue #209).MsBackend
backends to the vignette.bin
and compareSpectra
to ProtGenerics
.f
to filterPrecursorScan
to fix issue
#194.estimatePrecursorIntensity
function (issue
#202).filterPrecursorCharge()
method.plotSpectraMirror
as a method.concatenateSpectra
to allow concatenating Spectra
objects and
list of Spectra
objects.addProcessing
; issue
#182.MAPFUN
in compareSpectra
; issue
#171.joinPeaksGnps
to perform a peak matching between spectra similar to the
one performed in GNPS (issue
#171).ProcessingStep
to ProtGenerics
.show
method for Spectra
to list only the 3 most recent processing
steps (issue
173).processingLog
function to display the log messages of all processing
steps of a Spectra
object....
to pickPeaks
and smooth
(issue
168).filterIntensity
from ProtGenerics
.plotSpectra
.filterIntensity
supports passing of additional parameters to the used
filter function (issue
164).show,ProcessingStep
(issue
162).joinSpectraData()
function.[[,Msbackend
and [[<-,MsBackend
methods (issue
149).[[,Spectra
and [[<-,Spectra
methods.labelCol
in plotSpectra
(issue
#157).Spectra,ANY
constructor replacing Spectra,DataFrame
and Spectra,character
.spectrumId
(spectrumID
),
acquisitionNum
and scanIndex
.mz
and intensity
as core spectra variables.spectraData<-,Spectra
to avoid removing m/z and intensity values
(issue #146).MsBackend
.Spectra,character
constructor to ensure the backend is changed even
if source
inherits from backend
(issue
#143).combineSpectra
applies data processing steps in the processing queue prior to
combination (issue
#140).dropNaSpectraVariables
that would also drop m/z and
intensity values for most backends (issue
#138.intensity
in filterIntensity
method to be a function to enable
peak intensity-based filtering of spectra (issue
#126).filterMzRange
and filterMzValues
to filter spectra based on an m/z
range or a list of target m/z values, respectively.export,MsBackendMzR
to export spectra data to mzML or mzXML file(s).export,MsBackend
method to allow backends to take care of data
export.export,Spectra
to use the MsBackend
class to export the data.source
in Spectra,character
to MsBackendMzR
and set
parameter backend = source
. Thus by default, the import backend will also
be used to store the data.lapply,Spectra
with spectrapply,Spectra
.asDataFrame,MsBackend
with spectraData,MsBackend
.asDataFrame<-,MsBackend
with spectraData<-,MsBackend
.as.list,MsBackend
with peaksData,MsBackend
.replaceList<-,MsBackend
with peaksData<-,MsBackend
.as.list,Spectra
with peaksData,Spectra
and add methods to coerce a
Spectra
to a list
or SimpleList
.reset
method.compareSpectra
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.