58 IEWindow(
const double RTmin,
const double RTmax,
const double MZ) :
80 WindowDistance_(
const double rt_bridge,
const double mz_max,
const bool mz_as_ppm) :
81 rt_bridge_(rt_bridge),
91 double d_mz = fabs(first.
MZ_ - second.
MZ_);
94 d_mz = d_mz / first.
MZ_ * 1e6;
96 if (d_mz > mz_max_) {
return 0; }
108 if ((fabs(first.
RTmin_ - second.
RTmax_) <= rt_bridge_) ||
139 void mergeOverlappingWindows_(
WindowList& list)
const;
174 void writeTargets(
const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
177 const String rt_model_path);
194 void writeTargets(
const std::vector<PeptideIdentification>& pep_ids,
IEWindow(const double RTmin, const double RTmax, const double MZ)
Definition: InclusionExclusionList.h:58
A more convenient string class.
Definition: String.h:57
A container for features.
Definition: FeatureMap.h:93
double RTmin_
Definition: InclusionExclusionList.h:65
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:58
Provides functionality for writing inclusion or exclusion lists.
Definition: InclusionExclusionList.h:52
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
double MZ_
Definition: InclusionExclusionList.h:67
double rt_bridge_
max rt distance between two windows in order to be considered overlapping
Definition: InclusionExclusionList.h:120
double RTmax_
Definition: InclusionExclusionList.h:66
WindowDistance_(const double rt_bridge, const double mz_max, const bool mz_as_ppm)
Definition: InclusionExclusionList.h:80
std::vector< IEWindow > WindowList
Definition: InclusionExclusionList.h:127
Determine distance between two spectra.
Definition: InclusionExclusionList.h:77
bool mz_as_ppm_
m/z distance unit
Definition: InclusionExclusionList.h:122
double mz_max_
max m/z distance between two ...
Definition: InclusionExclusionList.h:121
Definition: InclusionExclusionList.h:56
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
double operator()(const IEWindow &first, const IEWindow &second) const
Definition: InclusionExclusionList.h:88