19#ifndef MS_SPECTRAL_LIB_ENTRY
20#define MS_SPECTRAL_LIB_ENTRY
29namespace matrix_science {
80 ANNOTATE_REPLACE_IF_ALL_EMPTY
107 const std::string get()
const;
110 std::string getLine(
const char * key)
const;
113 std::string getName()
const;
116 double getPrecursorMZ()
const;
119 int getCharge()
const;
122 std::string getSequence()
const;
125 std::string getComment()
const;
128 std::string getCommentField(
const char * fieldName)
const;
131 int getMods(std::vector<std::string> & names,
132 std::vector<int> & positions)
const;
135 int getMods(std::vector<std::string> & names,
136 std::vector<int> & positions,
137 bool & anyModfileStyleName,
138 std::string & modsWithoutSpecificities)
const;
141 int getNumPeaks()
const;
144 double getMW()
const;
147 std::vector<std::string> getPeakList(
bool convertToNISTformat =
false)
const;
153 std::string getPeakListChecksum()
const;
156 std::string getFileName()
const;
159 bool annotatePeaks(
const WHAT_TO_ANNOTATE whatToAnnotate,
const double fragmentToleranceValue,
const std::string fragmentToleranceUnit,
const ms_umod_configfile * unimod = 0);
162 void clearAnnotation();
165 bool parseLines(
const std::vector<std::string> & lines);
167 bool parseXHunterLines(
const std::vector<std::string> & lines);
169 typedef std::map<std::string, std::string> values_t;
171 std::vector<std::string> originalLines_;
174 std::string fileName_;
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
This class is used to encapsulate a single entry, i.e. single spectrum from a NIST ....
Definition: ms_spectral_lib_entry.hpp:68
WHAT_TO_ANNOTATE
Used by annotatePeaks to specify if existing annotation should be overwritten.
Definition: ms_spectral_lib_entry.hpp:76
@ ANNOTATE_NONE
Don't perform any annotation.
Definition: ms_spectral_lib_entry.hpp:77
@ ANNOTATE_REPLACE_QUESTION_MARKS
Only annotate if ms_spectral_lib_peak_list::getPeakAnnotationLevel returns ms_spectral_lib_peak_list:...
Definition: ms_spectral_lib_entry.hpp:79
@ ANNOTATE_REPLACE_ALL
Replace all existing annotation.
Definition: ms_spectral_lib_entry.hpp:78
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
This class represents the file unimod.xml.
Definition: ms_umod_configfile.hpp:54
FILE_FORMAT
Definition: ms_spectral_lib_peak.hpp:48