19#ifndef MS_SPECTRAL_LIB_PEAK_LIST
20#define MS_SPECTRAL_LIB_PEAK_LIST
30namespace matrix_science {
75 int getNumPeaks()
const;
81 void addPeaks(
const std::vector<double> &vecMz,
const std::vector<double> &vecIntensity);
84 void annotatePeaks(
const ms_fragmentvector *fragments,
const double fragmentToleranceValue,
const std::string fragmentToleranceUnit,
double precursorMz);
88 void annotatePeaks(
const std::vector<ms_fragment> *fragments,
const double fragmentToleranceValue,
const std::string fragmentToleranceUnit,
double precursorMz);
92 void clearAnnotation();
95 PEAK_ANNOTATION_LEVEL getPeakAnnotationLevel()
const;
101 std::string getChecksum()
const;
104 void setAnnotationLevel(PEAK_ANNOTATION_LEVEL level);
109 std::vector<ms_spectral_lib_peak> peakList_;
110 bool isConsensusSpectrum_;
111 PEAK_ANNOTATION_LEVEL annotationLevel_;
112 std::string checksum_;
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
Class for holding a list of ms_fragment objects.
Definition: ms_fragmentvector.hpp:47
This class is used to encapsulate a peak list from a single spectrum in a NIST .msp or a SpectraST ....
Definition: ms_spectral_lib_peak_list.hpp:39
PEAK_ANNOTATION_LEVEL
Amount of annotation as returned by getAnnotationLevel()
Definition: ms_spectral_lib_peak_list.hpp:49
@ ANNOT_LVL_QUESTION_MARKS
In Parser 2.6.0, when calling ms_spectral_lib_file::saveAs(), the resulting file adds "?...
Definition: ms_spectral_lib_peak_list.hpp:51
@ ANNOT_LVL_SOME_PEAKS
One or more peaks have annotation that is not just a "?".
Definition: ms_spectral_lib_peak_list.hpp:52
@ ANNOT_LVL_CANNOT_ANNOTATE
A call to ms_spectral_lib_entry::annotatePeaks() or ms_spectral_lib_peak_list::annotatePeaks() failed...
Definition: ms_spectral_lib_peak_list.hpp:53
@ ANNOT_LVL_NONE
None of the peaks have any annotation.
Definition: ms_spectral_lib_peak_list.hpp:50
This class is used to encapsulate a single fragment ion in a NIST .msp or a SpectraST ....
Definition: ms_spectral_lib_peak.hpp:59
FILE_FORMAT
Definition: ms_spectral_lib_peak.hpp:48