OpenMS
2.7.0
|
Representation of a ribonucleotide (modified or unmodified) More...
#include <OpenMS/CHEMISTRY/Ribonucleotide.h>
Public Types | |
enum | TermSpecificityNuc { ANYWHERE , FIVE_PRIME , THREE_PRIME , NUMBER_OF_TERM_SPECIFICITY } |
Public Member Functions | |
Constructors | |
Ribonucleotide (const String &name="unknown ribonucleotide", const String &code=".", const String &new_code="", const 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. More... | |
Ribonucleotide (const Ribonucleotide &ribo)=default | |
Copy constructor. More... | |
virtual | ~Ribonucleotide () |
Destructor. More... | |
Assignment | |
Ribonucleotide & | operator= (const Ribonucleotide &ribo)=default |
assignment operator More... | |
Friends | |
class | RibonucleotideDB |
Equality | |
std::ostream & | operator<< (std::ostream &os, const Ribonucleotide &ribo) |
ostream iterator to write the residue to a stream More... | |
static const EmpiricalFormula | default_baseloss_ |
Default value for sum formula after nucleobase loss. More... | |
String | name_ |
full name More... | |
String | code_ |
short name More... | |
String | new_code_ |
Modomics code. More... | |
String | html_code_ |
RNAMods code. More... | |
EmpiricalFormula | formula_ |
sum formula More... | |
char | origin_ |
character of unmodified version of ribonucleotide More... | |
double | mono_mass_ |
monoisotopic mass More... | |
double | avg_mass_ |
average mass More... | |
enum TermSpecificityNuc | term_spec_ |
terminal specificity More... | |
EmpiricalFormula | baseloss_formula_ |
sum formula after loss of the nucleobase More... | |
bool | operator== (const Ribonucleotide &ribonucleotide) const |
Equality operator. More... | |
const String | getCode () const |
Return the short name. More... | |
void | setCode (const String &code) |
Set the short name. More... | |
const String | getName () const |
Get the name of the ribonucleotide. More... | |
void | setName (const String &name) |
Set the name of the ribonucleotide. More... | |
const EmpiricalFormula | getFormula () const |
Get formula for the ribonucleotide. More... | |
void | setFormula (const EmpiricalFormula &formula) |
Set the empirical formula for the ribonucleotide. More... | |
double | getMonoMass () const |
Get the monoisotopic mass of the ribonucleotide. More... | |
void | setMonoMass (double mono_mass) |
Set the monoisotopic mass of the ribonucleotide. More... | |
double | getAvgMass () const |
Set the average mass of the ribonucleotide. More... | |
void | setAvgMass (double avg_mass) |
Get the average mass of the ribonucleotide. More... | |
const String | getNewCode () const |
Get the "new" (Modomics) code. More... | |
void | setNewCode (const String &new_code) |
Set the "new" (Modomics) code. More... | |
char | getOrigin () const |
Get the code of the unmodified base (e.g., "A", "C", ...) More... | |
void | setOrigin (char origin) |
Set the code of the unmodified base (e.g., "A", "C", ...) More... | |
String | getHTMLCode () const |
Set the HTML (RNAMods) code. More... | |
void | setHTMLCode (const String &html_code) |
Get the HTML (RNAMods) code. More... | |
enum TermSpecificityNuc | getTermSpecificity () const |
Get the terminal specificity. More... | |
void | setTermSpecificity (enum TermSpecificityNuc term_spec) |
Set the terminal specificity. More... | |
const EmpiricalFormula | getBaselossFormula () const |
Get sum formula after loss of the nucleobase. More... | |
void | setBaselossFormula (const EmpiricalFormula &formula) |
Set the sum formula after loss of the nucleobase. More... | |
bool | isModified () const |
Return true if this is a modified ribonucleotide and false otherwise. More... | |
bool | isAmbiguous () const |
Return whether this is an "ambiguous" modification (representing isobaric modifications on the base/ribose) More... | |
Representation of a ribonucleotide (modified or unmodified)
The available information is based on the Modomics database (http://modomics.genesilico.pl/modifications/).
enum TermSpecificityNuc |
Ribonucleotide | ( | const String & | name = "unknown ribonucleotide" , |
const String & | code = "." , |
||
const String & | new_code = "" , |
||
const 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.
|
default |
Copy constructor.
|
virtual |
Destructor.
double getAvgMass | ( | ) | const |
Set the average mass of the ribonucleotide.
const EmpiricalFormula getBaselossFormula | ( | ) | const |
Get sum formula after loss of the nucleobase.
const String getCode | ( | ) | const |
Return the short name.
Accessors
const EmpiricalFormula getFormula | ( | ) | const |
Get formula for the ribonucleotide.
String getHTMLCode | ( | ) | const |
Set the HTML (RNAMods) code.
double getMonoMass | ( | ) | const |
Get the monoisotopic mass of the ribonucleotide.
const String getName | ( | ) | const |
Get the name of the ribonucleotide.
const String getNewCode | ( | ) | const |
Get the "new" (Modomics) code.
char getOrigin | ( | ) | const |
Get the code of the unmodified base (e.g., "A", "C", ...)
enum TermSpecificityNuc getTermSpecificity | ( | ) | const |
Get the terminal specificity.
bool isAmbiguous | ( | ) | const |
Return whether this is an "ambiguous" modification (representing isobaric modifications on the base/ribose)
Referenced by NucleicAcidSearchEngine::getModifications_().
bool isModified | ( | ) | const |
Return true if this is a modified ribonucleotide and false otherwise.
|
default |
assignment operator
bool operator== | ( | const Ribonucleotide & | ribonucleotide | ) | const |
Equality operator.
void setAvgMass | ( | double | avg_mass | ) |
Get the average mass of the ribonucleotide.
void setBaselossFormula | ( | const EmpiricalFormula & | formula | ) |
Set the sum formula after loss of the nucleobase.
void setCode | ( | const String & | code | ) |
Set the short name.
void setFormula | ( | const EmpiricalFormula & | formula | ) |
Set the empirical formula for the ribonucleotide.
void setHTMLCode | ( | const String & | html_code | ) |
Get the HTML (RNAMods) code.
void setMonoMass | ( | double | mono_mass | ) |
Set the monoisotopic mass of the ribonucleotide.
void setName | ( | const String & | name | ) |
Set the name of the ribonucleotide.
void setNewCode | ( | const String & | new_code | ) |
Set the "new" (Modomics) code.
void setOrigin | ( | char | origin | ) |
Set the code of the unmodified base (e.g., "A", "C", ...)
void setTermSpecificity | ( | enum TermSpecificityNuc | term_spec | ) |
Set the terminal specificity.
|
friend |
ostream iterator to write the residue to a stream
|
friend |
|
protected |
average mass
|
protected |
sum formula after loss of the nucleobase
|
protected |
short name
|
staticprotected |
Default value for sum formula after nucleobase loss.
|
protected |
sum formula
|
protected |
RNAMods code.
|
protected |
monoisotopic mass
|
protected |
full name
|
protected |
Modomics code.
|
protected |
character of unmodified version of ribonucleotide
|
protected |
terminal specificity