libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
filtercomplement.h
Go to the documentation of this file.
1
/**
2
* \file core/filter/filtercomplement.h
3
* \date 24/09/2026
4
* \author Olivier Langella
5
* \brief filter for complement ions
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 "
pappsomspp/core/processing/filters/filterinterface.h
"
32
33
#include "
pappsomspp/core/trace/trace.h
"
34
35
36
/**
37
* @brief try to detect complementary ions and assign maximum intensity of both
38
* elements
39
*
40
* experimental filter
41
*/
42
class
FilterComplement
:
public
pappso::FilterInterface
43
{
44
public
:
45
/**
46
* @param target_mz the targeted mass of the peak pair
47
* @param precision_ptr matching precision
48
*/
49
FilterComplement
(
double
target_mz,
pappso::PrecisionPtr
precision_ptr);
50
51
52
/**
53
* Copy constructor
54
*
55
* @param other TODO
56
*/
57
FilterComplement
(
const
FilterComplement
&other);
58
59
/**
60
* Destructor
61
*/
62
virtual
~FilterComplement
();
63
64
pappso::Trace
&
filter
(
pappso::Trace
&data_points)
const override
;
65
66
private
:
67
private
:
68
double
m_targetMzSum
;
69
pappso::PrecisionPtr
m_precisionPtr
;
70
};
FilterComplement::~FilterComplement
virtual ~FilterComplement()
Definition
filtercomplement.cpp:50
FilterComplement::filter
pappso::Trace & filter(pappso::Trace &data_points) const override
Definition
filtercomplement.cpp:55
FilterComplement::m_targetMzSum
double m_targetMzSum
Definition
filtercomplement.h:68
FilterComplement::m_precisionPtr
pappso::PrecisionPtr m_precisionPtr
Definition
filtercomplement.h:69
FilterComplement::FilterComplement
FilterComplement(double target_mz, pappso::PrecisionPtr precision_ptr)
Definition
filtercomplement.cpp:33
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
filterinterface.h
pappso::PrecisionPtr
const PrecisionBase * PrecisionPtr
Definition
precision.h:122
trace.h
pappsomspp
core
processing
cbor
mzcbor
copyreplace
filtercomplement.h
Generated on
for libpappsomspp by
1.17.0