44     enum Measure {MEASURE_PPM = 0, MEASURE_DA};
 
  127                   const std::vector<ProteinIdentification>& protein_ids, 
 
  128                   bool measure_from_subelements = 
false, 
 
  129                   bool annotate_ids_with_subelements = 
false, 
 
  160                                                                      double mz_tol = 0.001, 
 
  161                                                                      double rt_tol = 0.001)
 
  164       for (
Size spectrum_index = 0; spectrum_index < spectra.
size(); ++spectrum_index)
 
  166         const MSSpectrum& spectrum = spectra[spectrum_index];
 
  169           bool identified(
false);
 
  170           const std::vector<Precursor>& precursors = spectrum.
getPrecursors();
 
  173           for (
Size i_p = 0; i_p < precursors.size(); ++i_p)
 
  176             double mz_p = precursors[i_p].getMZ();
 
  177             double rt_s = spectrum.
getRT();
 
  179             for (
Size i_id = 0; i_id != ids.
size(); ++i_id)
 
  184               if (pid.
getHits().empty()) 
continue;
 
  186               double mz_id = pid.
getMZ();
 
  187               double rt_id = pid.
getRT();
 
  189               if ( fabs(mz_id - mz_p) < mz_tol && fabs(rt_s - rt_id) < rt_tol )
 
  232     bool isMatch_(
const double rt_distance, 
const double mz_theoretical, 
const double mz_observed) 
const;
 
subpage TOPP_TargetedFileConverter Converts targeted feature or consensus feature files subpage TOPP_FileInfo Shows basic information about the such as data ranges and file type subpage TOPP_FileMerger Merges several MS files into one file subpage TOPP_IDFilter Filters results from protein or peptide identification engines based on different criteria subpage TOPP_IDMerger Merges several protein peptide identification files into one file subpage TOPP_IDRipper Splits protein peptide identifications according their file origin subpage TOPP_IDSplitter Splits protein peptide identifications off of annotated data files subpage TOPP_IonMobilityBinning Merges spectra with similar IM values and creates p N output mzML s by discretizing the IM range subpage TOPP_MapStatistics Extract extended statistics on the features of a map for quality control subpage TOPP_MzMLSplitter Splits an mzML file into multiple parts< b > Spectrum processing
Definition: TOPP.doxygen:74
 
Class for storing MS run data with peptide and protein identifications.
Definition: AnnotatedMSRun.h:36
 
A container for consensus elements.
Definition: ConsensusMap.h:68
 
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
 
size_t size() const noexcept
Definition: ExposedVector.h:128
 
A container for features.
Definition: FeatureMap.h:82
 
Annotates an MSExperiment, FeatureMap or ConsensusMap with peptide identifications.
Definition: IDMapper.h:42
 
void getIDDetails_(const PeptideIdentification &id, double &rt_pep, DoubleList &mz_values, IntList &charges, bool use_avg_mass=false) const
 
std::vector< Size > unidentified
Definition: IDMapper.h:140
 
Measure measure_
Measure used for m/z.
Definition: IDMapper.h:222
 
void annotate(FeatureMap &map, const PeptideIdentificationList &ids, const std::vector< ProteinIdentification > &protein_ids, bool use_centroid_rt=false, bool use_centroid_mz=false, const PeakMap &spectra=PeakMap())
Mapping method for feature maps.
 
void increaseBoundingBox_(DBoundingBox< 2 > &box)
increase a bounding box by the given RT and m/z tolerances
 
void annotate(AnnotatedMSRun &map, const FeatureMap &fmap, const bool clear_ids=false, const bool map_ms1=false)
Mapping method for peak maps.
 
double getAbsoluteMZTolerance_(const double mz) const
 
void annotate(ConsensusMap &map, const PeptideIdentificationList &ids, const std::vector< ProteinIdentification > &protein_ids, bool measure_from_subelements=false, bool annotate_ids_with_subelements=false, const PeakMap &spectra=PeakMap())
Mapping method for consensus maps.
 
void annotate(AnnotatedMSRun &map, const PeptideIdentificationList &peptide_ids, const std::vector< ProteinIdentification > &protein_ids, const bool clear_ids=false, const bool map_ms1=false)
Mapping method for peak maps.
 
bool isMatch_(const double rt_distance, const double mz_theoretical, const double mz_observed) const
check if distance constraint is fulfilled (using rt_tolerance_, mz_tolerance_ and measure_)
 
IDMapper & operator=(const IDMapper &rhs)
Assignment.
 
double mz_tolerance_
Allowed m/z deviation.
Definition: IDMapper.h:220
 
void checkHits_(const PeptideIdentificationList &ids) const
helper function that checks if all peptide hits are annotated with RT and MZ meta values
 
IDMapper()
Default constructor.
 
std::vector< Size > no_precursors
Definition: IDMapper.h:138
 
bool checkMassType_(const std::vector< DataProcessing > &processing) const
 
IDMapper(const IDMapper &cp)
Copy C'Tor.
 
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
 
bool ignore_charge_
Ignore charge states during matching?
Definition: IDMapper.h:224
 
std::vector< Size > identified
Definition: IDMapper.h:139
 
Measure
Definition: IDMapper.h:44
 
static PeptideIdentificationListState mapPrecursorsToIdentifications(const PeakMap &spectra, const PeptideIdentificationList &ids, double mz_tol=0.001, double rt_tol=0.001)
Mapping of peptide identifications to spectra This helper function partitions all spectra into those ...
Definition: IDMapper.h:158
 
double rt_tolerance_
Allowed RT deviation.
Definition: IDMapper.h:218
 
Result of a partitioning by identification state with mapPrecursorsToIdentifications().
Definition: IDMapper.h:137
 
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:49
 
Size size() const noexcept
The number of spectra.
 
The representation of a 1D spectrum.
Definition: MSSpectrum.h:44
 
Container for peptide identifications from multiple spectra.
Definition: PeptideIdentificationList.h:66
 
Represents the set of candidates (SpectrumMatches) identified for a single precursor spectrum.
Definition: PeptideIdentification.h:63
 
double getRT() const
returns the RT of the MS2 spectrum where the identification occurred
 
const std::vector< PeptideHit > & getHits() const
returns the peptide hits as const
 
double getMZ() const
returns the MZ of the MS2 spectrum
 
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
 
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
 
std::vector< Int > IntList
Vector of signed integers.
Definition: ListUtils.h:29
 
std::vector< double > DoubleList
Vector of double precision real types.
Definition: ListUtils.h:36
 
MSExperiment PeakMap
Two-dimensional map of raw data points or peaks.
Definition: StandardTypes.h:35
 
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19