libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
tracepeak.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 "
pappsomspp/export-import-config.h
"
28
#include "
../../trace/trace.h
"
29
#include "
../../types.h
"
30
31
namespace
pappso
32
{
33
34
class
TracePeak
;
35
typedef
std::shared_ptr<const TracePeak>
TracePeakCstSPtr
;
36
37
/** @/brief Xic Peak stores peak boudaries detected from a Xic
38
* */
39
class
PMSPP_LIB_DECL
TracePeak
40
{
41
public
:
42
TracePeak
();
43
/** @brief construct a peak given a trace, begin and end x coordinate
44
*/
45
TracePeak
(std::vector<DataPoint>::const_iterator it_begin,
46
std::vector<DataPoint>::const_iterator it_end);
47
48
/** @brief construct a peak given a trace, begin and end x coordinate
49
*
50
* @param it_begin begining of trace
51
* @param it_end end of trace
52
* @param remove_base if true, remove the base peak signal
53
*/
54
TracePeak
(std::vector<DataPoint>::const_iterator it_begin,
55
std::vector<DataPoint>::const_iterator it_end,
56
bool
remove_base);
57
TracePeak
(
const
TracePeak
&other);
58
~TracePeak
();
59
60
61
TracePeakCstSPtr
makeTracePeakCstSPtr
()
const
;
62
63
DataPoint
&
getMaxXicElement
();
64
const
DataPoint
&
getMaxXicElement
()
const
;
65
void
setMaxXicElement
(
const
DataPoint
&max);
66
67
DataPoint
&
getLeftBoundary
();
68
const
DataPoint
&
getLeftBoundary
()
const
;
69
void
setLeftBoundary
(
const
DataPoint
&left);
70
71
DataPoint
&
getRightBoundary
();
72
const
DataPoint
&
getRightBoundary
()
const
;
73
void
setRightBoundary
(
const
DataPoint
&right);
74
pappso_double
getArea
()
const
;
75
76
77
void
setArea
(
pappso_double
area);
78
79
bool
containsRt
(
pappso::pappso_double
rt)
const
;
80
81
82
bool
operator==
(
const
TracePeak
&other)
const
;
83
84
TracePeak
&
operator=
(
const
TracePeak
&other);
85
86
87
protected
:
88
pappso_double
m_area
= 0;
89
DataPoint
m_max
;
90
DataPoint
m_left
;
91
DataPoint
m_right
;
92
};
93
94
95
}
// namespace pappso
pappso::TracePeak
Definition
tracepeak.h:40
pappso::TracePeak::TracePeak
TracePeak()
Definition
tracepeak.cpp:31
pappso::TracePeak::getLeftBoundary
DataPoint & getLeftBoundary()
Definition
tracepeak.cpp:93
pappso::TracePeak::setLeftBoundary
void setLeftBoundary(const DataPoint &left)
Definition
tracepeak.cpp:98
pappso::TracePeak::getArea
pappso_double getArea() const
Definition
tracepeak.cpp:119
pappso::TracePeak::operator==
bool operator==(const TracePeak &other) const
Definition
tracepeak.cpp:154
pappso::TracePeak::operator=
TracePeak & operator=(const TracePeak &other)
Definition
tracepeak.cpp:161
pappso::TracePeak::setArea
void setArea(pappso_double area)
Definition
tracepeak.cpp:124
pappso::TracePeak::m_left
DataPoint m_left
Definition
tracepeak.h:90
pappso::TracePeak::makeTracePeakCstSPtr
TracePeakCstSPtr makeTracePeakCstSPtr() const
Definition
tracepeak.cpp:77
pappso::TracePeak::setRightBoundary
void setRightBoundary(const DataPoint &right)
Definition
tracepeak.cpp:114
pappso::TracePeak::m_max
DataPoint m_max
Definition
tracepeak.h:89
pappso::TracePeak::m_right
DataPoint m_right
Definition
tracepeak.h:91
pappso::TracePeak::m_area
pappso_double m_area
Definition
tracepeak.h:88
pappso::TracePeak::containsRt
bool containsRt(pappso::pappso_double rt) const
Definition
tracepeak.cpp:130
pappso::TracePeak::getMaxXicElement
DataPoint & getMaxXicElement()
Definition
tracepeak.cpp:83
pappso::TracePeak::getRightBoundary
DataPoint & getRightBoundary()
Definition
tracepeak.cpp:104
pappso::TracePeak::setMaxXicElement
void setMaxXicElement(const DataPoint &max)
Definition
tracepeak.cpp:88
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::pappso_double
double pappso_double
A type definition for doubles.
Definition
types.h:60
pappso::TracePeakCstSPtr
std::shared_ptr< const TracePeak > TracePeakCstSPtr
Definition
tracepeak.h:35
pappso::DataPoint
Definition
datapoint.h:22
trace.h
types.h
pappsomspp
core
processing
detection
tracepeak.h
Generated on
for libpappsomspp by
1.17.0