OpenMS
Loading...
Searching...
No Matches
MzMLSqliteSwathHandler.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Hannes Roest $
6// $Authors: Hannes Roest
7// --------------------------------------------------------------------------
8
9#pragma once
10
12
15
16// forward declarations
17struct sqlite3;
18
19namespace OpenMS
20{
21
22 namespace Internal
23 {
24
40 class OPENMS_DLLAPI MzMLSqliteSwathHandler
41 {
42
43public:
44
53 MzMLSqliteSwathHandler(const std::string& filename) :
54 filename_(filename)
55 {}
56
72 std::vector<OpenSwath::SwathMap> readSwathWindows();
73
85 std::vector<int> readMS1Spectra();
86
108 std::vector<int> readSpectraForWindow(const OpenSwath::SwathMap & swath_map);
109
110protected:
111
113 std::string filename_;
114
117
120
121 };
122
123
124 } // namespace Internal
125} // namespace OpenMS
126
Read-only accessor for SWATH/DIA spectrum indices stored in an sqMass file.
Definition MzMLSqliteSwathHandler.h:41
std::vector< int > readMS1Spectra()
Read the indices of every MS1 spectrum.
MzMLSqliteSwathHandler(const std::string &filename)
Construct from the path of an sqMass file.
Definition MzMLSqliteSwathHandler.h:53
std::string filename_
Path of the sqMass file passed in at construction time.
Definition MzMLSqliteSwathHandler.h:113
Int spec_id_
Next spectrum id used when appending spectra to the database; lets multiple append passes coexist on ...
Definition MzMLSqliteSwathHandler.h:116
Int chrom_id_
Next chromatogram id used when appending chromatograms to the database; lets multiple append passes c...
Definition MzMLSqliteSwathHandler.h:119
std::vector< OpenSwath::SwathMap > readSwathWindows()
Read the SWATH window boundaries from the file.
std::vector< int > readSpectraForWindow(const OpenSwath::SwathMap &swath_map)
Read the indices of every spectrum that belongs to a given SWATH window.
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Data structure to hold one SWATH map with information about upper / lower isolation window and whethe...
Definition SwathMap.h:21