dot-transformSpectra: Transformation of Spectra

.transformSpectraR Documentation

Transformation of Spectra

Description

Transformation of Spectra

Usage

.transformSpectra(x, marker, tR = tR, U = U, L = L)

Arguments

x

Spectra-object that stores the migration times in seconds.

marker

data.frame containing minimum two columns, where one holds the determined migration time in minutes (here referred to as "rtime") of the EOF marker in the same run in which the migration time is going to be transformed and the other column the respective mobility ("mobility") of the EOF markers. Each row hold the values for one EOF marker. If OnDiskMSnExp is used in x, a third column "fileIdx" is required, that stores the file Index. One or two entries are required per file for the transformation and depending on the number of entries the transformation will be performed either on one or both markers.

tR

numeric a single value that defines the time (in minutes) of the electrical field ramp. The default is 0.

U

numeric a single value that defines the voltage (in kV) applied. Note that for reversed polarity CE mode a negative value is needed.

L

numeric a single value that defines the total length (in mm) of the capillary that was used for CE(-MS) analysis.

Value

Spectra-Object that stores the effective mobility in mm^2 / (kV * min).

Examples

spectra_data <- Spectra::Spectra(system.file("CE-MS/CEMS_10ppm.mzML",
    package = "msdata"
))
marker <- data.frame(
    markerID = c("marker1", "marker2"),
    rtime = c(20, 80),
    mobility = c(0, 2000)
)
MobilityTransformR:::.transformSpectra(
    x = spectra_data, marker = marker,
    tR = 3, U = 30, L = 90
)

LiesaSalzer/mobilityTransformationR documentation built on April 3, 2022, 5:58 p.m.