libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
peptidenaturalisotopeaverage.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
3
*
4
* This file is part of the PAPPSOms++ library.
5
*
6
* PAPPSOms++ is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation, either version 3 of the License, or
9
* (at your option) any later version.
10
*
11
* PAPPSOms++ is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
18
*
19
* Contributors:
20
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
21
*implementation
22
******************************************************************************/
23
24
#pragma once
25
26
27
#include <vector>
28
29
#include "
pappsomspp/export-import-config.h
"
30
#include "
peptidenaturalisotope.h
"
31
32
namespace
pappso
33
{
34
35
class
PeptideNaturalIsotopeList
;
36
37
class
PeptideNaturalIsotopeAverage
;
38
39
typedef
std::shared_ptr<const PeptideNaturalIsotopeAverage>
40
PeptideNaturalIsotopeAverageSp
;
41
42
class
PMSPP_LIB_DECL
PeptideNaturalIsotopeAverage
43
{
44
public
:
45
/** @brief fast constructor
46
* simple isotope build, not computing isotope ratio
47
*/
48
PeptideNaturalIsotopeAverage
(
const
PeptideInterfaceSp
&peptide,
49
unsigned
int
isotopeNumber,
50
unsigned
int
charge,
51
PrecisionPtr
precision);
52
53
PeptideNaturalIsotopeAverage
(
const
PeptideInterfaceSp
&peptide,
54
unsigned
int
askedIsotopeRank,
55
unsigned
int
isotopeLevel,
56
unsigned
int
charge,
57
PrecisionPtr
precision);
58
PeptideNaturalIsotopeAverage
(
const
PeptideNaturalIsotopeList
&isotopeList,
59
unsigned
int
askedIsotopeRank,
60
unsigned
int
isotopeLevel,
61
unsigned
int
charge,
62
PrecisionPtr
precision);
63
64
PeptideNaturalIsotopeAverage
(
const
PeptideNaturalIsotopeAverage
&other);
65
virtual
~PeptideNaturalIsotopeAverage
();
66
67
PeptideNaturalIsotopeAverageSp
makePeptideNaturalIsotopeAverageSp
()
const
;
68
pappso_double
getMz
()
const
;
69
pappso_double
getIntensityRatio
()
const
;
70
unsigned
int
getCharge
()
const
;
71
unsigned
int
getIsotopeNumber
()
const
;
72
unsigned
int
getIsotopeRank
()
const
;
73
const
std::vector<PeptideNaturalIsotopeSp> &
getComponents
()
const
;
74
const
PeptideInterfaceSp
&
getPeptideInterfaceSp
()
const
;
75
PrecisionPtr
getPrecision
()
const
;
76
virtual
bool
matchPeak
(
pappso_double
peak_mz)
const
final
;
77
bool
isEmpty
()
const
;
78
virtual
QString
toString
()
const
;
79
80
private
:
81
void
recursiveDepletion
(std::vector<PeptideNaturalIsotopeSp> &v_isotope_list,
82
unsigned
int
rank);
83
84
85
private
:
86
const
PeptideInterfaceSp
mcsp_peptideSp
;
87
std::vector<PeptideNaturalIsotopeSp>
m_peptideNaturalIsotopeSpList
;
88
89
pappso_double
m_averageMz
;
90
pappso_double
m_abundanceRatio
;
91
unsigned
int
m_isotopeLevel
;
92
unsigned
int
m_isotopeRank
= 1;
93
unsigned
int
m_z
;
94
PrecisionPtr
mp_precision
=
nullptr
;
95
};
96
}
// namespace pappso
pappso::PeptideNaturalIsotopeAverage
Definition
peptidenaturalisotopeaverage.h:43
pappso::PeptideNaturalIsotopeAverage::m_peptideNaturalIsotopeSpList
std::vector< PeptideNaturalIsotopeSp > m_peptideNaturalIsotopeSpList
Definition
peptidenaturalisotopeaverage.h:87
pappso::PeptideNaturalIsotopeAverage::m_abundanceRatio
pappso_double m_abundanceRatio
Definition
peptidenaturalisotopeaverage.h:90
pappso::PeptideNaturalIsotopeAverage::getIsotopeRank
unsigned int getIsotopeRank() const
Definition
peptidenaturalisotopeaverage.cpp:216
pappso::PeptideNaturalIsotopeAverage::mcsp_peptideSp
const PeptideInterfaceSp mcsp_peptideSp
Definition
peptidenaturalisotopeaverage.h:86
pappso::PeptideNaturalIsotopeAverage::toString
virtual QString toString() const
Definition
peptidenaturalisotopeaverage.cpp:255
pappso::PeptideNaturalIsotopeAverage::PeptideNaturalIsotopeAverage
PeptideNaturalIsotopeAverage(const PeptideInterfaceSp &peptide, unsigned int isotopeNumber, unsigned int charge, PrecisionPtr precision)
fast constructor simple isotope build, not computing isotope ratio
Definition
peptidenaturalisotopeaverage.cpp:34
pappso::PeptideNaturalIsotopeAverage::m_isotopeRank
unsigned int m_isotopeRank
Definition
peptidenaturalisotopeaverage.h:92
pappso::PeptideNaturalIsotopeAverage::getIntensityRatio
pappso_double getIntensityRatio() const
Definition
peptidenaturalisotopeaverage.cpp:198
pappso::PeptideNaturalIsotopeAverage::getComponents
const std::vector< PeptideNaturalIsotopeSp > & getComponents() const
Definition
peptidenaturalisotopeaverage.cpp:222
pappso::PeptideNaturalIsotopeAverage::isEmpty
bool isEmpty() const
Definition
peptidenaturalisotopeaverage.cpp:249
pappso::PeptideNaturalIsotopeAverage::getMz
pappso_double getMz() const
Definition
peptidenaturalisotopeaverage.cpp:192
pappso::PeptideNaturalIsotopeAverage::m_isotopeLevel
unsigned int m_isotopeLevel
Definition
peptidenaturalisotopeaverage.h:91
pappso::PeptideNaturalIsotopeAverage::matchPeak
virtual bool matchPeak(pappso_double peak_mz) const final
Definition
peptidenaturalisotopeaverage.cpp:240
pappso::PeptideNaturalIsotopeAverage::getPeptideInterfaceSp
const PeptideInterfaceSp & getPeptideInterfaceSp() const
Definition
peptidenaturalisotopeaverage.cpp:228
pappso::PeptideNaturalIsotopeAverage::getCharge
unsigned int getCharge() const
Definition
peptidenaturalisotopeaverage.cpp:204
pappso::PeptideNaturalIsotopeAverage::recursiveDepletion
void recursiveDepletion(std::vector< PeptideNaturalIsotopeSp > &v_isotope_list, unsigned int rank)
Definition
peptidenaturalisotopeaverage.cpp:105
pappso::PeptideNaturalIsotopeAverage::getIsotopeNumber
unsigned int getIsotopeNumber() const
Definition
peptidenaturalisotopeaverage.cpp:210
pappso::PeptideNaturalIsotopeAverage::m_averageMz
pappso_double m_averageMz
Definition
peptidenaturalisotopeaverage.h:89
pappso::PeptideNaturalIsotopeAverage::m_z
unsigned int m_z
Definition
peptidenaturalisotopeaverage.h:93
pappso::PeptideNaturalIsotopeAverage::makePeptideNaturalIsotopeAverageSp
PeptideNaturalIsotopeAverageSp makePeptideNaturalIsotopeAverageSp() const
Definition
peptidenaturalisotopeaverage.cpp:166
pappso::PeptideNaturalIsotopeAverage::getPrecision
PrecisionPtr getPrecision() const
Definition
peptidenaturalisotopeaverage.cpp:234
pappso::PeptideNaturalIsotopeAverage::mp_precision
PrecisionPtr mp_precision
Definition
peptidenaturalisotopeaverage.h:94
pappso::PeptideNaturalIsotopeList
Definition
peptidenaturalisotopelist.h:49
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::PeptideInterfaceSp
std::shared_ptr< const PeptideInterface > PeptideInterfaceSp
Definition
peptideinterface.h:40
pappso::pappso_double
double pappso_double
A type definition for doubles.
Definition
types.h:60
pappso::PeptideNaturalIsotopeAverageSp
std::shared_ptr< const PeptideNaturalIsotopeAverage > PeptideNaturalIsotopeAverageSp
Definition
peptidenaturalisotopeaverage.h:40
pappso::PrecisionPtr
const PrecisionBase * PrecisionPtr
Definition
precision.h:122
peptidenaturalisotope.h
pappsomspp
core
peptide
peptidenaturalisotopeaverage.h
Generated on
for libpappsomspp by
1.17.0