65 template <
typename Arg>
68 #pragma clang diagnostic push 69 #pragma clang diagnostic ignored "-Wfloat-equal" 70 if (a.getScore() != b.getScore())
71 #pragma clang diagnostic pop
73 return a.getScore() > b.getScore();
75 return a.getAccession() > b.getAccession();
84 template <
typename Arg>
87 #pragma clang diagnostic push 88 #pragma clang diagnostic ignored "-Wfloat-equal" 89 if (a.getScore() != b.getScore())
90 #pragma clang diagnostic pop
92 return a.getScore() < b.getScore();
94 return a.getAccession() < b.getAccession();
133 float getScore()
const;
136 UInt getRank()
const;
139 const String & getSequence()
const;
142 const String & getAccession()
const;
145 String getDescription()
const;
148 double getCoverage()
const;
151 void setScore(
const double score);
154 void setRank(
UInt newrank);
157 void setSequence(
const String & sequence);
160 void setAccession(
const String & accession);
163 void setDescription(
const String & description);
166 void setCoverage(
const double coverage);
static const double COVERAGE_UNKNOWN
Definition: ProteinHit.h:57
A more convenient string class.
Definition: String.h:57
float score_
the score of the protein hit
Definition: ProteinHit.h:171
String sequence_
the amino acid sequence of the protein hit
Definition: ProteinHit.h:174
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:85
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Lesser predicate for scores of hits.
Definition: ProteinHit.h:81
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
double coverage_
coverage of the protein based upon the matched peptide sequences
Definition: ProteinHit.h:175
Greater predicate for scores of hits.
Definition: ProteinHit.h:62
Representation of a protein hit.
Definition: ProteinHit.h:53
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
UInt rank_
the position(rank) where the hit appeared in the hit list
Definition: ProteinHit.h:172
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:66
String accession_
the protein identifier
Definition: ProteinHit.h:173