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_) ||
174 void writeTargets(
const std::vector<FASTAFile::FASTAEntry>& fasta_entries,
177 const String rt_model_path);
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
A container for features.
Definition: FeatureMap.h:106
Determine distance between two spectra.
Definition: InclusionExclusionList.h:78
bool mz_as_ppm_
m/z distance unit
Definition: InclusionExclusionList.h:122
double operator()(const IEWindow &first, const IEWindow &second) const
Definition: InclusionExclusionList.h:88
double mz_max_
max m/z distance between two ...
Definition: InclusionExclusionList.h:121
WindowDistance_(const double rt_bridge, const double mz_max, const bool mz_as_ppm)
Definition: InclusionExclusionList.h:80
double rt_bridge_
max rt distance between two windows in order to be considered overlapping
Definition: InclusionExclusionList.h:120
Provides functionality for writing inclusion or exclusion lists.
Definition: InclusionExclusionList.h:54
void writeTargets(const FeatureMap &map, const String &out_path)
Writes inclusion or exclusion list of given feature map.
void writeTargets(const std::vector< PeptideIdentification > &pep_ids, const String &out_path, const IntList &charges)
Writes inclusion or exclusion list of given peptide ids (tab-delimited).
std::vector< IEWindow > WindowList
Definition: InclusionExclusionList.h:127
void writeTargets(const std::vector< FASTAFile::FASTAEntry > &fasta_entries, const String &out_path, const IntList &charges, const String rt_model_path)
Writes inclusion or exclusion list of tryptic peptides of the given proteins (tab-delimited).
void writeToFile_(const String &out_path, const WindowList &windows) const
Writes the windows to the given file.
void mergeOverlappingWindows_(WindowList &list) const
Merges overlapping windows using m/z tolerance.
InclusionExclusionList()
default constructor
A more convenient string class.
Definition: String.h:60
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:55
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: InclusionExclusionList.h:57
IEWindow(const double RTmin, const double RTmax, const double MZ)
Definition: InclusionExclusionList.h:58
double MZ_
Definition: InclusionExclusionList.h:67
double RTmin_
Definition: InclusionExclusionList.h:65
double RTmax_
Definition: InclusionExclusionList.h:66