libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
filterms1windowselection.h
Go to the documentation of this file.
1
/**
2
* \file core/filter/filterms1windowselection.h
3
* \date 28/09/2026
4
* \author Olivier Langella
5
* \brief filter extract ms1 window selection
6
*/
7
8
9
/*
10
* PeptidOMS, Spectra to protein alignment tool
11
* Copyright (C) 2026 Olivier Langella
12
* <olivier.langella@cnrs.fr>
13
*
14
* This program is free software: you can redistribute it and/or modify
15
* it under the terms of the GNU General Public License as published by
16
* the Free Software Foundation, either version 3 of the License, or
17
* (at your option) any later version.
18
*
19
* This program is distributed in the hope that it will be useful,
20
* but WITHOUT ANY WARRANTY; without even the implied warranty of
21
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
* GNU General Public License for more details.
23
*
24
* You should have received a copy of the GNU General Public License
25
* along with this program. If not, see <http://www.gnu.org/licenses/>.
26
*
27
*/
28
29
#pragma once
30
31
#include "
qcborspectrum.h
"
32
33
#include "
qcborspectrumprecursor.h
"
34
#include "
pappsomspp/core/processing/filters/filterinterface.h
"
35
36
#include "
pappsomspp/core/trace/trace.h
"
37
38
/**
39
* @brief try to detect complementary ions and assign maximum intensity of both
40
* elements
41
*
42
* experimental filter
43
*/
44
class
FilterMs1WindowSelection
:
public
pappso::FilterInterface
45
{
46
public
:
47
/**
48
* @param target_mz the targeted mass of the peak pair
49
* @param precision_ptr matching precision
50
*/
51
FilterMs1WindowSelection
(
const
pappso::cbor::mzcbor::QcborSpectrumPrecursor
&precursor);
52
53
54
/**
55
* Copy constructor
56
*
57
* @param other TODO
58
*/
59
FilterMs1WindowSelection
(
const
FilterMs1WindowSelection
&other);
60
61
/**
62
* Destructor
63
*/
64
virtual
~FilterMs1WindowSelection
();
65
66
pappso::Trace
&
filter
(
pappso::Trace
&data_points)
const override
;
67
68
private
:
69
double
m_targetMz
= 0;
70
double
m_lowerMz
= 0;
71
double
m_upperMz
= 0;
72
};
FilterMs1WindowSelection::~FilterMs1WindowSelection
virtual ~FilterMs1WindowSelection()
Definition
filterms1windowselection.cpp:61
FilterMs1WindowSelection::m_targetMz
double m_targetMz
Definition
filterms1windowselection.h:69
FilterMs1WindowSelection::filter
pappso::Trace & filter(pappso::Trace &data_points) const override
Definition
filterms1windowselection.cpp:67
FilterMs1WindowSelection::m_upperMz
double m_upperMz
Definition
filterms1windowselection.h:71
FilterMs1WindowSelection::FilterMs1WindowSelection
FilterMs1WindowSelection(const pappso::cbor::mzcbor::QcborSpectrumPrecursor &precursor)
Definition
filterms1windowselection.cpp:36
FilterMs1WindowSelection::m_lowerMz
double m_lowerMz
Definition
filterms1windowselection.h:70
pappso::FilterInterface
generic interface to apply a filter on a trace
Definition
filterinterface.h:40
pappso::Trace
A simple container of DataPoint instances.
Definition
trace.h:152
pappso::cbor::mzcbor::QcborSpectrumPrecursor
Definition
qcborspectrumprecursor.h:47
filterinterface.h
qcborspectrum.h
Low level CBOR map to store an mzCBOR Spectrum object.
qcborspectrumprecursor.h
Low level CBOR map to store an mzCBOR Spectrum object.
trace.h
pappsomspp
core
processing
cbor
mzcbor
copyreplace
filterms1windowselection.h
Generated on
for libpappsomspp by
1.17.0