Loading...
Searching...
No Matches
mzcborindexreader.h
Go to the documentation of this file.
/**
* \file pappsomspp/core/processing/cbor/mzcbor/mzcborindexreader.h
* \date 03/12/2025
* \author Olivier Langella
* \brief read mzcbor index file
*/
/*******************************************************************************
* Copyright (c) 2025 Olivier Langella <Olivier.Langella@universite-paris-saclay.fr>.
*
* This file is part of PAPPSOms-tools.
*
* PAPPSOms-tools is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms-tools is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms-tools. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once
#include "pappsomspp/core/processing/cbor/cborstreamreaderinterface.h"
namespace pappso
{
namespace cbor
{
namespace mzcbor
{
/**
* @todo write docs
*/
class PMSPP_LIB_DECL MzcborIndexReader : public CborStreamReaderInterface
{
public:
/**
* Default constructor
*/
MzcborIndexReader();
/**
* Destructor
*/
virtual ~MzcborIndexReader();
virtual void readCbor(QFile *cborp);
virtual void close();
bool isMzcborIndex() const;
const std::vector<QString> &getRunIdList() const;
const std::vector<std::vector<qint64>> &getRunAndSpectrumOffsetList() const;
const std::vector<std::vector<QString>> &getRunAndSpectrumIdList() const;
const std::vector<std::vector<qint64>> &getRunAndSpectrumTotalIonCountList() const;
const std::vector<std::vector<std::uint8_t>> &getRunAndSpectrumMsLevelList() const;
const std::vector<std::vector<double>> &getRunAndSpectrumRtList() const;
protected:
void readRoot();
private:
bool m_isMzcborIndex = false;
QString m_from;
std::vector<QString> m_runIdList;
std::vector<std::vector<qint64>> m_runAndSpectrumOffsetList;
std::vector<std::vector<QString>> m_runAndSpectrumIdList;
std::vector<std::vector<qint64>> m_runAndSpectrumTotalIonCountList;
std::vector<std::vector<std::uint8_t>> m_runAndSpectrumMsLevelList;
std::vector<std::vector<double>> m_runAndSpectrumRtList;
};
} // namespace mzcbor
} // namespace cbor
} // 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