libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
mzcborindexreader.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/core/processing/cbor/mzcbor/mzcborindexreader.h
3 * \date 03/12/2025
4 * \author Olivier Langella
5 * \brief read mzcbor index file
6 */
7
8/*******************************************************************************
9 * Copyright (c) 2025 Olivier Langella <Olivier.Langella@universite-paris-saclay.fr>.
10 *
11 * This file is part of PAPPSOms-tools.
12 *
13 * PAPPSOms-tools is free software: you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation, either version 3 of the License, or
16 * (at your option) any later version.
17 *
18 * PAPPSOms-tools is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License
24 * along with PAPPSOms-tools. If not, see <http://www.gnu.org/licenses/>.
25 *
26 ******************************************************************************/
27
28
29#pragma once
31
32
33namespace pappso
34{
35namespace cbor
36{
37namespace mzcbor
38{
39/**
40 * @todo write docs
41 */
43{
44 public:
45 /**
46 * Default constructor
47 */
49
50 /**
51 * Destructor
52 */
53 virtual ~MzcborIndexReader();
54
55
56 virtual void readCbor(QFile *cborp);
57
58 virtual void close();
59
60 bool isMzcborIndex() const;
61
62 const std::vector<QString> &getRunIdList() const;
63 const std::vector<std::vector<qint64>> &getRunAndSpectrumOffsetList() const;
64 const std::vector<std::vector<QString>> &getRunAndSpectrumIdList() const;
65 const std::vector<std::vector<qint64>> &getRunAndSpectrumTotalIonCountList() const;
66 const std::vector<std::vector<std::uint8_t>> &getRunAndSpectrumMsLevelList() const;
67 const std::vector<std::vector<double>> &getRunAndSpectrumRtList() const;
68
69 protected:
70 void readRoot();
71
72 private:
73 bool m_isMzcborIndex = false;
74 QString m_from;
75 std::vector<QString> m_runIdList;
76 std::vector<std::vector<qint64>> m_runAndSpectrumOffsetList;
77 std::vector<std::vector<QString>> m_runAndSpectrumIdList;
78 std::vector<std::vector<qint64>> m_runAndSpectrumTotalIonCountList;
79 std::vector<std::vector<std::uint8_t>> m_runAndSpectrumMsLevelList;
80 std::vector<std::vector<double>> m_runAndSpectrumRtList;
81};
82} // namespace mzcbor
83} // namespace cbor
84} // namespace pappso
const std::vector< std::vector< qint64 > > & getRunAndSpectrumTotalIonCountList() const
virtual void close()
convenient function to clean pointer before leaving
std::vector< std::vector< qint64 > > m_runAndSpectrumOffsetList
std::vector< std::vector< std::uint8_t > > m_runAndSpectrumMsLevelList
const std::vector< std::vector< std::uint8_t > > & getRunAndSpectrumMsLevelList() const
const std::vector< std::vector< qint64 > > & getRunAndSpectrumOffsetList() const
std::vector< std::vector< double > > m_runAndSpectrumRtList
const std::vector< std::vector< QString > > & getRunAndSpectrumIdList() const
std::vector< std::vector< qint64 > > m_runAndSpectrumTotalIonCountList
const std::vector< QString > & getRunIdList() const
const std::vector< std::vector< double > > & getRunAndSpectrumRtList() const
std::vector< std::vector< QString > > m_runAndSpectrumIdList
#define PMSPP_LIB_DECL
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39