|
OpenMS
2.5.0
|
Go to the documentation of this file.
37 #include <OpenMS/OpenMSConfig.h>
52 bool use_coelution_score_ =
true;
53 bool use_shape_score_ =
true;
54 bool use_rt_score_ =
true;
55 bool use_library_score_ =
true;
56 bool use_elution_model_score_ =
true;
57 bool use_intensity_score_ =
true;
58 bool use_total_xic_score_ =
true;
59 bool use_total_mi_score_ =
true;
60 bool use_nr_peaks_score_ =
true;
61 bool use_sn_score_ =
true;
62 bool use_mi_score_ =
true;
63 bool use_dia_scores_ =
true;
64 bool use_sonar_scores =
true;
65 bool use_im_scores =
true;
66 bool use_ms1_correlation =
true;
67 bool use_ms1_fullscan =
true;
68 bool use_ms1_mi =
true;
69 bool use_uis_scores =
true;
82 double elution_model_fit_score = 0;
83 double library_corr = 0;
84 double library_norm_manhattan = 0;
85 double library_rootmeansquare = 0;
86 double library_sangle = 0;
87 double norm_rt_score = 0;
89 double isotope_correlation = 0;
90 double isotope_overlap = 0;
91 double massdev_score = 0;
92 double xcorr_coelution_score = 0;
93 double xcorr_shape_score = 0;
95 double yseries_score = 0;
96 double bseries_score = 0;
97 double log_sn_score = 0;
99 double weighted_coelution_score = 0;
100 double weighted_xcorr_shape = 0;
101 double weighted_massdev_score = 0;
103 double ms1_xcorr_coelution_score = -1;
104 double ms1_xcorr_coelution_contrast_score = 0;
105 double ms1_xcorr_coelution_combined_score = 0;
106 double ms1_xcorr_shape_score = -1;
107 double ms1_xcorr_shape_contrast_score = 0;
108 double ms1_xcorr_shape_combined_score = 0;
109 double ms1_ppm_score = 0;
110 double ms1_isotope_correlation = 0;
111 double ms1_isotope_overlap = 0;
112 double ms1_mi_score = -1;
113 double ms1_mi_contrast_score = 0;
114 double ms1_mi_combined_score = 0;
117 double sonar_diff = 0;
118 double sonar_trend = 0;
119 double sonar_rsq = 0;
120 double sonar_shape = 0;
121 double sonar_lag = 0;
123 double im_xcorr_coelution_score = 0;
124 double im_xcorr_shape_score = 0;
125 double im_delta_score = 0;
126 double im_ms1_delta_score = 0;
128 double im_drift_weighted = 0;
129 double im_ms1_contrast_coelution = 0;
130 double im_ms1_contrast_shape = 0;
131 double im_ms1_sum_contrast_coelution = 0;
132 double im_ms1_sum_contrast_shape = 0;
134 double library_manhattan = 0;
135 double library_dotprod = 0;
136 double intensity = 0;
137 double total_xic = 0;
141 double weighted_mi_score = 0;
143 double rt_difference = 0;
144 double normalized_experimental_rt = 0;
145 double raw_rt_score = 0;
147 double dotprod_score_dia = 0;
148 double manhatt_score_dia = 0;
152 double get_quick_lda_score(
double library_corr_,
153 double library_norm_manhattan_,
154 double norm_rt_score_,
155 double xcorr_coelution_score_,
156 double xcorr_shape_score_,
157 double log_sn_score_)
const;
179 double calculate_lda_single_transition(
const OpenSwath_Scores& scores)
const;
194 int ind_num_transitions = 0;
std::vector< OpenMS::String > ind_transition_names
Definition: OpenSwathScores.h:195
Size ensureUniqueId()
Assigns a valid unique id, but only if the present one is invalid. Returns 1 if the unique id was cha...
Definition: UniqueIdInterface.h:154
Base class for TOPP applications.
Definition: TOPPBase.h:144
Param copy(const String &prefix, bool remove_prefix=false) const
Returns a new Param object containing all entries that start with prefix.
std::vector< double > ind_total_area_intensity
Definition: OpenSwathScores.h:203
PeakMap MapType
Definition: PeakPickerIterative.cpp:84
A method or algorithm argument contains illegal values.
Definition: Exception.h:648
std::vector< double > ind_total_mi
Definition: OpenSwathScores.h:206
The MRMFeatureFinder finds and scores peaks of transitions that co-elute.
Definition: MRMFeatureFinderScoring.h:93
void setValue(const String &key, const DataValue &value, const String &description="", const StringList &tags=StringList())
Sets a value.
File adapter for MzML files.
Definition: MzMLFile.h:55
A more convenient string class.
Definition: String.h:58
void setValidStrings(const String &key, const std::vector< String > &strings)
Sets the valid strings for the parameter key.
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
void pickExperiment(PeakMap &chromatograms, FeatureMap &output, TargetedExperiment &transition_exp, TransformationDescription trafo, PeakMap &swath_map)
Picker and prepare functions.
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
void load(const String &filename, TargetedExperiment &id)
Loads a map from a TraML file.
std::vector< double > ind_intensity_score
Definition: OpenSwathScores.h:204
const DataValue & getValue(const String &key) const
Returns a value of a parameter.
Definition: OpenSwathScores.h:192
std::vector< double > ind_xcorr_shape_score
Definition: OpenSwathScores.h:200
Definition: TransitionExperiment.h:207
std::vector< double > ind_massdev_score
Definition: OpenSwathScores.h:198
static bool computeBinnedCoverage(const std::pair< double, double > &rtRange, const std::vector< std::pair< double, double > > &pairs, int nrBins, int minPeptidesPerBin, int minBinsFilled)
Computes coverage of the RT normalization peptides over the whole RT range, ensuring that each bin ha...
std::map< String, MRMTransitionGroupType > TransitionGroupMapType
Definition: MRMFeatureFinderScoring.h:109
static void convertTargetedExp(const OpenMS::TargetedExperiment &transition_exp_, OpenSwath::LightTargetedExperiment &transition_exp)
convert from the OpenMS TargetedExperiment to the LightTargetedExperiment
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool toBool() const
Conversion to bool.
File adapter for HUPO PSI TraML files.
Definition: TraMLFile.h:63
std::vector< LightCompound > & getCompounds()
Definition: TransitionExperiment.h:229
std::vector< double > ind_isotope_correlation
Definition: OpenSwathScores.h:196
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
static std::vector< std::pair< double, double > > removeOutliersRANSAC(const std::vector< std::pair< double, double > > &pairs, double rsq_limit, double coverage_limit, size_t max_iterations, double max_rt_threshold, size_t sampling_size)
This function removes potential outliers in a linear regression dataset.
void load(const String &filename, PeakMap &map)
Loads a map from a MzML file. Spectra and chromatograms are sorted by default (this can be disabled u...
static std::vector< std::pair< double, double > > removeOutliersIterative(const std::vector< std::pair< double, double > > &pairs, double rsq_limit, double coverage_limit, bool use_chauvenet, const std::string &method)
This function removes potential outliers in a linear regression dataset.
void load(const String &filename, FeatureMap &feature_map)
loads the file with name filename into map and calls updateRanges().
std::vector< double > ind_mi_score
Definition: OpenSwathScores.h:210
void setStrictFlag(bool f)
Set the flag for strict mapping.
Definition: MRMFeatureFinderScoring.h:193
void setParameters(const Param ¶m)
Sets the parameters.
Size applyMemberFunction(Size(Type::*member_function)())
Applies a member function of Type to the container itself and all features (including subordinates)....
Definition: FeatureMap.h:280
const Param & getDefaults() const
Non-mutable access to the default parameters.
static OpenSwath::SpectrumAccessPtr getSpectrumAccessOpenMSPtr(boost::shared_ptr< OpenMS::PeakMap > exp)
Simple Factory method to get a SpectrumAccess Ptr from an MSExperiment.
std::vector< double > ind_xcorr_coelution_score
Definition: OpenSwathScores.h:199
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
void store(const String &filename, const FeatureMap &feature_map)
stores the map feature_map in file with name filename.
static std::pair< double, double > estimateRTRange(const OpenSwath::LightTargetedExperiment &exp)
Computes the min and max retention time value.
void addChromatogram(const MSChromatogram &chromatogram)
adds a chromatogram to the list
std::vector< double > ind_log_intensity
Definition: OpenSwathScores.h:207
int main(int argc, const char **argv)
Definition: INIFileEditor.cpp:73
A container for features.
Definition: FeatureMap.h:95
An LC-MS feature.
Definition: Feature.h:70
boost::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:89
This class provides Input/Output functionality for feature maps.
Definition: FeatureXMLFile.h:68
A structure to hold the different scores computed by OpenSWATH.
Definition: OpenSwathScores.h:80
std::vector< double > ind_log_sn_score
Definition: OpenSwathScores.h:201
Management and storage of parameters / INI files.
Definition: Param.h:73
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:64
std::vector< double > ind_isotope_overlap
Definition: OpenSwathScores.h:197
std::vector< double > ind_intensity_ratio
Definition: OpenSwathScores.h:208
UInt64 getUniqueId() const
Non-mutable access to unique id - returns the unique id.
Definition: UniqueIdInterface.h:105
void setLogType(LogType type) const
Sets the progress log that should be used. The default type is NONE!
std::vector< double > ind_mi_ratio
Definition: OpenSwathScores.h:209
A structure to store which scores should be used by the OpenSWATH Algorithm.
Definition: OpenSwathScores.h:50
void clear(bool clear_meta_data=true)
Clears all data and meta data.
std::vector< double > ind_apex_intensity
Definition: OpenSwathScores.h:205
std::vector< double > ind_area_intensity
Definition: OpenSwathScores.h:202
static std::map< std::string, double > simpleFindBestFeature(const OpenMS::MRMFeatureFinderScoring::TransitionGroupMapType &transition_group_map, bool useQualCutoff=false, double qualCutoff=0.0)
Returns the feature with the highest score for each transition group.