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;
120 virtual void optimize(
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,
137 void selectMRMFeature(
173 double computeScore_(
const Feature& feature,
const std::map<String, LambdaScore>& score_weights)
const;
188 const std::vector<Int>& indices,
189 const std::vector<double>& values,
207 void constructTargTransList_(
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
231 double weightScore_(
const double score,
const LambdaScore lambda_score)
const;
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
298 selector_.constructTargTransList_(features, time_to_name, feature_name_map, select_transition_group);
303 return selector_.weightScore_(score, lambda_score);
std::map< String, MRMFeatureSelector::LambdaScore > score_weights
Weights for the scores.
Definition: MRMFeatureSelector.h:107
String removeSpaces_(String str) const
Definition: MRMFeatureSelector.h:311
A more convenient string class.
Definition: String.h:58
Definition: MRMFeatureSelector.h:266
A container for features.
Definition: FeatureMap.h:98
~MRMFeatureSelector_test() override=default
Definition: MRMFeatureSelector.h:285
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: LPWrapper.h:70
double weightScore_(const double score, const LambdaScore lambda_score) const
Definition: MRMFeatureSelector.h:301
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const
Definition: MRMFeatureSelector.h:306
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
MRMFeatureSelectorQMIP selector_
Definition: MRMFeatureSelector.h:316
Definition: MRMFeatureSelector.h:242
LambdaScore
Definition: MRMFeatureSelector.h:62
VariableType
Definition: MRMFeatureSelector.h:56
An LC-MS feature.
Definition: Feature.h:70
Type
Definition: LPWrapper.h:104
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
Definition: MRMFeatureSelector.h:50
MRMFeatureSelector_test()=default
int Int
Signed integer type.
Definition: Types.h:102
Definition: MRMFeatureSelector.h:77
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const