35 #ifndef OPENMS_METADATA_PROTEINHIT_H
36 #define OPENMS_METADATA_PROTEINHIT_H
61 class OPENMS_DLLAPI ScoreMore
65 template <
typename Arg>
68 if (a.getScore() != b.getScore())
70 return a.getScore() > b.getScore();
72 return a.getAccession() > b.getAccession();
81 template <
typename Arg>
84 if (a.getScore() != b.getScore())
86 return a.getScore() < b.getScore();
88 return a.getAccession() < b.getAccession();
117 bool operator==(
const ProteinHit & rhs)
const;
120 bool operator!=(
const ProteinHit & rhs)
const;
127 Real getScore()
const;
130 UInt getRank()
const;
133 const String & getSequence()
const;
136 const String & getAccession()
const;
145 void setRank(
UInt newrank);
148 void setSequence(
const String & sequence);
151 void setAccession(
const String & accession);
169 #endif // OPENMS_METADATA_PROTEINHIT_H
float Real
Real type.
Definition: Types.h:109
A more convenient string class.
Definition: String.h:56
Real score_
the score of the protein hit
Definition: ProteinHit.h:159
String sequence_
the amino acid sequence of the protein hit
Definition: ProteinHit.h:162
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:82
Lesser predicate for scores of hits.
Definition: ProteinHit.h:78
DoubleReal coverage_
coverage of the protein based upon the matched peptide sequences
Definition: ProteinHit.h:163
Representation of a protein hit.
Definition: ProteinHit.h:54
UInt rank_
the position(rank) where the hit appeared in the hit list
Definition: ProteinHit.h:160
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:66
String accession_
the protein identifier
Definition: ProteinHit.h:161