11#include <OpenMS/config.h>
160 double calculateBias(
const double & actual_concentration,
const double & calculated_concentration);
174 Param fitCalibration(
const std::vector<AbsoluteQuantitationStandards::featureConcentration> & component_concentrations,
175 const std::string & feature_name,
176 const std::string & transformation_model,
177 const Param & transformation_model_params);
192 const std::vector<AbsoluteQuantitationStandards::featureConcentration> & component_concentrations,
193 const std::string & feature_name,
194 const std::string & transformation_model,
195 const Param & transformation_model_params,
196 std::vector<double> & biases,
197 double & correlation_coefficient);
215 std::vector<AbsoluteQuantitationStandards::featureConcentration> & component_concentrations,
216 const std::string & feature_name,
217 const std::string & transformation_model,
218 const Param & transformation_model_params,
219 Param & optimized_params);
230 void optimizeCalibrationCurves(std::map<std::string,std::vector<AbsoluteQuantitationStandards::featureConcentration>> & components_concentrations);
242 const std::string& component_name,
243 std::vector<AbsoluteQuantitationStandards::featureConcentration>& component_concentrations
262 const std::string & feature_name,
263 const std::string & transformation_model,
264 const Param & transformation_model_params);
293 const std::vector<AbsoluteQuantitationStandards::featureConcentration> & component_concentrations,
294 const std::vector<size_t>& component_concentrations_indices);
311 const std::vector<AbsoluteQuantitationStandards::featureConcentration>& component_concentrations,
312 const std::string & feature_name,
313 const std::string & transformation_model,
314 const Param & transformation_model_params);
331 const std::vector<AbsoluteQuantitationStandards::featureConcentration>& component_concentrations,
332 const std::string & feature_name,
333 const std::string & transformation_model,
334 const Param & transformation_model_params);
AbsoluteQuantitation is a class to support absolute or relative quantitation for targeted or untarget...
Definition AbsoluteQuantitation.h:98
Param fitCalibration(const std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations, const std::string &feature_name, const std::string &transformation_model, const Param &transformation_model_params)
This function fits the calibration points to the model.
double calculateBias(const double &actual_concentration, const double &calculated_concentration)
This function calculates the bias of the calibration.
std::vector< AbsoluteQuantitationStandards::featureConcentration > extractComponents_(const std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations, const std::vector< size_t > &component_concentrations_indices)
This function extracts out the components.
size_t max_iters_
Definition AbsoluteQuantitation.h:343
double max_bias_
Definition AbsoluteQuantitation.h:341
size_t min_points_
Definition AbsoluteQuantitation.h:340
bool optimizeCalibrationCurveIterative(std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations, const std::string &feature_name, const std::string &transformation_model, const Param &transformation_model_params, Param &optimized_params)
This function optimizes the parameters of the calibration for a given component iteratively.
std::vector< AbsoluteQuantitationMethod > getQuantMethods()
quant_method getter. A list of AbsoluteQuantitationMethod classes are returned.
double calculateRatio(const Feature &component_1, const Feature &component_2, const std::string &feature_name)
This function calculates the ratio between features.
~AbsoluteQuantitation() override
Destructor.
double min_correlation_coefficient_
Definition AbsoluteQuantitation.h:342
double applyCalibration(const Feature &component, const Feature &IS_component, const std::string &feature_name, const std::string &transformation_model, const Param &transformation_model_params)
This function applies the calibration curve to the component.
std::string outlier_detection_method_
Definition AbsoluteQuantitation.h:344
int residualOutlierCandidate_(const std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations, const std::string &feature_name, const std::string &transformation_model, const Param &transformation_model_params)
This function computes a candidate outlier point by computing the residuals of all points to the line...
void setQuantMethods(std::vector< AbsoluteQuantitationMethod > &quant_methods)
quant_method setter. A list of AbsoluteQuantitationMethod classes are given as input and a map is con...
std::map< std::string, AbsoluteQuantitationMethod > quant_methods_
map between components and quantitation methods
Definition AbsoluteQuantitation.h:350
void quantifyComponents(FeatureMap &unknowns)
This function applies the calibration curve to all components.
std::map< std::string, AbsoluteQuantitationMethod > getQuantMethodsAsMap()
void updateMembers_() override
Synchronize members with param class.
void optimizeCalibrationCurves(std::map< std::string, std::vector< AbsoluteQuantitationStandards::featureConcentration > > &components_concentrations)
This function optimizes the parameters of the calibration for a all components.
std::string optimization_method_
Definition AbsoluteQuantitation.h:346
bool use_chauvenet_
Definition AbsoluteQuantitation.h:345
void optimizeSingleCalibrationCurve(const std::string &component_name, std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations)
This function optimizes the parameters of the calibration for a single component.
int jackknifeOutlierCandidate_(const std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations, const std::string &feature_name, const std::string &transformation_model, const Param &transformation_model_params)
This function computes a candidate outlier point by iteratively leaving one point out to find the one...
void calculateBiasAndR(const std::vector< AbsoluteQuantitationStandards::featureConcentration > &component_concentrations, const std::string &feature_name, const std::string &transformation_model, const Param &transformation_model_params, std::vector< double > &biases, double &correlation_coefficient)
This function calculates the biases and the correlation coefficient of the calibration points.
AbsoluteQuantitation()
Constructor.
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
A container for features.
Definition FeatureMap.h:78
An LC-MS feature.
Definition Feature.h:46
Management and storage of parameters / INI files.
Definition Param.h:46
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19