MsBackendCompDb: CompDb-based MS spectrum backend

Description Usage Arguments Methods implemented for MsBackendCompDb Note Author(s)

View source: R/MsBackendCompDb-functions.R

Description

The MsBackendCompDb allows to retrieve MS2 spectra from an CompDb() object/database. The object keeps only a limited amount of data in memory and retrieves the m/z and intensity values from the database on-demand.

It is not intended that users create or use instances of this class directly, the Spectra() call on CompDb() will return a Spectra object that uses this backend.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
MsBackendCompDb()

## S4 method for signature 'MsBackendCompDb'
backendInitialize(object, x, columns, filter, ...)

## S4 method for signature 'MsBackendCompDb'
show(object)

## S4 method for signature 'MsBackendCompDb'
as.list(x)

## S4 method for signature 'MsBackendCompDb'
intensity(object)

## S4 replacement method for signature 'MsBackendCompDb'
intensity(object) <- value

## S4 method for signature 'MsBackendCompDb'
mz(object)

## S4 replacement method for signature 'MsBackendCompDb'
mz(object) <- value

## S4 method for signature 'MsBackendCompDb'
asDataFrame(object, columns = spectraVariables(object))

## S4 replacement method for signature 'MsBackendCompDb'
asDataFrame(object) <- value

## S4 replacement method for signature 'MsBackendCompDb'
x$name <- value

Arguments

object

an MsBackendCompDb instance.

x

an MsBackendCompDb instance.

columns

for asDataFrame: character with names of columns/spectra variables that should be returned. Defaults to spectraVariables(object).

filter

for backendInitialize: optional filter expression to specify which elements to retrieve from the database.

...

ignored.

value

for $<-: the replacement values.

name

for $<-: the name of the spectra variable to replace.

Methods implemented for MsBackendCompDb

The methods listed here are implemented for the MsBackendCompDb. All other methods are inherited directly from the parent MsBackendDataFrame() class. See that help page for a complete listing of methods.

Note

For higher performance it is suggested to change the backend of the Spectra() object to an MsBackendDataFrame() backend with the setBackend() method of Spectra objects.

Author(s)

Johannes Rainer


michaelwitting/CompoundDb documentation built on April 29, 2020, 8:42 p.m.