libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
filterobopsimodtermdiffmono.cpp
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
4
*
5
* This file is part of the PAPPSOms++ library.
6
*
7
* PAPPSOms++ is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* PAPPSOms++ is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
19
*
20
* Contributors:
21
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22
*implementation
23
******************************************************************************/
24
25
#include "
filterobopsimodtermdiffmono.h
"
26
27
namespace
pappso
28
{
29
FilterOboPsiModTermDiffMono::FilterOboPsiModTermDiffMono
(
30
OboPsiModHandlerInterface
&sink,
const
MzRange
&mass_range)
31
:
m_massRange
(mass_range),
m_sink
(sink)
32
{
33
}
34
35
FilterOboPsiModTermDiffMono::~FilterOboPsiModTermDiffMono
()
36
{
37
}
38
39
void
40
FilterOboPsiModTermDiffMono::setOboPsiModTerm
(
const
OboPsiModTerm
&term)
41
{
42
// qDebug() << term._psi_mod_label << " " << term._psi_ms_label;
43
if
(
m_massRange
.contains(term.
m_diffMono
))
44
{
45
m_sink
.setOboPsiModTerm(term);
46
}
47
}
48
}
// namespace pappso
pappso::FilterOboPsiModTermDiffMono::m_massRange
const MzRange m_massRange
Definition
filterobopsimodtermdiffmono.h:39
pappso::FilterOboPsiModTermDiffMono::~FilterOboPsiModTermDiffMono
virtual ~FilterOboPsiModTermDiffMono()
Definition
filterobopsimodtermdiffmono.cpp:35
pappso::FilterOboPsiModTermDiffMono::FilterOboPsiModTermDiffMono
FilterOboPsiModTermDiffMono(OboPsiModHandlerInterface &sink, const MzRange &mass_range)
Definition
filterobopsimodtermdiffmono.cpp:29
pappso::FilterOboPsiModTermDiffMono::setOboPsiModTerm
void setOboPsiModTerm(const OboPsiModTerm &term) override
triggered function on each obo term when parsing obo file
Definition
filterobopsimodtermdiffmono.cpp:40
pappso::FilterOboPsiModTermDiffMono::m_sink
OboPsiModHandlerInterface & m_sink
Definition
filterobopsimodtermdiffmono.h:40
pappso::MzRange
Definition
mzrange.h:46
pappso::OboPsiModHandlerInterface
Definition
obopsimodhandlerinterface.h:31
pappso::OboPsiModTerm
Definition
obopsimodterm.h:34
pappso::OboPsiModTerm::m_diffMono
double m_diffMono
Definition
obopsimodterm.h:66
filterobopsimodtermdiffmono.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
core
obo
filterobopsimodtermdiffmono.cpp
Generated on Tue Sep 23 2025 09:36:35 for libpappsomspp by
1.13.2