libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
spectrum.h
Go to the documentation of this file.
1/**
2 * \file pappsomspp/core/processing/cbor/mzcbor/spectrum.h
3 * \date 24/11/2025
4 * \author Olivier Langella
5 * \brief PSI spectrum object for mzML/mzCBOR
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 <QString>
36
37namespace pappso
38{
39namespace cbor
40{
41namespace mzcbor
42{
43/**
44 * @todo write docs
45 */
47{
48 void fromCbor(CborStreamReader &reader, bool want_binary_data);
49 static std::map<QString, pappso::cbor::mzcbor::CvParam>
51
52 void decodeTrace(pappso::Trace &trace);
53
54 uint getMsLevel() const;
55 double getRtInSeconds() const;
56 qint64 getTotalIonCount() const;
57
58 QString id;
59 std::size_t index;
60 std::size_t defaultArrayLength;
61
62 std::map<QString, pappso::cbor::mzcbor::CvParam> cvParamMap;
63 std::map<QString, pappso::cbor::mzcbor::CvParam> scanListCvParamMap;
64 std::map<QString, pappso::cbor::mzcbor::CvParam> scanCvParamMap;
65 std::map<QString, pappso::cbor::mzcbor::CvParam> precursorListCvParamMap;
66 QCborMap cborScanList;
67 std::vector<Precursor> precursorList;
68 std::vector<BinaryDataArray> binaryDataArrayList;
70};
71} // namespace mzcbor
72} // namespace cbor
73} // namespace pappso
PSI BinaryDataArray object for mzML/mzCBOR.
A simple container of DataPoint instances.
Definition trace.h:148
PSI cvParam object for mzML/mzCBOR.
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition aa.cpp:39
unsigned int uint
Definition types.h:67
PSI precursor object for mzML/mzCBOR.
std::map< QString, pappso::cbor::mzcbor::CvParam > cvParamMap
Definition spectrum.h:62
void decodeTrace(pappso::Trace &trace)
Definition spectrum.cpp:306
static std::map< QString, pappso::cbor::mzcbor::CvParam > readScanCvParams(CborStreamReader &reader)
Definition spectrum.cpp:219
std::vector< Precursor > precursorList
Definition spectrum.h:67
void fromCbor(CborStreamReader &reader, bool want_binary_data)
Definition spectrum.cpp:34
std::map< QString, pappso::cbor::mzcbor::CvParam > scanListCvParamMap
Definition spectrum.h:63
std::map< QString, pappso::cbor::mzcbor::CvParam > scanCvParamMap
Definition spectrum.h:64
std::vector< BinaryDataArray > binaryDataArrayList
Definition spectrum.h:68
std::map< QString, pappso::cbor::mzcbor::CvParam > precursorListCvParamMap
Definition spectrum.h:65