libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
peakionisotopematch.h
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
#pragma once
26
27
#include "
pappsomspp/export-import-config.h
"
28
#include "
peakionmatch.h
"
29
#include "
../peptide/peptidenaturalisotopeaverage.h
"
30
31
namespace
pappso
32
{
33
class
PeakIonIsotopeMatch
;
34
typedef
std::shared_ptr<const PeakIonIsotopeMatch>
PeakIonIsotopeMatchCstSPtr
;
35
36
37
/** @brief find the first element containing the complementary ion
38
* complementary ion of y1 is b(n-1) for instance
39
* */
40
PMSPP_LIB_DECL
std::vector<PeakIonIsotopeMatch>::iterator
41
findComplementIonType
(std::vector<PeakIonIsotopeMatch>::iterator begin,
42
std::vector<PeakIonIsotopeMatch>::iterator end,
43
const
PeakIonIsotopeMatch
&peak_ion,
44
std::size_t peptide_size);
45
46
class
PMSPP_LIB_DECL
PeakIonIsotopeMatch
:
public
PeakIonMatch
47
{
48
public
:
49
PeakIonIsotopeMatch
(
50
const
DataPoint
&peak,
51
const
PeptideNaturalIsotopeAverageSp
&naturalIsotopeAverageSp,
52
const
PeptideFragmentIonSp
&ion_sp);
53
PeakIonIsotopeMatch
(
const
PeakIonIsotopeMatch
&other);
54
PeakIonIsotopeMatch
(
PeakIonIsotopeMatch
&&other);
55
virtual
~PeakIonIsotopeMatch
();
56
57
virtual
const
PeptideNaturalIsotopeAverageSp
&
58
getPeptideNaturalIsotopeAverageSp
()
const
;
59
60
PeakIonIsotopeMatch
&
operator=
(
const
PeakIonIsotopeMatch
&other);
61
62
virtual
QString
toString
()
const
;
63
64
private
:
65
PeptideNaturalIsotopeAverageSp
_naturalIsotopeAverageSp
;
66
};
67
68
69
}
// namespace pappso
70
71
Q_DECLARE_METATYPE
(
pappso::PeakIonIsotopeMatchCstSPtr
);
pappso::PeakIonIsotopeMatch
Definition
peakionisotopematch.h:47
pappso::PeakIonIsotopeMatch::PeakIonIsotopeMatch
PeakIonIsotopeMatch(const DataPoint &peak, const PeptideNaturalIsotopeAverageSp &naturalIsotopeAverageSp, const PeptideFragmentIonSp &ion_sp)
Definition
peakionisotopematch.cpp:59
pappso::PeakIonIsotopeMatch::toString
virtual QString toString() const
Definition
peakionisotopematch.cpp:102
pappso::PeakIonIsotopeMatch::operator=
PeakIonIsotopeMatch & operator=(const PeakIonIsotopeMatch &other)
Definition
peakionisotopematch.cpp:92
pappso::PeakIonIsotopeMatch::_naturalIsotopeAverageSp
PeptideNaturalIsotopeAverageSp _naturalIsotopeAverageSp
Definition
peakionisotopematch.h:65
pappso::PeakIonIsotopeMatch::getPeptideNaturalIsotopeAverageSp
virtual const PeptideNaturalIsotopeAverageSp & getPeptideNaturalIsotopeAverageSp() const
Definition
peakionisotopematch.cpp:85
pappso::PeakIonMatch::PeakIonMatch
PeakIonMatch(const DataPoint &peak, const PeptideFragmentIonSp &ion_sp, unsigned int charge)
Definition
peakionmatch.cpp:35
export-import-config.h
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappso::PeptideFragmentIonSp
std::shared_ptr< const PeptideFragmentIon > PeptideFragmentIonSp
Definition
peptidefragmention.h:46
pappso::PeptideNaturalIsotopeAverageSp
std::shared_ptr< const PeptideNaturalIsotopeAverage > PeptideNaturalIsotopeAverageSp
Definition
peptidenaturalisotopeaverage.h:40
pappso::PeakIonIsotopeMatchCstSPtr
std::shared_ptr< const PeakIonIsotopeMatch > PeakIonIsotopeMatchCstSPtr
Definition
peakionisotopematch.h:34
pappso::findComplementIonType
std::vector< PeakIonIsotopeMatch >::iterator findComplementIonType(std::vector< PeakIonIsotopeMatch >::iterator begin, std::vector< PeakIonIsotopeMatch >::iterator end, const PeakIonIsotopeMatch &peak_ion, std::size_t peptide_size)
find the first element containing the complementary ion complementary ion of y1 is b(n-1) for instanc...
Definition
peakionisotopematch.cpp:30
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(pappso::PeakIonIsotopeMatchCstSPtr)
peakionmatch.h
peptidenaturalisotopeaverage.h
pappso::DataPoint
Definition
datapoint.h:22
pappsomspp
core
psm
peakionisotopematch.h
Generated on
for libpappsomspp by
1.17.0