36 #ifndef OPENMS_CHEMISTRY_RESIDUE_H 37 #define OPENMS_CHEMISTRY_RESIDUE_H 182 const String& three_letter_code,
183 const String& one_letter_code,
200 void setName(
const String& name);
204 const String& getName()
const;
207 void setShortName(
const String& short_name);
210 const String& getShortName()
const;
213 void setSynonyms(
const std::set<String>& synonyms);
216 void addSynonym(
const String& synonym);
219 const std::set<String>& getSynonyms()
const;
222 void setThreeLetterCode(
const String& three_letter_code);
225 const String& getThreeLetterCode()
const;
228 void setOneLetterCode(
const String& one_letter_code);
231 const String& getOneLetterCode()
const;
237 void setLossFormulas(
const std::vector<EmpiricalFormula>&);
243 void setNTermLossFormulas(
const std::vector<EmpiricalFormula>&);
246 const std::vector<EmpiricalFormula>& getLossFormulas()
const;
249 const std::vector<EmpiricalFormula>& getNTermLossFormulas()
const;
252 void setLossNames(
const std::vector<String>& name);
255 void setNTermLossNames(
const std::vector<String>& name);
258 void addLossName(
const String& name);
261 void addNTermLossName(
const String& name);
264 const std::vector<String>& getLossNames()
const;
267 const std::vector<String>& getNTermLossNames()
const;
276 void setAverageWeight(
double weight);
279 double getAverageWeight(
ResidueType res_type = Full)
const;
282 void setMonoWeight(
double weight);
285 double getMonoWeight(
ResidueType res_type = Full)
const;
294 const String& getModificationName()
const;
297 void setLowMassIons(
const std::vector<EmpiricalFormula>& low_mass_ions);
300 const std::vector<EmpiricalFormula>& getLowMassIons()
const;
303 void setResidueSets(
const std::set<String>& residues_sets);
306 void addResidueSet(
const String& residue_sets);
309 const std::set<String>& getResidueSets()
const;
315 bool hasNeutralLoss()
const;
319 bool hasNTermNeutralLosses()
const;
334 double getPka()
const;
337 double getPkb()
const;
340 double getPkc()
const;
343 double getPiValue()
const;
346 void setPka(
double value);
349 void setPkb(
double value);
352 void setPkc(
double value);
355 double getSideChainBasicity()
const;
358 void setSideChainBasicity(
double gb_sc);
361 double getBackboneBasicityLeft()
const;
364 void setBackboneBasicityLeft(
double gb_bb_l);
367 double getBackboneBasicityRight()
const;
370 void setBackboneBasicityRight(
double gb_bb_r);
373 bool isModified()
const;
376 bool isInResidueSet(
const String& residue_set);
380 friend OPENMS_DLLAPI std::ostream&
operator<<(std::ostream& os,
const Residue& residue);
445 OPENMS_DLLAPI std::ostream&
operator<<(std::ostream& os,
const Residue& residue);
Definition: Residue.h:150
Definition: Residue.h:154
std::vector< String > loss_names_
Definition: Residue.h:407
A more convenient string class.
Definition: String.h:57
std::vector< String > NTerm_loss_names_
Definition: Residue.h:411
double pkc_
Definition: Residue.h:429
static const EmpiricalFormula & getInternalToNTerm()
Definition: Residue.h:80
Definition: Residue.h:147
Definition: Residue.h:148
double gb_bb_r_
Definition: Residue.h:435
static const EmpiricalFormula & getInternalToFull()
Definition: Residue.h:74
Representation of a modification.
Definition: ResidueModification.h:77
Definition: Residue.h:149
static const EmpiricalFormula & getInternalToAIon()
Definition: Residue.h:92
static const EmpiricalFormula & getInternalToBIon()
Definition: Residue.h:100
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
double pka_
Definition: Residue.h:423
static const EmpiricalFormula & getInternalToXIon()
Definition: Residue.h:115
double gb_sc_
Definition: Residue.h:431
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Definition: Residue.h:158
Representation of a residue.
Definition: Residue.h:62
std::vector< EmpiricalFormula > loss_formulas_
Definition: Residue.h:409
double gb_bb_l_
Definition: Residue.h:433
double loss_mono_weight_
Definition: Residue.h:417
std::vector< EmpiricalFormula > low_mass_ions_
Definition: Residue.h:420
static const EmpiricalFormula & getInternalToCTerm()
Definition: Residue.h:86
static const EmpiricalFormula & getInternalToYIon()
Definition: Residue.h:123
Definition: Residue.h:155
void setModification(int location, int max_size, String modification, OpenMS::AASequence &aas)
helper function that sets a modification on a AASequence object
const ResidueModification * modification_
Definition: Residue.h:404
static const EmpiricalFormula & getInternalToZIon()
Definition: Residue.h:130
Definition: Residue.h:159
Definition: Residue.h:160
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
double average_weight_
Definition: Residue.h:399
String short_name_
Definition: Residue.h:387
Definition: Residue.h:153
Definition: Residue.h:162
EmpiricalFormula internal_formula_
Definition: Residue.h:397
double mono_weight_
Definition: Residue.h:401
Definition: Residue.h:156
String name_
Definition: Residue.h:385
String three_letter_code_
Definition: Residue.h:391
Definition: Residue.h:157
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
residue data base which holds residues
Definition: ResidueDB.h:61
ResidueType
Definition: Residue.h:144
Definition: Residue.h:161
double pkb_
Definition: Residue.h:426
Definition: Residue.h:151
std::set< String > synonyms_
Definition: Residue.h:389
EmpiricalFormula formula_
Definition: Residue.h:395
double loss_average_weight_
Definition: Residue.h:415
std::set< String > residue_sets_
Definition: Residue.h:438
std::vector< EmpiricalFormula > NTerm_loss_formulas_
Definition: Residue.h:413
String one_letter_code_
Definition: Residue.h:393
Definition: Residue.h:152
static const EmpiricalFormula & getInternalToCIon()
Definition: Residue.h:108