11 #include <OpenMS/config.h>
63 std::map<String, MRMFeatureSelector::LambdaScore>& sw
67 select_transition_group(stg),
68 segment_window_length(swl),
69 segment_step_length(ssl),
71 optimal_threshold(ot),
75 bool locality_weight =
false;
76 bool select_transition_group =
true;
77 Int segment_window_length = 8;
78 Int segment_step_length = 4;
80 double optimal_threshold = 0.5;
95 const std::vector<std::pair<double, String>>& time_to_name,
96 const std::map<
String, std::vector<Feature>>& feature_name_map,
97 std::vector<String>& result,
162 const std::vector<Int>& indices,
163 const std::vector<double>& values,
183 std::vector<std::pair<double, String>>& time_to_name,
184 std::map<
String, std::vector<Feature>>& feature_name_map,
185 const bool select_transition_group
228 const std::vector<std::pair<double, String>>& time_to_name,
229 const std::map<
String, std::vector<Feature>>& feature_name_map,
230 std::vector<String>& result,
252 const std::vector<std::pair<double, String>>& time_to_name,
253 const std::map<
String, std::vector<Feature>>& feature_name_map,
254 std::vector<String>& result,
267 std::vector<std::pair<double, String>>& time_to_name,
268 std::map<
String, std::vector<Feature>>& feature_name_map,
269 const bool select_transition_group
A container for features.
Definition: FeatureMap.h:80
An LC-MS feature.
Definition: Feature.h:46
Definition: LPWrapper.h:45
Type
Definition: LPWrapper.h:79
Definition: MRMFeatureSelector.h:217
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:241
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:260
MRMFeatureSelectorQMIP selector_
Definition: MRMFeatureSelector.h:290
double weightScore_(const double score, const LambdaScore lambda_score) const
Definition: MRMFeatureSelector.h:275
MRMFeatureSelector_test()=default
~MRMFeatureSelector_test() override=default
String removeSpaces_(String str) const
Definition: MRMFeatureSelector.h:285
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:265
double computeScore_(const Feature &feature, const std::map< String, LambdaScore > &score_weights) const
Definition: MRMFeatureSelector.h:280
Definition: MRMFeatureSelector.h:25
virtual ~MRMFeatureSelector()=default
MRMFeatureSelector()=default
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:37
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:31
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
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:76
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
Definition: MRMFeatureSelector.h:52
std::map< String, MRMFeatureSelector::LambdaScore > score_weights
Weights for the scores.
Definition: MRMFeatureSelector.h:81
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:55