| OpenMS 2.5.0

Public Member Functions | Protected Attributes | List of all members
MzMLSqliteSwathHandler Class Reference

Sqlite handler for SWATH data sets. More...

`#include <OpenMS/FORMAT/HANDLERS/MzMLSqliteSwathHandler.h>`

## Public Member Functions

| MzMLSqliteSwathHandler (const String &filename)
| Constructor. More...
std::vector< OpenSwath::SwathMap > | readSwathWindows ()
| Read SWATH windows boundaries from file. More...
std::vector< int > | readMS1Spectra ()
| Read indices of MS1 spectra from file. More...
std::vector< int > | readSpectraForWindow (const OpenSwath::SwathMap &swath_map)
| Read indices of spectra belonging to specified SWATH window from file. More...

## Protected Attributes

String | filename_
Int | spec_id_
Int | chrom_id_

## Detailed Description

Sqlite handler for SWATH data sets.

This class represents a single sqMass file acquired in SWATH / DIA mode and provides some useful access to the indices of the individual SWATH windows.

## Constructor & Destructor Documentation

## ◆ MzMLSqliteSwathHandler()

MzMLSqliteSwathHandler | ( | const String & | filename | ) |

inline

Constructor.

Parameters

  filename | The sqMass filename

## Member Function Documentation

## ◆ readMS1Spectra()

std::vector<int> readMS1Spectra | ( |  | ) |

Read indices of MS1 spectra from file.

Returns
  A list of spectral indices for the MS1 spectra

## ◆ readSpectraForWindow()

std::vector<int> readSpectraForWindow | ( | const OpenSwath::SwathMap & | swath_map | ) |

Read indices of spectra belonging to specified SWATH window from file.

Parameters

  swath_map | Contains the upper/lower boundaries of the SWATH window

Returns
  A list of spectral indices for the provided SWATH window

## ◆ readSwathWindows()

std::vector<OpenSwath::SwathMap> readSwathWindows | ( |  | ) |

Read SWATH windows boundaries from file.

Returns
  A vector populated with SwathMap, with the following attributes initialized: center, lower and upper

## Member Data Documentation

## ◆ chrom_id_

Int chrom_id_

protected

## ◆ filename_

String filename_

protected

## ◆ spec_id_

Int spec_id_

protected