libpappsomspp
Library for mass spectrometry
|
#include <tracedetectionzivy.h>
Public Member Functions | |
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) | |
TraceDetectionZivy (const TraceDetectionZivy &other) | |
virtual | ~TraceDetectionZivy () |
void | guessParametersFromMsRunReader (const MsRunReader &reader) |
void | setFilterMorphoMean (const FilterMorphoMean &smooth) |
void | setFilterMorphoMinMax (const FilterMorphoMinMax &m_minMax) |
void | setFilterMorphoMaxMin (const FilterMorphoMaxMin &maxMin) |
void | setDetectionThresholdOnMinmax (double detectionThresholdOnMinMax) |
void | setDetectionThresholdOnMaxmin (double detectionThresholdOnMaxMin) |
unsigned int | getSmoothingHalfEdgeWindows () const |
unsigned int | getMaxMinHalfEdgeWindows () const |
unsigned int | getMinMaxHalfEdgeWindows () const |
double | getDetectionThresholdOnMinmax () const |
double | getDetectionThresholdOnMaxmin () const |
void | detect (const Trace &xic, TraceDetectionSinkInterface &sink, bool remove_peak_base) const override |
detect peaks on a trace | |
Private Attributes | |
FilterMorphoMean | m_smooth |
FilterMorphoMinMax | m_minMax |
FilterMorphoMaxMin | m_maxMin |
double | m_detectionThresholdOnMinMax |
double | m_detectionThresholdOnMaxMin |
Definition at line 37 of file tracedetectionzivy.h.
pappso::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 at line 35 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMaxMin, m_detectionThresholdOnMinMax, m_maxMin, m_minMax, and m_smooth.
Referenced by TraceDetectionZivy().
pappso::TraceDetectionZivy::TraceDetectionZivy | ( | const TraceDetectionZivy & | other | ) |
Definition at line 48 of file tracedetectionzivy.cpp.
References TraceDetectionZivy(), m_detectionThresholdOnMaxMin, m_detectionThresholdOnMinMax, m_maxMin, m_minMax, and m_smooth.
|
virtual |
Definition at line 54 of file tracedetectionzivy.cpp.
|
overridevirtual |
detect peaks on a trace
trace | the trace to detect peaks on |
sink | the object to store peaks or stream it |
remove_peak_base | if true, removes the area under the base of the peak |
Implements pappso::TraceDetectionInterface.
Definition at line 113 of file tracedetectionzivy.cpp.
References pappso::findFirstEqualOrGreaterX(), m_detectionThresholdOnMaxMin, m_detectionThresholdOnMinMax, m_maxMin, m_minMax, m_smooth, pappso::moveLowerYLeftDataPoint(), pappso::moveLowerYRigthDataPoint(), pappso::PappsoException::qwhat(), and pappso::TraceDetectionSinkInterface::setTracePeak().
pappso_double pappso::TraceDetectionZivy::getDetectionThresholdOnMaxmin | ( | ) | const |
Definition at line 106 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMaxMin.
Referenced by pappso::masschroq::QuantificationMethod::getJsonObject(), and pappso::masschroq::QuantificationMethod::getProjectParameters().
pappso_double pappso::TraceDetectionZivy::getDetectionThresholdOnMinmax | ( | ) | const |
Definition at line 101 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMinMax.
Referenced by pappso::masschroq::QuantificationMethod::getJsonObject(), and pappso::masschroq::QuantificationMethod::getProjectParameters().
unsigned int pappso::TraceDetectionZivy::getMaxMinHalfEdgeWindows | ( | ) | const |
Definition at line 90 of file tracedetectionzivy.cpp.
References m_maxMin.
Referenced by pappso::masschroq::QuantificationMethod::getJsonObject(), and pappso::masschroq::QuantificationMethod::getProjectParameters().
unsigned int pappso::TraceDetectionZivy::getMinMaxHalfEdgeWindows | ( | ) | const |
Definition at line 96 of file tracedetectionzivy.cpp.
References m_minMax.
Referenced by pappso::masschroq::QuantificationMethod::getJsonObject(), and pappso::masschroq::QuantificationMethod::getProjectParameters().
unsigned int pappso::TraceDetectionZivy::getSmoothingHalfEdgeWindows | ( | ) | const |
Definition at line 85 of file tracedetectionzivy.cpp.
References m_smooth.
Referenced by pappso::masschroq::QuantificationMethod::getJsonObject(), and pappso::masschroq::QuantificationMethod::getProjectParameters().
void pappso::TraceDetectionZivy::guessParametersFromMsRunReader | ( | const MsRunReader & | reader | ) |
Definition at line 248 of file tracedetectionzivy.cpp.
void pappso::TraceDetectionZivy::setDetectionThresholdOnMaxmin | ( | double | detectionThresholdOnMaxMin | ) |
Definition at line 80 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMaxMin.
void pappso::TraceDetectionZivy::setDetectionThresholdOnMinmax | ( | double | detectionThresholdOnMinMax | ) |
Definition at line 75 of file tracedetectionzivy.cpp.
References m_detectionThresholdOnMinMax.
void pappso::TraceDetectionZivy::setFilterMorphoMaxMin | ( | const FilterMorphoMaxMin & | maxMin | ) |
Definition at line 69 of file tracedetectionzivy.cpp.
References m_maxMin.
void pappso::TraceDetectionZivy::setFilterMorphoMean | ( | const FilterMorphoMean & | smooth | ) |
Definition at line 59 of file tracedetectionzivy.cpp.
References m_smooth.
void pappso::TraceDetectionZivy::setFilterMorphoMinMax | ( | const FilterMorphoMinMax & | m_minMax | ) |
Definition at line 64 of file tracedetectionzivy.cpp.
References m_minMax.
|
private |
Definition at line 74 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), TraceDetectionZivy(), detect(), getDetectionThresholdOnMaxmin(), and setDetectionThresholdOnMaxmin().
|
private |
Definition at line 73 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), TraceDetectionZivy(), detect(), getDetectionThresholdOnMinmax(), and setDetectionThresholdOnMinmax().
|
private |
Definition at line 72 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), TraceDetectionZivy(), detect(), getMaxMinHalfEdgeWindows(), and setFilterMorphoMaxMin().
|
private |
Definition at line 71 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), TraceDetectionZivy(), detect(), getMinMaxHalfEdgeWindows(), and setFilterMorphoMinMax().
|
private |
Definition at line 70 of file tracedetectionzivy.h.
Referenced by TraceDetectionZivy(), TraceDetectionZivy(), detect(), getSmoothingHalfEdgeWindows(), and setFilterMorphoMean().