37 NUMBER_OF_TERM_SPECIFICITY
45 const std::string& code =
".",
46 const std::string& new_code =
"",
47 const std::string& html_code =
".",
50 double mono_mass = 0.0,
51 double avg_mass = 0.0,
195 std::size_t seed = 0;
Database of ribonucleotides (modified and unmodified)
Definition RibonucleotideDB.h:28
Representation of a ribonucleotide (modified or unmodified)
Definition Ribonucleotide.h:28
const EmpiricalFormula getBaselossFormula() const
Get sum formula after loss of the nucleobase.
double avg_mass_
average mass
Definition Ribonucleotide.h:164
const std::string getCode() const
Return the short name.
std::string code_
short name
Definition Ribonucleotide.h:158
enum TermSpecificityNuc term_spec_
terminal specificity
Definition Ribonucleotide.h:165
virtual ~Ribonucleotide()
Destructor.
void setNewCode(const std::string &new_code)
Set the "new" (Modomics) code.
void setAvgMass(double avg_mass)
Get the average mass of the ribonucleotide.
void setHTMLCode(const std::string &html_code)
Get the HTML (RNAMods) code.
Ribonucleotide(const Ribonucleotide &ribo)=default
Copy constructor.
std::string name_
full name
Definition Ribonucleotide.h:157
EmpiricalFormula baseloss_formula_
sum formula after loss of the nucleobase
Definition Ribonucleotide.h:166
bool isAmbiguous() const
Return whether this is an "ambiguous" modification (representing isobaric modifications on the base/r...
double mono_mass_
monoisotopic mass
Definition Ribonucleotide.h:163
bool isModified() const
Return true if this is a modified ribonucleotide and false otherwise.
void setMonoMass(double mono_mass)
Set the monoisotopic mass of the ribonucleotide.
TermSpecificityNuc
Definition Ribonucleotide.h:33
@ FIVE_PRIME
Definition Ribonucleotide.h:35
@ THREE_PRIME
Definition Ribonucleotide.h:36
@ ANYWHERE
Definition Ribonucleotide.h:34
const EmpiricalFormula getFormula() const
Get formula for the ribonucleotide.
Ribonucleotide & operator=(const Ribonucleotide &ribo)=default
assignment operator
const std::string getName() const
Get the name of the ribonucleotide.
std::string html_code_
RNAMods code.
Definition Ribonucleotide.h:160
char origin_
character of unmodified version of ribonucleotide
Definition Ribonucleotide.h:162
void setName(const std::string &name)
Set the name of the ribonucleotide.
static const EmpiricalFormula default_baseloss_
Default value for sum formula after nucleobase loss.
Definition Ribonucleotide.h:155
void setCode(const std::string &code)
Set the short name.
void setTermSpecificity(enum TermSpecificityNuc term_spec)
Set the terminal specificity.
enum TermSpecificityNuc getTermSpecificity() const
Get the terminal specificity.
char getOrigin() const
Get the code of the unmodified base (e.g., "A", "C", ...)
double getMonoMass() const
Get the monoisotopic mass of the ribonucleotide.
void setOrigin(char origin)
Set the code of the unmodified base (e.g., "A", "C", ...)
void setBaselossFormula(const EmpiricalFormula &formula)
Set the sum formula after loss of the nucleobase.
std::string new_code_
Modomics code.
Definition Ribonucleotide.h:159
Ribonucleotide(const std::string &name="unknown ribonucleotide", const std::string &code=".", const std::string &new_code="", const std::string &html_code=".", const EmpiricalFormula &formula=EmpiricalFormula(), char origin='.', double mono_mass=0.0, double avg_mass=0.0, enum TermSpecificityNuc term_spec=ANYWHERE, const EmpiricalFormula &baseloss_formula=default_baseloss_)
Constructor.
bool operator==(const Ribonucleotide &ribonucleotide) const
Equality operator.
std::string getHTMLCode() const
Set the HTML (RNAMods) code.
EmpiricalFormula formula_
sum formula
Definition Ribonucleotide.h:161
double getAvgMass() const
Set the average mass of the ribonucleotide.
friend std::ostream & operator<<(std::ostream &os, const Ribonucleotide &ribo)
ostream iterator to write the residue to a stream
void setFormula(const EmpiricalFormula &formula)
Set the empirical formula for the ribonucleotide.
const std::string getNewCode() const
Get the "new" (Modomics) code.
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_char(char c) noexcept
Hash for a character.
Definition HashUtils.h:119
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
std::size_t fnv1a_hash_string(const std::string &s) noexcept
FNV-1a hash for a string.
Definition HashUtils.h:70
std::size_t operator()(const OpenMS::Ribonucleotide &ribo) const noexcept
Definition Ribonucleotide.h:193