63 class OPENMS_DLLAPI ScoreMore
67 template <
typename Arg>
70 #pragma clang diagnostic push
71 #pragma clang diagnostic ignored "-Wfloat-equal"
72 if (a.getScore() != b.getScore())
73 #pragma clang diagnostic pop
75 return a.getScore() > b.getScore();
77 return a.getAccession() > b.getAccession();
86 template <
typename Arg>
89 #pragma clang diagnostic push
90 #pragma clang diagnostic ignored "-Wfloat-equal"
91 if (a.getScore() != b.getScore())
92 #pragma clang diagnostic pop
94 return a.getScore() < b.getScore();
96 return a.getAccession() < b.getAccession();
Hash of a ProteinHit based on its accession only!
Definition: ProteinHit.h:42
size_t operator()(const ProteinHit &p)
Definition: ProteinHit.h:44
Definition: ProteinHit.h:51
size_t operator()(const ProteinHit *p)
Definition: ProteinHit.h:53
Lesser predicate for scores of hits.
Definition: ProteinHit.h:84
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:87
bool operator()(const Arg &a, const Arg &b)
Definition: ProteinHit.h:68
Representation of a protein hit.
Definition: ProteinHit.h:34
double getScore() const
returns the score of the protein hit
double getCoverage() const
returns the coverage (in percent) of the protein hit based upon matched peptides
bool operator==(const ProteinHit &rhs) const
Equality operator.
void setSequence(const String &sequence)
sets the protein sequence
String sequence_
the amino acid sequence of the protein hit
Definition: ProteinHit.h:186
UInt rank_
the position(rank) where the hit appeared in the hit list
Definition: ProteinHit.h:184
void setModifications(std::set< std::pair< Size, ResidueModification > > &mods)
sets the set of modified protein positions
void setSequence(String &&sequence)
ProteinHit()
Default constructor.
void setScore(const double score)
sets the score of the protein hit
bool operator!=(const ProteinHit &rhs) const
Inequality operator.
const std::set< std::pair< Size, ResidueModification > > & getModifications() const
returns the set of modified protein positions
std::set< std::pair< Size, ResidueModification > > modifications_
modified positions in a protein
Definition: ProteinHit.h:188
void setRank(UInt newrank)
sets the rank
const String & getSequence() const
returns the protein sequence
UInt getRank() const
returns the rank of the protein hit
const String & getAccession() const
returns the accession of the protein
ProteinHit(double score, UInt rank, String accession, String sequence)
Values constructor.
String accession_
the protein identifier
Definition: ProteinHit.h:185
void setDescription(const String &description)
sets the description of the protein
void setAccession(const String &accession)
sets the accession of the protein
double coverage_
coverage of the protein based upon the matched peptide sequences
Definition: ProteinHit.h:187
ProteinHit & operator=(const MetaInfoInterface &source)
Assignment for MetaInfo.
ProteinHit & operator=(const ProteinHit &)=default
Assignment operator.
String getDescription() const
returns the description of the protein
double score_
the score of the protein hit
Definition: ProteinHit.h:183
ProteinHit & operator=(ProteinHit &&)=default
Move assignment operator.
void setCoverage(const double coverage)
sets the coverage (in percent) of the protein hit based upon matched peptides
static const double COVERAGE_UNKNOWN
Definition: ProteinHit.h:36
ProteinHit(ProteinHit &&)=default
Move constructor.
ProteinHit(const ProteinHit &)=default
Copy constructor.
A more convenient string class.
Definition: String.h:34
unsigned int UInt
Unsigned integer type.
Definition: Types.h:68
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)