11#include <OpenMS/config.h>
90 std::map<String, MRMFeatureSelector::LambdaScore>& sw
94 select_transition_group(stg),
95 segment_window_length(swl),
96 segment_step_length(ssl),
98 optimal_threshold(ot),
102 bool locality_weight =
false;
103 bool select_transition_group =
true;
104 Int segment_window_length = 8;
105 Int segment_step_length = 4;
107 double optimal_threshold = 0.5;
122 const std::vector<std::pair<double, String>>& time_to_name,
123 const std::map<
String, std::vector<Feature>>& feature_name_map,
124 std::vector<String>& result,
189 const std::vector<Int>& indices,
190 const std::vector<double>& values,
210 std::vector<std::pair<double, String>>& time_to_name,
211 std::map<
String, std::vector<Feature>>& feature_name_map,
212 const bool select_transition_group
255 const std::vector<std::pair<double, String>>& time_to_name,
256 const std::map<
String, std::vector<Feature>>& feature_name_map,
257 std::vector<String>& result,
279 const std::vector<std::pair<double, String>>& time_to_name,
280 const std::map<
String, std::vector<Feature>>& feature_name_map,
281 std::vector<String>& result,
294 std::vector<std::pair<double, String>>& time_to_name,
295 std::map<
String, std::vector<Feature>>& feature_name_map,
296 const bool select_transition_group
A container for features.
Definition FeatureMap.h:82
An LC-MS feature.
Definition Feature.h:46
A wrapper class for linear programming (LP) solvers.
Definition LPWrapper.h:66
Type
Enumeration for variable/constraint bound types.
Definition LPWrapper.h:114
Definition MRMFeatureSelector.h:244
void optimize(const std::vector< std::pair< double, String > > &time_to_name, const std::map< String, std::vector< Feature > > &feature_name_map, std::vector< String > &result, const SelectorParameters ¶meters) const override
Definition MRMFeatureSelector.h:268
void optimize(const std::vector< std::pair< double, String > > &time_to_name, const std::map< String, std::vector< Feature > > &feature_name_map, std::vector< String > &result, const SelectorParameters ¶meters) const override
Definition MRMFeatureSelector.h:287
MRMFeatureSelectorQMIP selector_
Definition MRMFeatureSelector.h:317
double weightScore_(const double score, const LambdaScore lambda_score) const
Definition MRMFeatureSelector.h:302
MRMFeatureSelector_test()=default
void constructTargTransList_(const FeatureMap &features, std::vector< std::pair< double, String > > &time_to_name, std::map< String, std::vector< Feature > > &feature_name_map, const bool select_transition_group) const
Definition MRMFeatureSelector.h:292
~MRMFeatureSelector_test() override=default
String removeSpaces_(String str) const
Definition MRMFeatureSelector.h:312
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const
Definition MRMFeatureSelector.h:307
A base class for selection of MRM Features through Linear Programming optimization.
Definition MRMFeatureSelector.h:52
virtual ~MRMFeatureSelector()=default
MRMFeatureSelector()=default
LambdaScore
Definition MRMFeatureSelector.h:64
void selectMRMFeature(const FeatureMap &features, FeatureMap &selected_filtered, const SelectorParameters ¶meters) const
double weightScore_(const double score, const LambdaScore lambda_score) const
void constructTargTransList_(const FeatureMap &features, std::vector< std::pair< double, String > > &time_to_name, std::map< String, std::vector< Feature > > &feature_name_map, const bool select_transition_group) const
String removeSpaces_(String str) const
Removes spaces from the given string, not-in-place.
Int addVariable_(LPWrapper &problem, const String &name, const bool bounded, const double obj, const VariableType variableType) const
VariableType
Definition MRMFeatureSelector.h:58
void addConstraint_(LPWrapper &problem, const std::vector< Int > &indices, const std::vector< double > &values, const String &name, const double lb, const double ub, const LPWrapper::Type param) const
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const
virtual void optimize(const std::vector< std::pair< double, String > > &time_to_name, const std::map< String, std::vector< Feature > > &feature_name_map, std::vector< String > &result, const SelectorParameters ¶meters) const =0
A more convenient string class.
Definition String.h:34
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Definition MRMFeatureSelector.h:79
std::map< String, MRMFeatureSelector::LambdaScore > score_weights
Weights for the scores.
Definition MRMFeatureSelector.h:108
SelectorParameters()=default
SelectorParameters(Int nn, bool lw, bool stg, Int swl, Int ssl, MRMFeatureSelector::VariableType vt, double ot, std::map< String, MRMFeatureSelector::LambdaScore > &sw)
Definition MRMFeatureSelector.h:82