libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
psmspecglob.h
Go to the documentation of this file.
1
/**
2
* \file pappsomspp/processing/cbor/psm/evalscan/psmspecglob.h
3
* \date 19/07/2025
4
* \author Olivier Langella
5
* \brief compute specglob alignment on scan's PSM
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
#pragma once
28
29
#include "../psmfilescanprocessandcopy.h"
30
#include <QJsonObject>
31
#include "
pappsomspp/export-import-config.h
"
32
33
namespace
pappso::cbor::psm
34
{
35
36
class
PsmSpecGlobScan;
37
/**
38
* @todo write docs
39
*/
40
class
PMSPP_LIB_DECL
PsmSpecGlob
:
public
PsmFileScanProcessAndCopy
41
{
42
friend
PsmSpecGlobScan
;
43
44
public
:
45
/**
46
* Default constructor
47
*/
48
PsmSpecGlob
(std::size_t buffer_scan_size,
49
CborStreamWriter
*cbor_output_p,
50
const
QJsonObject ¶meters);
51
52
/**
53
* Destructor
54
*/
55
virtual
~PsmSpecGlob
();
56
57
58
void
filterMassSpectrum(
pappso::MassSpectrum
&mass_spectrum)
const
;
59
60
protected
:
61
pappso::cbor::psm::CborScanMapBase
*newCborScanMap()
override
;
62
63
void
parameterMapReady(
pappso::UiMonitorInterface
&monitor)
override
;
64
65
virtual
void
processBufferScanDone(
pappso::UiMonitorInterface
&monitor)
override
;
66
67
protected
:
68
QJsonObject
m_specglobParameters
;
69
pappso::PrecisionPtr
m_fragmentTolerance
;
70
double
m_minimumMz
;
71
std::size_t
m_nMostIntense
;
72
bool
m_deisotope =
true
;
73
bool
m_isProteinMatcherResult =
false
;
74
std::size_t m_countScanProcessed = 0;
75
};
76
77
}
// namespace pappso::cbor::psm
pappso::MassSpectrum
Class to represent a mass spectrum.
Definition
massspectrum.h:70
pappso::PrecisionBase
Definition
precision.h:44
pappso::UiMonitorInterface
Definition
uimonitorinterface.h:50
pappso::cbor::CborStreamWriter
overrides QCborStreamWriter base class to provide convenient functions
Definition
cborstreamwriter.h:45
pappso::cbor::psm::CborScanMapBase
Definition
cborscanmapbase.h:48
pappso::cbor::psm::PsmFileScanProcessAndCopy
Basic PSM file reader to process scan (parallelized scan processing) and write a new resulting PSM fi...
Definition
psmfilescanprocessandcopy.h:49
pappso::cbor::psm::PsmSpecGlob
Definition
psmspecglob.h:41
pappso::cbor::psm::PsmSpecGlob::m_minimumMz
double m_minimumMz
Definition
psmspecglob.h:70
pappso::cbor::psm::PsmSpecGlob::m_fragmentTolerance
pappso::PrecisionPtr m_fragmentTolerance
Definition
psmspecglob.h:69
pappso::cbor::psm::PsmSpecGlob::m_specglobParameters
QJsonObject m_specglobParameters
Definition
psmspecglob.h:68
pappso::cbor::psm::PsmSpecGlob::m_nMostIntense
std::size_t m_nMostIntense
Definition
psmspecglob.h:71
pappso::cbor::psm::PsmSpecGlob::PsmSpecGlobScan
friend PsmSpecGlobScan
Definition
psmspecglob.h:42
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso::cbor::psm
Definition
cborscanmapbase.h:40
pappsomspp
core
processing
cbor
psm
evalscan
psmspecglob.h
Generated on Tue May 19 2026 12:52:14 for libpappsomspp by
1.9.8