MS2spectrum-class: A custom S4 class for MS2 spectra, neutral loss patterns and...

Description Usage Arguments Value Methods (by generic) Slots

Description

A custom S4 class for MS2 spectra, neutral loss patterns and respective metainformation

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature 'MS2spectrum'
show(object)

## S4 method for signature 'MS2spectrum'
precursorMz(object)

## S4 method for signature 'MS2spectrum'
rtime(object)

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

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

## S4 method for signature 'MS2spectrum,ANY'
peaksCount(object)

Arguments

object

An object of class MS2spectrum

Value

Prints information from the object slots with exception of 'spectrum' and 'neutral_losses' where only a summary is given.

Methods (by generic)

Slots

id

a character string similar to the ID used by XCMSonline or the ID given in a predefined peak list

annotation

a character string containing a user-defined annotation, defaults to empty

precursor

(median) m/z of the spectrum's precursor ion

rt

(median) retention time of the spectrum's precursor ion

polarity

the ionisation polarity, "positive" or "negative"

spectrum

the actual MS2 spectrum as two-column matrix (column 1 is (median) m/z, column 2 is (median) intensity of the product ions)

neutral_losses

a neutral loss pattern generated by subtracting the product ion mass-to-charge ratios from the precursor m/z in a matrix format analogous to the spectrum slot


CluMSID documentation built on Nov. 8, 2020, 7:46 p.m.