libpappsomspp
Library for mass spectrometry
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
32
34
35
36/**
37 * @brief try to detect complementary ions and assign maximum intensity of both
38 * elements
39 *
40 * experimental filter
41 */
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 */
58
59 /**
60 * Destructor
61 */
62 virtual ~FilterComplement();
63
64 pappso::Trace &filter(pappso::Trace &data_points) const override;
65
66 private:
67 private:
70};
pappso::Trace & filter(pappso::Trace &data_points) const override
pappso::PrecisionPtr m_precisionPtr
FilterComplement(double target_mz, pappso::PrecisionPtr precision_ptr)
generic interface to apply a filter on a trace
A simple container of DataPoint instances.
Definition trace.h:152
const PrecisionBase * PrecisionPtr
Definition precision.h:122