35 #ifndef OPENMS_ANALYSIS_TARGETED_INCLUSIONEXCLUSIONLIST_H 36 #define OPENMS_ANALYSIS_TARGETED_INCLUSIONEXCLUSIONLIST_H 59 IEWindow(
const double RTmin,
const double RTmax,
const double MZ) :
81 WindowDistance_(
const double rt_bridge,
const double mz_max,
const bool mz_as_ppm) :
82 rt_bridge_(rt_bridge),
92 double d_mz = fabs(first.
MZ_ - second.
MZ_);
95 d_mz = d_mz / first.
MZ_ * 1e6;
97 if (d_mz > mz_max_) {
return 0; }
109 if ((fabs(first.
RTmin_ - second.
RTmax_) <= rt_bridge_) ||
140 void mergeOverlappingWindows_(WindowList& list)
const;
152 void writeToFile_(
const String& out_path,
const WindowList& windows)
const;
175 void writeTargets(
const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
178 const String rt_model_path);
195 void writeTargets(
const std::vector<PeptideIdentification>& pep_ids,
IEWindow(const double RTmin, const double RTmax, const double MZ)
Definition: InclusionExclusionList.h:59
A more convenient string class.
Definition: String.h:57
A container for features.
Definition: FeatureMap.h:94
double RTmin_
Definition: InclusionExclusionList.h:66
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:59
Provides functionality for writing inclusion or exclusion lists.
Definition: InclusionExclusionList.h:53
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double MZ_
Definition: InclusionExclusionList.h:68
double rt_bridge_
max rt distance between two windows in order to be considered overlapping
Definition: InclusionExclusionList.h:121
double RTmax_
Definition: InclusionExclusionList.h:67
WindowDistance_(const double rt_bridge, const double mz_max, const bool mz_as_ppm)
Definition: InclusionExclusionList.h:81
std::vector< IEWindow > WindowList
Definition: InclusionExclusionList.h:128
Determine distance between two spectra.
Definition: InclusionExclusionList.h:78
bool mz_as_ppm_
m/z distance unit
Definition: InclusionExclusionList.h:123
double mz_max_
max m/z distance between two ...
Definition: InclusionExclusionList.h:122
Definition: InclusionExclusionList.h:57
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
double operator()(const IEWindow &first, const IEWindow &second) const
Definition: InclusionExclusionList.h:89