252 double fragment_mass_error,
253 bool fragment_mass_tolerance_unit_ppm,
256 double mz_lower_bound = 0.0);
274 double fragment_mass_error,
275 bool fragment_mass_tolerance_unit_ppm,
278 std::vector<PeptideHit::PeakAnnotation>& annotations,
279 double mz_lower_bound = 0.0);
300 double fragment_mass_error,
301 bool fragment_mass_tolerance_unit_ppm,
304 std::vector<PeptideHit::PeakAnnotation>* annotations = 0,
305 double mz_lower_bound = 0.0);
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Data model of MzTab files. Please see the official MzTab specification at https://code....
Definition MzTab.h:455
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
One library-search match record: the observed spectrum, the matching DB spectrum, the score,...
Definition MetaboliteSpectralMatching.h:51
void setObservedSpectrumIndex(const Size &)
Setter for the observed-spectrum index.
std::string getPrimaryIdentifier() const
Primary identifier of the matched metabolite. The .cpp populates this via the first available of: GNP...
void setObservedPrecursorRT(const double &)
Setter for the observed-side precursor RT (seconds)
std::string sum_formula_
Neutral chemical sum formula.
Definition MetaboliteSpectralMatching.h:165
double getObservedPrecursorRT() const
Retention time (seconds) at which the observed MS2 spectrum was acquired.
std::string smiles_string_
SMILES string.
Definition MetaboliteSpectralMatching.h:167
Int getFoundPrecursorCharge() const
Precursor charge recorded on the DB-side spectrum.
void setObservedSpectrumNativeID(const std::string &)
Setter for the observed-spectrum native id.
double getMatchingScore() const
Hyperscore (higher is better; 0 if fewer than three peaks matched — see MetaboliteSpectralMatching::c...
void setSumFormula(const std::string &)
Setter for the sum formula.
double getObservedCCS() const
Observed collision cross section (CCS) of the experimental precursor in Angstrom^2; -1....
std::string getObservedSpectrumNativeID() const
Native id (vendor-specific id) of the observed MS2 spectrum.
void setMatchingScore(const double &)
Setter for the hyperscore.
std::string getPrecursorAdduct() const
Adduct annotation recorded on the DB-side precursor (e.g. "[M+H]+")
Size getObservedSpectrumIndex() const
Index of the observed MS2 spectrum in the input PeakMap passed to MetaboliteSpectralMatching::run.
double getFoundPrecursorMass() const
Precursor mass (Da) recorded on the DB-side spectrum that matched.
void setSMILESString(const std::string &)
Setter for the SMILES string.
std::string secondary_id_
Secondary metabolite identifier.
Definition MetaboliteSpectralMatching.h:163
std::string inchi_string_
InChI string.
Definition MetaboliteSpectralMatching.h:166
void setCommonName(const std::string &)
Setter for the common name.
std::string common_name_
Trivial / common name.
Definition MetaboliteSpectralMatching.h:164
void setObservedCCS(const double &)
Setter for the observed CCS (Angstrom^2); use -1.0 to indicate "not available".
void setMatchingSpectrumIndex(const Size &)
Setter for the DB-spectrum index.
std::string observed_spectrum_native_id_
Native id (vendor-specific) of the observed spectrum.
Definition MetaboliteSpectralMatching.h:159
Size getMatchingSpectrumIndex() const
Index of the matching DB spectrum in the spectral-library PeakMap.
void setObservedPrecursorMass(const double &)
Setter for the observed-side precursor mass (Da)
~SpectralMatch()
Default destructor.
double matching_score_
Hyperscore (see MetaboliteSpectralMatching::computeHyperScore)
Definition MetaboliteSpectralMatching.h:156
std::string precursor_adduct_
DB-side precursor adduct annotation.
Definition MetaboliteSpectralMatching.h:168
double observed_precursor_rt_
Observed-side precursor RT (seconds)
Definition MetaboliteSpectralMatching.h:153
Size matching_spectrum_idx_
Index of the DB spectrum in the spectral-library PeakMap.
Definition MetaboliteSpectralMatching.h:158
double getObservedPrecursorMass() const
Precursor mass (Da) of the experimental MS2 spectrum being matched.
void setFoundPrecursorMass(const double &)
Setter for the DB-side precursor mass (Da)
double found_precursor_mass_
DB-side precursor mass (Da)
Definition MetaboliteSpectralMatching.h:154
void setFoundPrecursorCharge(const Int &)
Setter for the DB-side precursor charge.
Int found_precursor_charge_
DB-side precursor charge.
Definition MetaboliteSpectralMatching.h:155
double observed_precursor_mass_
Observed-side precursor mass (Da)
Definition MetaboliteSpectralMatching.h:152
std::string getSecondaryIdentifier() const
Secondary identifier of the matched metabolite. The .cpp populates this from the HMDB_ID meta value o...
std::string getSMILESString() const
SMILES string of the matched metabolite.
void setSecondaryIdentifier(const std::string &)
Setter for the secondary metabolite identifier.
void setPrimaryIdentifier(const std::string &)
Setter for the primary metabolite identifier.
SpectralMatch & operator=(const SpectralMatch &)
Assignment operator.
double getFoundCCS() const
CCS (Angstrom^2) of the matching DB-side spectrum; -1.0 if not available.
double observed_ccs_
Observed-side collision cross section (Angstrom^2); -1.0 if not available.
Definition MetaboliteSpectralMatching.h:170
SpectralMatch(const SpectralMatch &)
Copy constructor.
Size observed_spectrum_idx_
Index of the observed spectrum in the input PeakMap.
Definition MetaboliteSpectralMatching.h:157
SpectralMatch()
Default constructor (zero-initialised numeric fields, empty strings)
std::string getCommonName() const
Common (trivial) name of the matched metabolite.
void setInchiString(const std::string &)
Setter for the InChI string.
void setPrecursorAdduct(const std::string &)
Setter for the precursor adduct.
std::string getInchiString() const
InChI string of the matched metabolite.
void setFoundCCS(const double &)
Setter for the DB-side CCS (Angstrom^2); use -1.0 to indicate "not available".
std::string primary_id_
Primary metabolite identifier.
Definition MetaboliteSpectralMatching.h:162
double found_ccs_
DB-side collision cross section (Angstrom^2); -1.0 if not available.
Definition MetaboliteSpectralMatching.h:171
std::string getSumFormula() const
Chemical sum formula of the matched metabolite (neutral)
const std::vector< Precursor > & getPrecursors() const
returns a const reference to the precursors
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
struct OpenMS::SpectralMatchScoreComparator SpectralMatchScoreGreater
struct OpenMS::PrecursorMassComparator PrecursorMZLess
Strict-weak ordering on MSSpectrum by the first precursor's m/z (ascending). Convenient as a sort pre...
Definition MetaboliteSpectralMatching.h:28
Strict-weak ordering on SpectralMatch by hyperscore (descending — top-scoring match comes first when ...
Definition MetaboliteSpectralMatching.h:177