readIndex {rawrr} | R Documentation

## Read scan index

### Description

Read scan index

### Usage

    readIndex(rawfile, tmpdir = tempdir())

### Arguments

`rawfile` | the name of the Thermo Fisher Scientific raw file.
`tmpdir` | defines the directory used to store temporary data generated by the .NET assembly `rawrr.exe`. The default uses `tempdir()`.

### Value

returns a `data.frame` with the column names scan, scanType, rtinseconds, precursorMass, MSOrder, charge, masterScan, and dependencyType of all spectra.

### Author(s)

Tobias Kockmann and Christian Panse <cp@fgz.ethz.ch>, 2020

### Examples

    rawfile <- sampleFilePath()

    Idx <- readIndex(rawfile)
    table(Idx$scanType)
    plot(Idx$rtinseconds, Idx$precursorMass, col=as.factor(Idx$charge), pch=16)

    table(Idx$MSOrder)

[Package rawrr version 1.2.0 Index]