libpappsomspp
Library for mass spectrometry
peakionisotopematch.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 MassChroqPRM.
6
* *
7
* * MassChroqPRM 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
* * MassChroqPRM 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 MassChroqPRM. 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 "
peakionisotopematch.h
"
26
27
namespace
pappso
28
{
29
30
PeakIonIsotopeMatch::PeakIonIsotopeMatch
(
31
const
DataPoint
&peak,
32
const
PeptideNaturalIsotopeAverageSp
&naturalIsotopeAverageSp,
33
const
PeptideFragmentIonSp
&ion_sp)
34
:
PeakIonMatch
(peak, ion_sp, naturalIsotopeAverageSp.get()->getCharge()),
35
_naturalIsotopeAverageSp(naturalIsotopeAverageSp)
36
{
37
}
38
39
PeakIonIsotopeMatch::PeakIonIsotopeMatch
(
const
PeakIonIsotopeMatch
&other)
40
:
PeakIonMatch
(other),
41
_naturalIsotopeAverageSp(other._naturalIsotopeAverageSp)
42
{
43
}
44
45
PeakIonIsotopeMatch::~PeakIonIsotopeMatch
()
46
{
47
}
48
const
PeptideNaturalIsotopeAverageSp
&
49
PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp
()
const
50
{
51
return
_naturalIsotopeAverageSp
;
52
}
53
54
55
PeakIonIsotopeMatch
&
56
PeakIonIsotopeMatch::operator=
(
const
PeakIonIsotopeMatch
&other)
57
{
58
59
_naturalIsotopeAverageSp
= other.
_naturalIsotopeAverageSp
;
60
61
return
*
this
;
62
}
63
64
65
}
// namespace pappso
peakionisotopematch.h
pappso::PeakIonIsotopeMatch::~PeakIonIsotopeMatch
virtual ~PeakIonIsotopeMatch()
Definition:
peakionisotopematch.cpp:45
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition:
aa.cpp:39
pappso::DataPoint
Definition:
datapoint.h:21
pappso::PeptideFragmentIonSp
std::shared_ptr< const PeptideFragmentIon > PeptideFragmentIonSp
Definition:
peptidefragmention.h:44
pappso::PeakIonIsotopeMatch::_naturalIsotopeAverageSp
PeptideNaturalIsotopeAverageSp _naturalIsotopeAverageSp
Definition:
peakionisotopematch.h:53
pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp
virtual const PeptideNaturalIsotopeAverageSp & getPeptideNaturalIsotopeAverageSp() const
Definition:
peakionisotopematch.cpp:49
pappso::PeakIonIsotopeMatch::operator=
PeakIonIsotopeMatch & operator=(const PeakIonIsotopeMatch &other)
Definition:
peakionisotopematch.cpp:56
pappso::PeakIonIsotopeMatch
Definition:
peakionisotopematch.h:37
pappso::PeakIonMatch
Definition:
peakionmatch.h:40
pappso::PeakIonIsotopeMatch::PeakIonIsotopeMatch
PeakIonIsotopeMatch(const DataPoint &peak, const PeptideNaturalIsotopeAverageSp &naturalIsotopeAverageSp, const PeptideFragmentIonSp &ion_sp)
Definition:
peakionisotopematch.cpp:30
pappso::PeptideNaturalIsotopeAverageSp
std::shared_ptr< const PeptideNaturalIsotopeAverage > PeptideNaturalIsotopeAverageSp
Definition:
peptidenaturalisotopeaverage.h:37
pappsomspp
psm
peakionisotopematch.cpp
Generated on Mon Dec 21 2020 17:05:07 for libpappsomspp by
1.8.20