35 #ifndef OPENMS_METADATA_PROTEINHIT_H 36 #define OPENMS_METADATA_PROTEINHIT_H 66 template <
typename Arg>
69 #pragma clang diagnostic push 70 #pragma clang diagnostic ignored "-Wfloat-equal" 71 if (a.getScore() != b.getScore())
72 #pragma clang diagnostic pop
74 return a.getScore() > b.getScore();
76 return a.getAccession() > b.getAccession();
85 template <
typename Arg>
88 #pragma clang diagnostic push 89 #pragma clang diagnostic ignored "-Wfloat-equal" 90 if (a.getScore() != b.getScore())
91 #pragma clang diagnostic pop
93 return a.getScore() < b.getScore();
95 return a.getAccession() < b.getAccession();
134 float getScore()
const;
137 UInt getRank()
const;
140 const String & getSequence()
const;
143 const String & getAccession()
const;
146 String getDescription()
const;
149 double getCoverage()
const;
152 void setScore(
const double score);
155 void setRank(
UInt newrank);
158 void setSequence(
const String & sequence);
161 void setAccession(
const String & accession);
164 void setDescription(
const String & description);
167 void setCoverage(
const double coverage);
182 #endif // OPENMS_METADATA_PROTEINHIT_H static const double COVERAGE_UNKNOWN
Definition: ProteinHit.h:58
A more convenient string class.
Definition: String.h:57
float score_
the score of the protein hit
Definition: ProteinHit.h:172
String sequence_
the amino acid sequence of the protein hit
Definition: ProteinHit.h:175
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:86
unsigned int UInt
Unsigned integer type.
Definition: Types.h:95
Lesser predicate for scores of hits.
Definition: ProteinHit.h:82
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double coverage_
coverage of the protein based upon the matched peptide sequences
Definition: ProteinHit.h:176
Greater predicate for scores of hits.
Definition: ProteinHit.h:63
Representation of a protein hit.
Definition: ProteinHit.h:54
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:173
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:67
String accession_
the protein identifier
Definition: ProteinHit.h:174