27namespace msparser_internal {
28 class ms_modification_impl;
31namespace matrix_science {
34 class ms_umod_modification;
57 MOD_TYPE_______LAST = 9
79 typedef std::vector<double> ms_vectorDouble;
80 typedef std::vector< bool > ms_vectorBool;
149 void defaultValues();
160 std::string getClassification()
const;
166 void setMassFile(
const ms_masses* massFile);
172 void copyMassFile(
const ms_masses* massFile);
175 std::string getTitle()
const;
178 void setTitle(
const char* value);
181 int getModificationType()
const;
184 void setModificationType(
const int type);
187 bool isHidden()
const;
190 void setHidden(
const bool value);
193 bool inShortList()
const;
196 void setInShortList(
const bool value);
199 bool inLongList()
const;
202 void setInLongList(
const bool value);
205 bool inErrorTolerant()
const;
208 void setInErrorTolerant(
const bool value);
211 bool isSubstitution()
const;
214 double getDelta(
const MASS_TYPE massType)
const;
217 void setDelta(
const double massMono,
const double massAve);
220 ms_vectorDouble getNeutralLoss(
const MASS_TYPE massType)
const;
223 ms_vectorBool getNeutralLossRequired()
const;
229 void setNeutralLoss(
const ms_vectorDouble massMono,
const ms_vectorDouble massAve,
const ms_vectorBool required);
232 int getNumberOfModifiedResidues()
const;
235 char getModifiedResidue(
const int n)
const;
238 bool isResidueModified(
const char residue)
const;
241 double getResidueMass(
const MASS_TYPE massType,
const char residue)
const;
244 void clearModifiedResidues();
247 void appendModifiedResidue(
const char residue,
const double massMono,
const double massAve);
250 double getNTerminusMass(
const MASS_TYPE massType)
const;
253 void setNTerminusMass(
const double massMono,
const double massAve);
256 double getCTerminusMass(
const MASS_TYPE massType)
const;
259 void setCTerminusMass(
const double massMono,
const double massAve);
262 int getNumberOfIgnoreMasses()
const;
265 double getIgnoreMass(
const MASS_TYPE massType,
const int idx)
const;
268 void clearIgnoreMasses();
271 void appendIgnoreMass(
const double massMono,
const double massAve);
274 ms_vectorDouble getReqPepNeutralLoss(
const MASS_TYPE massType)
const;
277 void setReqPepNeutralLoss(
const ms_vectorDouble valuesMono,
const ms_vectorDouble valuesAve);
280 ms_vectorDouble getPepNeutralLoss(
const MASS_TYPE massType)
const;
283 void setPepNeutralLoss(
const ms_vectorDouble valuesMono,
const ms_vectorDouble valuesAve);
286 bool isGeneratedMonoLinker()
const;
289 bool isLoopLinker()
const;
292 std::string getCode()
const;
295 std::string getPairsWith()
const;
298 std::string getMonoLinkTitle()
const;
301 bool isCrossLinker()
const;
304 void setIsCrossLinker(
const bool value);
307 void setIsGeneratedMonoLinker(
const bool value);
310 void setIsLoopLinker(
const bool value);
313 int getPositionInUnimodAsNeutralLoss()
const;
316 void setPositionInUnimodAsNeutralLoss(
const int value);
319 void setCode(std::string code);
322 void setPairsWith(std::string pairsWith);
325 void setTitleSource(
const char *unimodName,
const char *specString);
327#ifdef SUPPRESS_MS_CUSTOMPROPERTY_INHERITANCE
328#include "suppress_ms_customproperty.hpp"
332 void setCustomProperty();
334 msparser_internal::ms_modification_impl * m_pImpl;
366 int getNumberOfModifications()
const;
369 void clearModifications();
378 const ms_modification * getModificationByNumber(
const int numMod)
const;
381 const ms_modification * getModificationByName(
const std::string &name)
const;
384 typedef std::vector<ms_modification* > mod_vector;
418 const unsigned int flags = ms_umod_configfile::MODFILE_FLAGS_ALL);
423 const bool fromSubstitutions =
false,
430 void defaultValues();
437 const unsigned int flags = ms_umod_configfile::MODFILE_FLAGS_ALL);
444 void setFileName(
const char* name);
447 std::string getFileName()
const;
456 void setMassFile(
const ms_masses* massFile);
462 bool isFromSubstitutions()
const;
465 void setFromSubstitutions(
const bool value);
474 void saveToString(std::string & modfileAsStr);
476 void saveToString(std::string & OUTPUT);
479 void sortModifications();
482 int getNumberOfModifications()
const;
485 void clearModifications();
491 const ms_modification * getModificationByNumber(
const int numMod)
const;
494 const ms_modification * getModificationByName(
const char* nameMod)
const;
497 bool updateModificationByNumber(
const int num,
const ms_modification mod);
500 bool updateModificationByName(
const char* name,
const ms_modification mod);
503 bool deleteModificationByNumber(
const int num);
506 bool deleteModificationByName(
const char* name);
511 void applyVisibility(
const ms_session *session);
513 typedef std::vector<ms_modification* > entries_vector;
514 entries_vector entries;
516 std::string filename_;
517 std::unique_ptr<ms_masses> m_massFile;
518 std::vector< std::string > comments_;
519 bool bFromSubstitutions_;
Settings required to make an HTTP connection to a Mascot server.
Definition: ms_connection_settings.hpp:54
The class is used as a base for property-containing classes, such as ms_mascotoptions.
Definition: ms_customproperty.hpp:91
This class is used as a base class for several Mascot Parser classes.
Definition: ms_errors.hpp:696
Reads and parses the masses file with residue and atom masses.
Definition: ms_masses.hpp:48
Use this class in order to read in the amino acid modification file.
Definition: ms_modfile.hpp:407
The class represents a single modification-entry in mod_file.
Definition: ms_modfile.hpp:134
General usage class for creating lists of modifications to be passed as parameters.
Definition: ms_modfile.hpp:339
Use this class to determine if a user is logged in and if they have 'permission' to perform tasks.
Definition: ms_security_session.hpp:123
This class represents the file unimod.xml.
Definition: ms_umod_configfile.hpp:54
Represents a modif object in unimod.xml.
Definition: ms_umod_modification.hpp:47
MOD_TYPES
Definition: ms_modfile.hpp:47
MASS_TYPE
All possible mass types.
Definition: ms_modfile.hpp:65
@ MOD_TYPE_N_TERM
Applies to the peptide N-terminus, independent of residue identity.
Definition: ms_modfile.hpp:49
@ MOD_TYPE_N_TERM_RESIDUE
Applies to a specific residue only when that residue is at N-terminus.
Definition: ms_modfile.hpp:53
@ MOD_TYPE_N_PROTEIN_RESIDUE
Applies to a specific residue only when that residue is at N-terminus of a protein.
Definition: ms_modfile.hpp:55
@ MOD_TYPE_N_PROTEIN
Applies to the protein N-terminus, independent of residue identity.
Definition: ms_modfile.hpp:51
@ MOD_TYPE_C_TERM
Applies to the peptide C-terminus, independent of residue identity.
Definition: ms_modfile.hpp:50
@ MOD_TYPE_C_PROTEIN_RESIDUE
Applies to a specific residue only when that residue is at C-terminus of a protein.
Definition: ms_modfile.hpp:56
@ MOD_TYPE_C_PROTEIN
Applies to the protein C-terminus, independent of residue identity.
Definition: ms_modfile.hpp:52
@ MOD_TYPE_C_TERM_RESIDUE
Applies to a specific residue only when that residue is at C-terminus.
Definition: ms_modfile.hpp:54
@ MOD_TYPE_RESIDUE
Applies to specific residues, independent of position within the peptide.
Definition: ms_modfile.hpp:48
@ MAX_VAR_MODS
The results file uses 1..9 and A..W (1..32).
Definition: ms_modfile.hpp:76
@ MASS_TYPE_MONO
monoisotopic mass index
Definition: ms_modfile.hpp:66
@ MASS_TYPE_AVE
average mass index
Definition: ms_modfile.hpp:67