76 template<
typename Arg>
79 return std::make_tuple(a.getScore(), a.getAccession()) > std::make_tuple(b.getScore(), b.getAccession());
87 template <
typename Arg>
90 return std::make_tuple(a.getScore(), a.getAccession()) < std::make_tuple(b.getScore(), b.getAccession());
250 for (
const auto& mod_pair : hit.getModifications())
Hash of a ProteinHit based on its accession only!
Definition ProteinHit.h:51
size_t operator()(const ProteinHit &p)
Definition ProteinHit.h:53
Definition ProteinHit.h:60
size_t operator()(const ProteinHit *p)
Definition ProteinHit.h:62
Lesser predicate for scores of hits.
Definition ProteinHit.h:85
bool operator()(const Arg &a, const Arg &b) const
Definition ProteinHit.h:88
Greater predicate for scores of hits.
Definition ProteinHit.h:74
bool operator()(const Arg &a, const Arg &b) const
Definition ProteinHit.h:77
Representation of a protein hit.
Definition ProteinHit.h:35
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
void setTargetDecoyType(TargetDecoyType type)
Sets the target/decoy type for this protein hit.
TargetDecoyType getTargetDecoyType() const
Returns the target/decoy type for this protein hit.
bool operator==(const ProteinHit &rhs) const
Equality operator.
void setSequence(const String &sequence)
sets the protein sequence
bool isDecoy() const
returns true if this is a decoy hit (false for TARGET and UNKNOWN)
String sequence_
the amino acid sequence of the protein hit
Definition ProteinHit.h:209
UInt rank_
the position(rank) where the hit appeared in the hit list
Definition ProteinHit.h:207
void setModifications(std::set< std::pair< Size, ResidueModification > > &mods)
sets the set of modified protein positions
void setSequence(String &&sequence)
ProteinHit()
Default constructor.
ProteinHit & operator=(ProteinHit &&)=default
Move assignment operator.
void setScore(const double score)
sets the score of the protein hit
bool operator!=(const ProteinHit &rhs) const
Inequality operator.
std::set< std::pair< Size, ResidueModification > > modifications_
modified positions in a protein
Definition ProteinHit.h:211
ProteinHit & operator=(const ProteinHit &)=default
Assignment operator.
void setRank(UInt newrank)
sets the rank
const String & getSequence() const
returns the protein sequence
const std::set< std::pair< Size, ResidueModification > > & getModifications() const
returns the set of modified protein positions
UInt getRank() const
returns the rank of the protein hit
ProteinHit(double score, UInt rank, String accession, String sequence)
Values constructor.
String accession_
the protein identifier
Definition ProteinHit.h:208
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:210
ProteinHit & operator=(const MetaInfoInterface &source)
Assignment for MetaInfo.
const String & getAccession() const
returns the accession of the protein
TargetDecoyType
Enum for target/decoy annotation.
Definition ProteinHit.h:39
String getDescription() const
returns the description of the protein
double score_
the score of the protein hit
Definition ProteinHit.h:206
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:45
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:64
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
@ UNKNOWN
ion mobility format not yet determined.
std::size_t hash_int(T value) noexcept
Hash for an integer type.
Definition HashUtils.h:107
void hash_combine(std::size_t &seed, std::size_t value) noexcept
Combine a hash value with additional data using golden ratio mixing.
Definition HashUtils.h:87
std::size_t hash_float(T value) noexcept
Hash for a floating point type (float or double).
Definition HashUtils.h:142
std::size_t fnv1a_hash_string(const std::string &s) noexcept
FNV-1a hash for a string.
Definition HashUtils.h:70
std::size_t operator()(const OpenMS::ProteinHit &hit) const noexcept
Definition ProteinHit.h:241