libpappsomspp
Library for mass spectrometry
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
35
37
38/**
39 * @brief try to detect complementary ions and assign maximum intensity of both
40 * elements
41 *
42 * experimental filter
43 */
45{
46 public:
47 /**
48 * @param target_mz the targeted mass of the peak pair
49 * @param precision_ptr matching precision
50 */
52
53
54 /**
55 * Copy constructor
56 *
57 * @param other TODO
58 */
60
61 /**
62 * Destructor
63 */
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};
pappso::Trace & filter(pappso::Trace &data_points) const override
FilterMs1WindowSelection(const pappso::cbor::mzcbor::QcborSpectrumPrecursor &precursor)
generic interface to apply a filter on a trace
A simple container of DataPoint instances.
Definition trace.h:152
Low level CBOR map to store an mzCBOR Spectrum object.
Low level CBOR map to store an mzCBOR Spectrum object.