OpenMS  2.4.0
Public Member Functions | Protected 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 (String filename)
 Constructor. More...
 
std::vector< OpenSwath::SwathMapreadSwathWindows ()
 Read SWATH windows boundaries from file. More...
 
std::vector< int > readMS1Spectra ()
 Read indices of MS1 spectra from file. More...
 
std::vector< int > readSpectraForWindow (OpenSwath::SwathMap swath_map)
 Read indices of spectra belonging to specified SWATH window from file. More...
 

Protected Member Functions

sqlite3 * openDB ()
 

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 ( String  filename)
inline

Constructor.

Parameters
filenameThe sqMass filename

Member Function Documentation

◆ openDB()

sqlite3* openDB ( )
protected

◆ 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 ( OpenSwath::SwathMap  swath_map)

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

Parameters
swath_mapContains 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