19#ifndef MS_SPECTRAL_LIB_PEAK
20#define MS_SPECTRAL_LIB_PEAK
29namespace matrix_science {
40 namespace ms_spectral_lib {
68 const double intensity,
69 const std::string & annotation,
87 double getIntensity()
const;
96 void clearAnnotation();
99 double getDelta()
const;
102 bool isMatchedToCalculatedPeak()
const;
105 bool isSuspectAssignment()
const;
108 bool getConsensusData(
int * numerator,
int * denominator,
double * medianDeviation)
const;
114 bool isValid()
const;
125 std::string intensityText_;
126 std::string annotation_;
129 bool consensusDataAvailable_;
130 int consensusNumerator_;
131 int consensusDenominator_;
132 double medianDeviationOfConsensusPeaks_;
All errors are collected in an instance of this class.
Definition: ms_errors.hpp:37
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
@ FORMAT_UNKNOWN
Unknown format.
Definition: ms_spectral_lib_peak.hpp:49
@ FORMAT_MGF
Mascot Generic Format. Only suitable for output.
Definition: ms_spectral_lib_peak.hpp:52
@ FORMAT_SPECTRAST
Institute for Systems Biology (ISB) SpectraST format.
Definition: ms_spectral_lib_peak.hpp:51
@ FORMAT_NIST_MSP
NIST MSP formt.
Definition: ms_spectral_lib_peak.hpp:50
@ FORMAT_XHUNTER
X!HUNTER ASL MGF file format (2007.06.01)
Definition: ms_spectral_lib_peak.hpp:53