OpenMS
Loading...
Searching...
No Matches
SpectrumAnnotator.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Mathias Walzer $
6// $Authors: Mathias Walzer $
7// --------------------------------------------------------------------------
8
9#pragma once
10
15
17
20
21#include <boost/regex.hpp>
22
23namespace OpenMS
24{
34 class OPENMS_DLLAPI SpectrumAnnotator :
36 {
37 public:
38
44
47
51
54
58
70 void annotateMatches(PeakSpectrum &spec, const PeptideHit& ph, const TheoreticalSpectrumGenerator& tg, const SpectrumAlignment& sa) const;
71
84
100 void addPeakAnnotationsToPeptideHit(PeptideHit& ph, const PeakSpectrum& spec, const TheoreticalSpectrumGenerator& tg, const SpectrumAlignment& sa, bool include_unmatched_peaks = false) const;
101
103 void updateMembers_() override;
104
106
107 protected:
116
117 static const boost::regex nt_regex_;
118 static const boost::regex ct_regex_;
119 static const boost::regex noloss_regex_;
120 static const boost::regex seriesposition_regex_;
121 };
122}
123
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition PeptideHit.h:52
Represents the set of candidates (SpectrumMatches) identified for a single precursor spectrum.
Definition PeptideIdentification.h:64
Aligns the peaks of two sorted spectra Method 1: Using a banded (width via 'tolerance' parameter) ali...
Definition SpectrumAlignment.h:43
Annotates spectra from identifications and theoretical spectra or identifications from spectra and th...
Definition SpectrumAnnotator.h:36
unsigned topNmatch_fragmenterrors_
Definition SpectrumAnnotator.h:113
void annotateMatches(PeakSpectrum &spec, const PeptideHit &ph, const TheoreticalSpectrumGenerator &tg, const SpectrumAlignment &sa) const
Adds ion match annotation to the spec input spectrum.
static const boost::regex noloss_regex_
Definition SpectrumAnnotator.h:119
bool fragmenterror_statistics_
Definition SpectrumAnnotator.h:114
SpectrumAnnotator(const SpectrumAnnotator &source)
copy constructor
bool basic_statistics_
Definition SpectrumAnnotator.h:108
void addPeakAnnotationsToPeptideHit(PeptideHit &ph, const PeakSpectrum &spec, const TheoreticalSpectrumGenerator &tg, const SpectrumAlignment &sa, bool include_unmatched_peaks=false) const
Adds peak annotations to the ph PeptideHit.
static const boost::regex seriesposition_regex_
Definition SpectrumAnnotator.h:120
void addIonMatchStatistics(PeptideIdentification &pi, MSSpectrum &spec, const TheoreticalSpectrumGenerator &tg, const SpectrumAlignment &sa) const
Adds ion match statistics to pi PeptideIdentifcation.
SpectrumAnnotator & operator=(const SpectrumAnnotator &tsg)
assignment operator
~SpectrumAnnotator() override
destructor
static const boost::regex nt_regex_
Definition SpectrumAnnotator.h:117
bool precursor_statistics_
Definition SpectrumAnnotator.h:112
void updateMembers_() override
overwrite
bool terminal_series_match_ratio_
Definition SpectrumAnnotator.h:115
bool max_series_
Definition SpectrumAnnotator.h:110
SpectrumAnnotator()
default constructor
bool list_of_ions_matched_
Definition SpectrumAnnotator.h:109
static const boost::regex ct_regex_
Definition SpectrumAnnotator.h:118
bool SN_statistics_
Definition SpectrumAnnotator.h:111
Generates theoretical spectra for peptides with various options.
Definition TheoreticalSpectrumGenerator.h:45
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19