48 setXicFilter(std::make_shared<FilterMorphoAntiSpike>(5));
100 if((ratio < 1) && (ratio >= 0))
211 project_param.
name =
"mcq_xic_extraction_type";
215 project_param.name =
"mcq_mbr";
219 project_param.name =
"mcq_isotope_minimum_ratio";
230 project_param.name =
"mcq_xic_ppm_range_min";
234 project_param.name =
"mcq_xic_ppm_range_max";
244 project_param.name =
"mcq_xic_mz_range_min";
248 project_param.name =
"mcq_xic_mz_range_max";
253 project_param.name =
"mcq_xic_pre_filter";
257 project_param.value.setValue(
"");
264 if(detection_zivy !=
nullptr)
266 project_param.name =
"mcq_detection_zivy";
267 project_param.value.setValue(QString(
"%1 %2 %3 %4 %5")
290 "mp_xicExtractionUppersPrecisionPtr == "
296 "mp_xicExtractionLowerPrecisionPtr == "
300 QJsonObject precision;
306 QJsonObject extraction;
307 extraction.insert(
"integration", xic_type);
308 extraction.insert(
"precision", precision);
310 method.insert(
"extraction", extraction);
320 "m_xicFilterSuite.get() == "
329 if(detection_zivy ==
nullptr)
332 "m_quantificationMethod.getTraceDetectionInterfaceCstSPtr().get() == "
336 QJsonObject detection;
337 detection.insert(
"type",
"zivy");
343 method.insert(
"detection", detection);
354 QString filter_str = quantification_method.value(
"pre_filter").toString();
356 qDebug() << filter_str;
357 if(!filter_str.isEmpty())
361 qDebug() << filter_str;
363 QJsonObject extraction = quantification_method.value(
"extraction").toObject();
365 QJsonValue rt_range = extraction.value(
"rt_range");
366 if(!rt_range.isUndefined())
371 QString integration = extraction.value(
"integration").toString();
372 if(integration ==
"sum")
376 else if(integration ==
"max")
383 "masschroq_methods>quantification_method>extraction>"
384 "integration %1 value")
388 QJsonObject precision = extraction.value(
"precision").toObject();
389 qDebug() << precision.value(
"down").toDouble();
390 qDebug() << precision.value(
"up").toDouble();
392 if(precision.value(
"unit").toString() ==
"dalton")
399 else if(precision.value(
"unit").toString() ==
"ppm")
409 QObject::tr(
"missing "
410 "masschroq_methods>quantification_method>extraction>precision>"
415 QJsonObject detection = quantification_method.value(
"detection").toObject();
416 if(detection.value(
"type").toString() ==
"zivy")
418 std::shared_ptr<TraceDetectionZivy> sp_detection_zivy =
419 std::make_shared<TraceDetectionZivy>(detection.value(
"meanfilter").toInt(),
420 detection.value(
"minmax").toInt(),
421 detection.value(
"maxmin").toInt(),
422 detection.value(
"threshold_on_max").toInt(),
423 detection.value(
"threshold_on_min").toInt());
430 QObject::tr(
"only masschroq_methods>quantification_method>detection>type == zivy "
static PrecisionPtr getPpmInstance(pappso_double value)
get a ppm precision pointer
static PrecisionPtr getDaltonInstance(pappso_double value)
get a Dalton precision pointer
void setProjectParam(const ProjectParam ¶m)
unsigned int getMinMaxHalfEdgeWindows() const
unsigned int getSmoothingHalfEdgeWindows() const
double getDetectionThresholdOnMinmax() const
double getDetectionThresholdOnMaxmin() const
unsigned int getMaxMinHalfEdgeWindows() const
pappso::PrecisionPtr mp_xicExtractionUppersPrecisionPtr
const pappso::TraceDetectionInterfaceCstSPtr & getTraceDetectionInterfaceCstSPtr() const
Enums::XicExtractMethod getXicExtractMethod() const
pappso::FilterSuiteStringSPtr m_xicFilterSuite
the xic filters
void setXicExtractionUpperPrecisionPtr(pappso::PrecisionPtr precision)
pappso::PrecisionPtr getXicExtractionMeanPrecisionPtr() const
pappso::PrecisionPtr mp_xicExtractionLowerPrecisionPtr
pappso::PrecisionPtr getXicExtractionUppersPrecisionPtr() const
pappso::TraceDetectionInterfaceCstSPtr mcsp_traceDetectionInterfaceCstSPtr
the peak detection method for this quantification
void setIsotopeMinimumRatio(double ratio)
double getXicExtractionRtRange() const
double m_xicExtractionRetentionTimeAroundTarget
set the retention time range in seconds around the target rt
void setJsonObject(const QJsonObject &json_object)
Enums::XicExtractMethod m_xicExtractMethod
void setXicExtractMethod(Enums::XicExtractMethod method)
QuantificationMethod(const QString &id)
pappso::ProjectParameters getProjectParameters() const
pappso::PrecisionPtr getXicExtractionLowerPrecisionPtr() const
void setMatchBetweenRun(bool is_match)
void setXicFilter(const pappso::FilterNameInterfaceSPtr &filter)
bool getMatchBetweenRun() const
void addXicFilter(const pappso::FilterNameInterfaceSPtr &filter)
const FilterSuiteStringSPtr & getFilterSuiteStringSPtr() const
void setXicExtractionRtRange(double rt_range)
const pappso::MzRange getXicExtractionMzRange(double mz) const
double m_isotopeMinimumRatio
the minimum percentage of theoretical intensity of the isotope pattern to compute
double getIsotopeMinimumRatio() const
virtual ~QuantificationMethod()
QJsonObject getJsonObject() const
void setXicExtractionLowerPrecisionPtr(pappso::PrecisionPtr precision)
const QString & getId() const
void setTraceDetectionInterfaceCstSPtr(const pappso::TraceDetectionInterfaceCstSPtr &detection)
const pappso::FilterNameInterfaceSPtr getXicFilter() const
static QString enumToString(PeakQualityCategory peak_category)
Convenience function to return a string describing the specglob alingment type.
@ max
maximum of intensities
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
std::shared_ptr< FilterSuiteString > FilterSuiteStringSPtr
std::shared_ptr< const TraceDetectionInterface > TraceDetectionInterfaceCstSPtr
@ quantification
quantification
@ filter
concerning filters (psm, peptide, protein validation)
std::shared_ptr< FilterNameInterface > FilterNameInterfaceSPtr
const PrecisionBase * PrecisionPtr