libpappsomspp
Library for mass spectrometry
Toggle main menu visibility
Loading...
Searching...
No Matches
tracedetectionzivy.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 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
26
#pragma once
27
28
29
#include "
tracedetectioninterface.h
"
30
#include "
pappsomspp/core/processing/filters/filtermorpho.h
"
31
#include "
pappsomspp/core/msrun/msrunreader.h
"
32
33
34
namespace
pappso
35
{
36
37
class
PMSPP_LIB_DECL
TraceDetectionZivy
:
public
TraceDetectionInterface
38
{
39
40
public
:
41
TraceDetectionZivy
(
unsigned
int
smoothing_half_window_length,
42
unsigned
int
minmax_half_window_length,
43
unsigned
int
maxmin_half_window_length,
44
double
detection_threshold_on_minmax,
45
double
detection_threshold_on_maxmin);
46
47
TraceDetectionZivy
(
const
TraceDetectionZivy
&other);
48
virtual
~TraceDetectionZivy
();
49
50
void
guessParametersFromMsRunReader
(
const
MsRunReader
&reader);
51
52
void
setFilterMorphoMean
(
const
FilterMorphoMean
&smooth);
53
void
setFilterMorphoMinMax
(
const
FilterMorphoMinMax
&
m_minMax
);
54
void
setFilterMorphoMaxMin
(
const
FilterMorphoMaxMin
&maxMin);
55
void
setDetectionThresholdOnMinmax
(
double
detectionThresholdOnMinMax);
56
void
setDetectionThresholdOnMaxmin
(
double
detectionThresholdOnMaxMin);
57
58
unsigned
int
getSmoothingHalfEdgeWindows
()
const
;
59
unsigned
int
getMaxMinHalfEdgeWindows
()
const
;
60
61
unsigned
int
getMinMaxHalfEdgeWindows
()
const
;
62
double
getDetectionThresholdOnMinmax
()
const
;
63
double
getDetectionThresholdOnMaxmin
()
const
;
64
65
void
66
detect
(
const
Trace
&xic,
TraceDetectionSinkInterface
&sink,
bool
remove_peak_base)
const override
;
67
68
69
private
:
70
FilterMorphoMean
m_smooth
;
71
FilterMorphoMinMax
m_minMax
;
72
FilterMorphoMaxMin
m_maxMin
;
73
double
m_detectionThresholdOnMinMax
;
74
double
m_detectionThresholdOnMaxMin
;
75
};
76
77
}
// namespace pappso
pappso::FilterMorphoMaxMin
transform the trace with the maximum of the minimum equivalent of the erode filter for pictures
Definition
filtermorpho.h:148
pappso::FilterMorphoMean
mean filter apply mean of y values inside the window : this results in a kind of smoothing
Definition
filtermorpho.h:225
pappso::FilterMorphoMinMax
transform the trace with the minimum of the maximum equivalent of the dilate filter for pictures
Definition
filtermorpho.h:127
pappso::MsRunReader
base class to read MSrun the only way to build a MsRunReader object is to use the MsRunReaderFactory
Definition
msrunreader.h:64
pappso::TraceDetectionInterface
Definition
tracedetectioninterface.h:44
pappso::TraceDetectionSinkInterface
Definition
tracedetectioninterface.h:38
pappso::TraceDetectionZivy::setFilterMorphoMinMax
void setFilterMorphoMinMax(const FilterMorphoMinMax &m_minMax)
Definition
tracedetectionzivy.cpp:64
pappso::TraceDetectionZivy::setDetectionThresholdOnMaxmin
void setDetectionThresholdOnMaxmin(double detectionThresholdOnMaxMin)
Definition
tracedetectionzivy.cpp:80
pappso::TraceDetectionZivy::TraceDetectionZivy
TraceDetectionZivy(unsigned int smoothing_half_window_length, unsigned int minmax_half_window_length, unsigned int maxmin_half_window_length, double detection_threshold_on_minmax, double detection_threshold_on_maxmin)
Definition
tracedetectionzivy.cpp:35
pappso::TraceDetectionZivy::getMinMaxHalfEdgeWindows
unsigned int getMinMaxHalfEdgeWindows() const
Definition
tracedetectionzivy.cpp:96
pappso::TraceDetectionZivy::detect
void detect(const Trace &xic, TraceDetectionSinkInterface &sink, bool remove_peak_base) const override
detect peaks on a trace
Definition
tracedetectionzivy.cpp:113
pappso::TraceDetectionZivy::m_maxMin
FilterMorphoMaxMin m_maxMin
Definition
tracedetectionzivy.h:72
pappso::TraceDetectionZivy::getSmoothingHalfEdgeWindows
unsigned int getSmoothingHalfEdgeWindows() const
Definition
tracedetectionzivy.cpp:85
pappso::TraceDetectionZivy::getDetectionThresholdOnMinmax
double getDetectionThresholdOnMinmax() const
Definition
tracedetectionzivy.cpp:101
pappso::TraceDetectionZivy::getDetectionThresholdOnMaxmin
double getDetectionThresholdOnMaxmin() const
Definition
tracedetectionzivy.cpp:106
pappso::TraceDetectionZivy::setFilterMorphoMaxMin
void setFilterMorphoMaxMin(const FilterMorphoMaxMin &maxMin)
Definition
tracedetectionzivy.cpp:69
pappso::TraceDetectionZivy::m_detectionThresholdOnMinMax
double m_detectionThresholdOnMinMax
Definition
tracedetectionzivy.h:73
pappso::TraceDetectionZivy::m_detectionThresholdOnMaxMin
double m_detectionThresholdOnMaxMin
Definition
tracedetectionzivy.h:74
pappso::TraceDetectionZivy::m_minMax
FilterMorphoMinMax m_minMax
Definition
tracedetectionzivy.h:71
pappso::TraceDetectionZivy::setFilterMorphoMean
void setFilterMorphoMean(const FilterMorphoMean &smooth)
Definition
tracedetectionzivy.cpp:59
pappso::TraceDetectionZivy::guessParametersFromMsRunReader
void guessParametersFromMsRunReader(const MsRunReader &reader)
Definition
tracedetectionzivy.cpp:248
pappso::TraceDetectionZivy::m_smooth
FilterMorphoMean m_smooth
Definition
tracedetectionzivy.h:70
pappso::TraceDetectionZivy::getMaxMinHalfEdgeWindows
unsigned int getMaxMinHalfEdgeWindows() const
Definition
tracedetectionzivy.cpp:90
pappso::TraceDetectionZivy::setDetectionThresholdOnMinmax
void setDetectionThresholdOnMinmax(double detectionThresholdOnMinMax)
Definition
tracedetectionzivy.cpp:75
pappso::Trace
A simple container of DataPoint instances.
Definition
trace.h:152
PMSPP_LIB_DECL
#define PMSPP_LIB_DECL
Definition
export-import-config.h:14
filtermorpho.h
msrunreader.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
tracedetectioninterface.h
pappsomspp
core
processing
detection
tracedetectionzivy.h
Generated on
for libpappsomspp by
1.17.0