Representation of a peptide hit. More...
#include <OpenMS/METADATA/PeptideHit.h>
Classes | |
| class | ScoreLess |
| Lesser predicate for scores of hits. More... | |
| class | ScoreMore |
| Greater predicate for scores of hits. More... | |
Public Member Functions | |
| PeptideHit & | operator= (const PeptideHit &source) |
| assignment operator | |
| bool | operator== (const PeptideHit &rhs) const |
| Equality operator. | |
| bool | operator!= (const PeptideHit &rhs) const |
| Inequality operator. | |
Constructors and Destructor | |
| PeptideHit () | |
| default constructor | |
| PeptideHit (DoubleReal score, UInt rank, Int charge, const AASequence &sequence) | |
| values constructor | |
| PeptideHit (const PeptideHit &source) | |
| copy constructor | |
| virtual | ~PeptideHit () |
| destructor | |
Accessors | |
| DoubleReal | getScore () const |
| returns the score of the peptide hit | |
| UInt | getRank () const |
| returns the rank of the peptide hit | |
| const AASequence & | getSequence () const |
| returns the peptide sequence without trailing or following spaces | |
| Int | getCharge () const |
| returns the carge of the peptide | |
| const std::vector< String > & | getProteinAccessions () const |
| returns the corresponding protein accessions | |
| void | setProteinAccessions (const std::vector< String > &accessions) |
| sets the corresponding protein accessions | |
| void | setScore (DoubleReal score) |
| sets the score of the peptide hit | |
| void | setRank (UInt newrank) |
| sets the rank | |
| void | setSequence (const AASequence &sequence) |
| sets the peptide sequence | |
| void | setCharge (Int charge) |
| sets the charge of the peptide | |
| void | addProteinAccession (const String &accession) |
| adds an accession of a protein which contains this peptide hit | |
| void | setAABefore (char acid) |
| sets the amino acid before the sequence | |
| char | getAABefore () const |
| returns the amino acid before the sequence | |
| void | setAAAfter (char acid) |
| sets the amino acid after the sequence | |
| char | getAAAfter () const |
| returns the amino acid after the sequence | |
Protected Attributes | |
| DoubleReal | score_ |
| the score of the peptide hit | |
| UInt | rank_ |
| the position(rank) where the hit appeared in the hit list | |
| Int | charge_ |
| the charge of the peptide | |
| AASequence | sequence_ |
| the amino acid sequence of the peptide hit | |
| char | aa_before_ |
| Amino acid before the sequence. | |
| char | aa_after_ |
| Amino acid after the sequence. | |
| std::vector< String > | corresponding_protein_accessions_ |
| the accessions of the corresponding proteins | |
Representation of a peptide hit.
It contains the fields score, score_type, rank, and sequence.
| PeptideHit | ( | ) |
default constructor
| PeptideHit | ( | DoubleReal | score, | |
| UInt | rank, | |||
| Int | charge, | |||
| const AASequence & | sequence | |||
| ) |
values constructor
| PeptideHit | ( | const PeptideHit & | source | ) |
copy constructor
| virtual ~PeptideHit | ( | ) | [virtual] |
destructor
| void addProteinAccession | ( | const String & | accession | ) |
adds an accession of a protein which contains this peptide hit
Referenced by MRMFeatureFinderScoring::scorePeakgroups_().
| char getAAAfter | ( | ) | const |
returns the amino acid after the sequence
| char getAABefore | ( | ) | const |
returns the amino acid before the sequence
| Int getCharge | ( | ) | const |
returns the carge of the peptide
| const std::vector<String>& getProteinAccessions | ( | ) | const |
returns the corresponding protein accessions
| UInt getRank | ( | ) | const |
returns the rank of the peptide hit
| DoubleReal getScore | ( | ) | const |
returns the score of the peptide hit
| const AASequence& getSequence | ( | ) | const |
returns the peptide sequence without trailing or following spaces
| bool operator!= | ( | const PeptideHit & | rhs | ) | const |
Inequality operator.
| PeptideHit& operator= | ( | const PeptideHit & | source | ) |
assignment operator
| bool operator== | ( | const PeptideHit & | rhs | ) | const |
Equality operator.
| void setAAAfter | ( | char | acid | ) |
sets the amino acid after the sequence
Referenced by DBAdapter::loadSpectrum().
| void setAABefore | ( | char | acid | ) |
sets the amino acid before the sequence
Referenced by DBAdapter::loadSpectrum().
| void setCharge | ( | Int | charge | ) |
sets the charge of the peptide
Referenced by DBAdapter::loadSpectrum(), and MRMFeatureFinderScoring::scorePeakgroups_().
| void setProteinAccessions | ( | const std::vector< String > & | accessions | ) |
sets the corresponding protein accessions
| void setRank | ( | UInt | newrank | ) |
sets the rank
| void setScore | ( | DoubleReal | score | ) |
sets the score of the peptide hit
Referenced by DBAdapter::loadSpectrum(), and MRMFeatureFinderScoring::scorePeakgroups_().
| void setSequence | ( | const AASequence & | sequence | ) |
sets the peptide sequence
Referenced by DBAdapter::loadSpectrum(), and MRMFeatureFinderScoring::scorePeakgroups_().
char aa_after_ [protected] |
Amino acid after the sequence.
char aa_before_ [protected] |
Amino acid before the sequence.
std::vector<String> corresponding_protein_accessions_ [protected] |
the accessions of the corresponding proteins
DoubleReal score_ [protected] |
the score of the peptide hit
AASequence sequence_ [protected] |
the amino acid sequence of the peptide hit
| OpenMS / TOPP release 1.10.0 | Documentation generated on Thu Mar 7 2013 09:42:56 using doxygen 1.7.1 |