Learn R Programming

rtmsEcho (version 0.2.4)

getFullScanData: Extract raw Wiff full scan data

Description

Extract raw Wiff full scan data

Usage

getFullScanData(scanfile, tic, sample, removeZeros = FALSE)

Value

A data frame containing all raw data for the given range (see Details)

Arguments

scanfile

A file path to a Sciex raw scan file (extension .wiff.scan) containing the raw data referenced by the .wiff file from which the other parameters were extracted

tic

A (possibly partial) total ion chromatogram of the format output by getTIC() or getAllTIC() referring to the range of timepoints to be extracted

sample

The particular object from the samples field of the rtmsWiffReader object, which in this case contains binary offsets into the .wiff.scan file

removeZeros

If FALSE (the default) all intensity measuremens for all time points and m/z values will be extractd and returned; if TRUE, only values greater than zero will be returned; this can result in a much smaller output and may be useful for calculating areas

Details

The data frame output by the function contains all the intensity data compressed into the .wiff.scan file for the given range of times; it has the following columns:

  • index: The particular row of ptic the measurement corresponds to

  • time: The time (in seconds) after the beginning of the run at which the measurement was taken

  • mz: The mass to charge value (in m/z) which the measurement corresponds to

  • intensity: The intensity (in counts per second) that was measured for the given time and m/z value