libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
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
30
#include "
pappsomspp/core/processing/cbor/cborstreamreaderinterface.h
"
31
32
33
namespace
pappso
34
{
35
namespace
cbor
36
{
37
namespace
mzcbor
38
{
39
/**
40
* @todo write docs
41
*/
42
class
PMSPP_LIB_DECL
MzcborIndexReader
:
public
CborStreamReaderInterface
43
{
44
public
:
45
/**
46
* Default constructor
47
*/
48
MzcborIndexReader
();
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
cborstreamreaderinterface.h
pappso::cbor::CborStreamReaderInterface::CborStreamReaderInterface
CborStreamReaderInterface()
Definition
cborstreamreaderinterface.cpp:30
pappso::cbor::mzcbor::MzcborIndexReader::getRunAndSpectrumTotalIonCountList
const std::vector< std::vector< qint64 > > & getRunAndSpectrumTotalIonCountList() const
Definition
mzcborindexreader.cpp:174
pappso::cbor::mzcbor::MzcborIndexReader::close
virtual void close()
convenient function to clean pointer before leaving
Definition
mzcborindexreader.cpp:41
pappso::cbor::mzcbor::MzcborIndexReader::m_runAndSpectrumOffsetList
std::vector< std::vector< qint64 > > m_runAndSpectrumOffsetList
Definition
mzcborindexreader.h:76
pappso::cbor::mzcbor::MzcborIndexReader::m_runAndSpectrumMsLevelList
std::vector< std::vector< std::uint8_t > > m_runAndSpectrumMsLevelList
Definition
mzcborindexreader.h:79
pappso::cbor::mzcbor::MzcborIndexReader::getRunAndSpectrumMsLevelList
const std::vector< std::vector< std::uint8_t > > & getRunAndSpectrumMsLevelList() const
Definition
mzcborindexreader.cpp:186
pappso::cbor::mzcbor::MzcborIndexReader::getRunAndSpectrumOffsetList
const std::vector< std::vector< qint64 > > & getRunAndSpectrumOffsetList() const
Definition
mzcborindexreader.cpp:162
pappso::cbor::mzcbor::MzcborIndexReader::m_isMzcborIndex
bool m_isMzcborIndex
Definition
mzcborindexreader.h:73
pappso::cbor::mzcbor::MzcborIndexReader::m_runAndSpectrumRtList
std::vector< std::vector< double > > m_runAndSpectrumRtList
Definition
mzcborindexreader.h:80
pappso::cbor::mzcbor::MzcborIndexReader::m_from
QString m_from
Definition
mzcborindexreader.h:74
pappso::cbor::mzcbor::MzcborIndexReader::getRunAndSpectrumIdList
const std::vector< std::vector< QString > > & getRunAndSpectrumIdList() const
Definition
mzcborindexreader.cpp:168
pappso::cbor::mzcbor::MzcborIndexReader::isMzcborIndex
bool isMzcborIndex() const
Definition
mzcborindexreader.cpp:148
pappso::cbor::mzcbor::MzcborIndexReader::m_runAndSpectrumTotalIonCountList
std::vector< std::vector< qint64 > > m_runAndSpectrumTotalIonCountList
Definition
mzcborindexreader.h:78
pappso::cbor::mzcbor::MzcborIndexReader::getRunIdList
const std::vector< QString > & getRunIdList() const
Definition
mzcborindexreader.cpp:155
pappso::cbor::mzcbor::MzcborIndexReader::m_runIdList
std::vector< QString > m_runIdList
Definition
mzcborindexreader.h:75
pappso::cbor::mzcbor::MzcborIndexReader::readRoot
void readRoot()
Definition
mzcborindexreader.cpp:61
pappso::cbor::mzcbor::MzcborIndexReader::getRunAndSpectrumRtList
const std::vector< std::vector< double > > & getRunAndSpectrumRtList() const
Definition
mzcborindexreader.cpp:180
pappso::cbor::mzcbor::MzcborIndexReader::readCbor
virtual void readCbor(QFile *cborp)
Definition
mzcborindexreader.cpp:46
pappso::cbor::mzcbor::MzcborIndexReader::MzcborIndexReader
MzcborIndexReader()
Definition
mzcborindexreader.cpp:32
pappso::cbor::mzcbor::MzcborIndexReader::m_runAndSpectrumIdList
std::vector< std::vector< QString > > m_runAndSpectrumIdList
Definition
mzcborindexreader.h:77
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso::cbor::mzcbor
Definition
binarydataarray.h:41
pappso::cbor
Definition
cborstreamreader.cpp:35
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
core
processing
cbor
mzcbor
mzcborindexreader.h
Generated on
for libpappsomspp by
1.17.0