35 #ifndef OPENMS_METADATA_PROTEINHIT_H 36 #define OPENMS_METADATA_PROTEINHIT_H 61 class OPENMS_DLLAPI ScoreMore
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();
123 bool operator==(
const ProteinHit & rhs)
const;
126 bool operator!=(
const ProteinHit & rhs)
const;
133 float getScore()
const;
136 UInt getRank()
const;
139 const String & getSequence()
const;
142 const String & getAccession()
const;
145 double getCoverage()
const;
148 void setScore(
const double score);
151 void setRank(
UInt newrank);
154 void setSequence(
const String & sequence);
157 void setAccession(
const String & accession);
160 void setCoverage(
const double coverage);
175 #endif // OPENMS_METADATA_PROTEINHIT_H
A more convenient string class.
Definition: String.h:57
float score_
the score of the protein hit
Definition: ProteinHit.h:165
String sequence_
the amino acid sequence of the protein hit
Definition: ProteinHit.h:168
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:85
Lesser predicate for scores of hits.
Definition: ProteinHit.h:81
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double coverage_
coverage of the protein based upon the matched peptide sequences
Definition: ProteinHit.h:169
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:166
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:66
String accession_
the protein identifier
Definition: ProteinHit.h:167