tsMSdata-class {TargetSearch} | R Documentation

## Class for representing MS data

### Description

This is a class to represent MS data obtained from the sample.

### Details

The method `as.list` converts every slot (`RI`, `RT`, and `Intensity`) of a `tsMSdata` object into a matrix. The converted matrices are stored in a list. Each converted matrix has an attribute called 'index' that relates the metabolite index with the respective rows. The components of the resulting list are named as the slots. If the slot `RT` is not defined or empty, then the output list will have only two components. ('RT' and 'Intensity').

### Objects from the Class

Objects be created by calls of the form

### Slots

`RI`:

  `"list"`, a list containing an RI matrix, one matrix per metabolite

`RT`:

  `"list"`, a list containing an RT matrix, one matrix per metabolite

`Intensity`:

  `"list"`, a list containing a peak intensity matrix, one matrix per metabolite

### Methods

Intensity

  `signature(obj = "tsMSdata")`: gets the peak intensity list.

Intensity<-

  `signature(obj = "tsMSdata")`: gets the peak intensity list.

retIndex

  `signature(obj = "tsMSdata")`: gets RT list.

retIndex<-

  `signature(obj = "tsMSdata")`: sets the RI list.

retTime

  `signature(obj = "tsMSdata")`: gets the RT list.

retTime<-

  `signature(obj = "tsMSdata")`: sets the RT list.

show

  `signature(object = "tsMSdata")`: show function.

as.list

  `signature(object = "tsMSdata")`: coerce a list object. See details

### Author(s)

Alvaro Cuadros-Inostroza, Matthew Hannah, Henning Redestig

### See Also

`FindPeaks`, `peakFind`

### Examples

    showClass("tsMSdata")

[Package TargetSearch version 1.43.3 Index]