37 #include <OpenMS/config.h>
89 std::map<String, MRMFeatureSelector::LambdaScore>& sw
93 select_transition_group(stg),
94 segment_window_length(swl),
95 segment_step_length(ssl),
97 optimal_threshold(ot),
101 bool locality_weight =
false;
102 bool select_transition_group =
true;
103 Int segment_window_length = 8;
104 Int segment_step_length = 4;
106 double optimal_threshold = 0.5;
121 const std::vector<std::pair<double, String>>& time_to_name,
122 const std::map<
String, std::vector<Feature>>& feature_name_map,
123 std::vector<String>& result,
188 std::vector<Int> indices,
189 std::vector<double> values,
209 std::vector<std::pair<double, String>>& time_to_name,
210 std::map<
String, std::vector<Feature>>& feature_name_map,
211 const bool select_transition_group
254 const std::vector<std::pair<double, String>>& time_to_name,
255 const std::map<
String, std::vector<Feature>>& feature_name_map,
256 std::vector<String>& result,
278 const std::vector<std::pair<double, String>>& time_to_name,
279 const std::map<
String, std::vector<Feature>>& feature_name_map,
280 std::vector<String>& result,
293 std::vector<std::pair<double, String>>& time_to_name,
294 std::map<
String, std::vector<Feature>>& feature_name_map,
295 const bool select_transition_group
A container for features.
Definition: FeatureMap.h:106
An LC-MS feature.
Definition: Feature.h:72
Definition: LPWrapper.h:68
Type
Definition: LPWrapper.h:102
Definition: MRMFeatureSelector.h:243
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:267
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:286
MRMFeatureSelectorQMIP selector_
Definition: MRMFeatureSelector.h:316
double weightScore_(const double score, const LambdaScore lambda_score) const
Definition: MRMFeatureSelector.h:301
MRMFeatureSelector_test()=default
~MRMFeatureSelector_test() override=default
String removeSpaces_(String str) const
Definition: MRMFeatureSelector.h:311
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:291
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const
Definition: MRMFeatureSelector.h:306
Definition: MRMFeatureSelector.h:51
virtual ~MRMFeatureSelector()=default
MRMFeatureSelector()=default
void addConstraint_(LPWrapper &problem, std::vector< Int > indices, std::vector< double > values, const String &name, const double lb, const double ub, const LPWrapper::Type param) 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
LambdaScore
Definition: MRMFeatureSelector.h:63
void selectMRMFeature(const FeatureMap &features, FeatureMap &selected_filtered, const SelectorParameters ¶meters) const
double weightScore_(const double score, const LambdaScore lambda_score) 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
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
VariableType
Definition: MRMFeatureSelector.h:57
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: MRMFeatureSelector.h:78
std::map< String, MRMFeatureSelector::LambdaScore > score_weights
Weights for the scores.
Definition: MRMFeatureSelector.h:107
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:81