![]() |
OpenMS
|
One library-search match record: the observed spectrum, the matching DB spectrum, the score, and the metabolite metadata copied from the hit. More...
#include <OpenMS/ANALYSIS/ID/MetaboliteSpectralMatching.h>
Public Member Functions | |
| SpectralMatch () | |
| Default constructor (zero-initialised numeric fields, empty strings) | |
| ~SpectralMatch () | |
| Default destructor. | |
| SpectralMatch (const SpectralMatch &) | |
| Copy constructor. | |
| SpectralMatch & | operator= (const SpectralMatch &) |
| Assignment operator. | |
| double | getObservedPrecursorMass () const |
| Precursor mass (Da) of the experimental MS2 spectrum being matched. | |
| void | setObservedPrecursorMass (const double &) |
| Setter for the observed-side precursor mass (Da) | |
| double | getObservedPrecursorRT () const |
| Retention time (seconds) at which the observed MS2 spectrum was acquired. | |
| void | setObservedPrecursorRT (const double &) |
| Setter for the observed-side precursor RT (seconds) | |
| double | getFoundPrecursorMass () const |
| Precursor mass (Da) recorded on the DB-side spectrum that matched. | |
| void | setFoundPrecursorMass (const double &) |
| Setter for the DB-side precursor mass (Da) | |
| Int | getFoundPrecursorCharge () const |
| Precursor charge recorded on the DB-side spectrum. | |
| void | setFoundPrecursorCharge (const Int &) |
| Setter for the DB-side precursor charge. | |
| double | getMatchingScore () const |
| Hyperscore (higher is better; 0 if fewer than three peaks matched — see MetaboliteSpectralMatching::computeHyperScore) | |
| void | setMatchingScore (const double &) |
| Setter for the hyperscore. | |
| Size | getObservedSpectrumIndex () const |
| Index of the observed MS2 spectrum in the input PeakMap passed to MetaboliteSpectralMatching::run. | |
| void | setObservedSpectrumIndex (const Size &) |
| Setter for the observed-spectrum index. | |
| Size | getMatchingSpectrumIndex () const |
| Index of the matching DB spectrum in the spectral-library PeakMap. | |
| void | setMatchingSpectrumIndex (const Size &) |
| Setter for the DB-spectrum index. | |
| std::string | getObservedSpectrumNativeID () const |
| Native id (vendor-specific id) of the observed MS2 spectrum. | |
| void | setObservedSpectrumNativeID (const std::string &) |
| Setter for the observed-spectrum native id. | |
| std::string | getPrimaryIdentifier () const |
Primary identifier of the matched metabolite. The .cpp populates this via the first available of: GNPS_Spectrum_ID, Massbank_Accession_ID, the metabolite-name meta value, or — as a last fallback — the DB spectrum's native id. | |
| void | setPrimaryIdentifier (const std::string &) |
| Setter for the primary metabolite identifier. | |
| std::string | getSecondaryIdentifier () const |
Secondary identifier of the matched metabolite. The .cpp populates this from the HMDB_ID meta value on the DB-side spectrum. | |
| void | setSecondaryIdentifier (const std::string &) |
| Setter for the secondary metabolite identifier. | |
| std::string | getCommonName () const |
| Common (trivial) name of the matched metabolite. | |
| void | setCommonName (const std::string &) |
| Setter for the common name. | |
| std::string | getSumFormula () const |
| Chemical sum formula of the matched metabolite (neutral) | |
| void | setSumFormula (const std::string &) |
| Setter for the sum formula. | |
| std::string | getInchiString () const |
| InChI string of the matched metabolite. | |
| void | setInchiString (const std::string &) |
| Setter for the InChI string. | |
| std::string | getSMILESString () const |
| SMILES string of the matched metabolite. | |
| void | setSMILESString (const std::string &) |
| Setter for the SMILES string. | |
| std::string | getPrecursorAdduct () const |
| Adduct annotation recorded on the DB-side precursor (e.g. "[M+H]+") | |
| void | setPrecursorAdduct (const std::string &) |
| Setter for the precursor adduct. | |
| double | getObservedCCS () const |
| Observed collision cross section (CCS) of the experimental precursor in Angstrom^2; -1.0 if not available. | |
| void | setObservedCCS (const double &) |
| Setter for the observed CCS (Angstrom^2); use -1.0 to indicate "not available". | |
| double | getFoundCCS () const |
| CCS (Angstrom^2) of the matching DB-side spectrum; -1.0 if not available. | |
| void | setFoundCCS (const double &) |
| Setter for the DB-side CCS (Angstrom^2); use -1.0 to indicate "not available". | |
Private Attributes | |
| double | observed_precursor_mass_ |
| Observed-side precursor mass (Da) | |
| double | observed_precursor_rt_ |
| Observed-side precursor RT (seconds) | |
| double | found_precursor_mass_ |
| DB-side precursor mass (Da) | |
| Int | found_precursor_charge_ |
| DB-side precursor charge. | |
| double | matching_score_ |
| Hyperscore (see MetaboliteSpectralMatching::computeHyperScore) | |
| Size | observed_spectrum_idx_ |
| Index of the observed spectrum in the input PeakMap. | |
| Size | matching_spectrum_idx_ |
| Index of the DB spectrum in the spectral-library PeakMap. | |
| std::string | observed_spectrum_native_id_ |
| Native id (vendor-specific) of the observed spectrum. | |
| std::string | primary_id_ |
| Primary metabolite identifier. | |
| std::string | secondary_id_ |
| Secondary metabolite identifier. | |
| std::string | common_name_ |
| Trivial / common name. | |
| std::string | sum_formula_ |
| Neutral chemical sum formula. | |
| std::string | inchi_string_ |
| InChI string. | |
| std::string | smiles_string_ |
| SMILES string. | |
| std::string | precursor_adduct_ |
| DB-side precursor adduct annotation. | |
| double | observed_ccs_ |
| Observed-side collision cross section (Angstrom^2); -1.0 if not available. | |
| double | found_ccs_ |
| DB-side collision cross section (Angstrom^2); -1.0 if not available. | |
One library-search match record: the observed spectrum, the matching DB spectrum, the score, and the metabolite metadata copied from the hit.
Used by MetaboliteSpectralMatching to accumulate all candidate matches before the top-N export step. The fields fall into three groups:
| SpectralMatch | ( | ) |
Default constructor (zero-initialised numeric fields, empty strings)
| ~SpectralMatch | ( | ) |
Default destructor.
| SpectralMatch | ( | const SpectralMatch & | ) |
Copy constructor.
| std::string getCommonName | ( | ) | const |
Common (trivial) name of the matched metabolite.
| double getFoundCCS | ( | ) | const |
CCS (Angstrom^2) of the matching DB-side spectrum; -1.0 if not available.
| double getFoundPrecursorMass | ( | ) | const |
Precursor mass (Da) recorded on the DB-side spectrum that matched.
| std::string getInchiString | ( | ) | const |
InChI string of the matched metabolite.
| double getMatchingScore | ( | ) | const |
Hyperscore (higher is better; 0 if fewer than three peaks matched — see MetaboliteSpectralMatching::computeHyperScore)
Referenced by SpectralMatchScoreComparator::operator()().
| Size getMatchingSpectrumIndex | ( | ) | const |
| double getObservedCCS | ( | ) | const |
Observed collision cross section (CCS) of the experimental precursor in Angstrom^2; -1.0 if not available.
| double getObservedPrecursorMass | ( | ) | const |
Precursor mass (Da) of the experimental MS2 spectrum being matched.
| double getObservedPrecursorRT | ( | ) | const |
Retention time (seconds) at which the observed MS2 spectrum was acquired.
| Size getObservedSpectrumIndex | ( | ) | const |
Index of the observed MS2 spectrum in the input PeakMap passed to MetaboliteSpectralMatching::run.
| std::string getObservedSpectrumNativeID | ( | ) | const |
Native id (vendor-specific id) of the observed MS2 spectrum.
| std::string getPrecursorAdduct | ( | ) | const |
Adduct annotation recorded on the DB-side precursor (e.g. "[M+H]+")
| std::string getPrimaryIdentifier | ( | ) | const |
Primary identifier of the matched metabolite. The .cpp populates this via the first available of: GNPS_Spectrum_ID, Massbank_Accession_ID, the metabolite-name meta value, or — as a last fallback — the DB spectrum's native id.
| std::string getSecondaryIdentifier | ( | ) | const |
Secondary identifier of the matched metabolite. The .cpp populates this from the HMDB_ID meta value on the DB-side spectrum.
| std::string getSMILESString | ( | ) | const |
SMILES string of the matched metabolite.
| std::string getSumFormula | ( | ) | const |
Chemical sum formula of the matched metabolite (neutral)
| SpectralMatch & operator= | ( | const SpectralMatch & | ) |
Assignment operator.
| void setCommonName | ( | const std::string & | ) |
Setter for the common name.
| void setFoundCCS | ( | const double & | ) |
Setter for the DB-side CCS (Angstrom^2); use -1.0 to indicate "not available".
| void setFoundPrecursorCharge | ( | const Int & | ) |
Setter for the DB-side precursor charge.
| void setFoundPrecursorMass | ( | const double & | ) |
Setter for the DB-side precursor mass (Da)
| void setInchiString | ( | const std::string & | ) |
Setter for the InChI string.
| void setMatchingScore | ( | const double & | ) |
Setter for the hyperscore.
| void setMatchingSpectrumIndex | ( | const Size & | ) |
Setter for the DB-spectrum index.
| void setObservedCCS | ( | const double & | ) |
Setter for the observed CCS (Angstrom^2); use -1.0 to indicate "not available".
| void setObservedPrecursorMass | ( | const double & | ) |
Setter for the observed-side precursor mass (Da)
| void setObservedPrecursorRT | ( | const double & | ) |
Setter for the observed-side precursor RT (seconds)
| void setObservedSpectrumIndex | ( | const Size & | ) |
Setter for the observed-spectrum index.
| void setObservedSpectrumNativeID | ( | const std::string & | ) |
Setter for the observed-spectrum native id.
| void setPrecursorAdduct | ( | const std::string & | ) |
Setter for the precursor adduct.
| void setPrimaryIdentifier | ( | const std::string & | ) |
Setter for the primary metabolite identifier.
| void setSecondaryIdentifier | ( | const std::string & | ) |
Setter for the secondary metabolite identifier.
| void setSMILESString | ( | const std::string & | ) |
Setter for the SMILES string.
| void setSumFormula | ( | const std::string & | ) |
Setter for the sum formula.
|
private |
Trivial / common name.
|
private |
DB-side collision cross section (Angstrom^2); -1.0 if not available.
|
private |
DB-side precursor charge.
|
private |
DB-side precursor mass (Da)
|
private |
InChI string.
|
private |
Hyperscore (see MetaboliteSpectralMatching::computeHyperScore)
|
private |
Observed-side collision cross section (Angstrom^2); -1.0 if not available.
|
private |
Observed-side precursor mass (Da)
|
private |
Observed-side precursor RT (seconds)
|
private |
Native id (vendor-specific) of the observed spectrum.
|
private |
DB-side precursor adduct annotation.
|
private |
Primary metabolite identifier.
|
private |
Secondary metabolite identifier.
|
private |
SMILES string.
|
private |
Neutral chemical sum formula.