91 double intensity = 0.;
109 template <
typename Arg>
112 return a.getScore() > b.getScore();
121 template <
typename Arg>
124 return a.getScore() < b.getScore();
133 template <
typename Arg>
136 return a.getRank() < b.getRank();
165 std::size_t seed = std::hash<AASequence>{}(hit.getSequence());
181 return a.getSequence() == b.getSequence() && a.getCharge() == b.getCharge();
190 template <
typename Arg>
193 if (a.getSequence().toString() < b.getSequence().toString())
return true;
204 bool higher_is_better{};
270 void setCharge(
Int charge);
284 double getScore() const;
287 void setScore(
double score);
317 bool isDecoy() const;
393 struct hash<
OpenMS::PeptideHit::PeakAnnotation>
429 std::size_t seed = std::hash<OpenMS::MetaInfoInterface>{}(hit);
444 for (
const auto& pe : hit.getPeptideEvidences())
450 for (
const auto& fa : hit.getPeakAnnotations())
Representation of a peptide/protein sequence.
Definition AASequence.h:88
Representation of a peptide evidence.
Definition PeptideEvidence.h:28
Analysis Result (containing search engine / prophet results)
Definition PeptideHit.h:201
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition PeptideHit.h:208
String score_type
Definition PeptideHit.h:203
bool higher_is_better
e.g. peptideprophet / interprophet
Definition PeptideHit.h:204
std::map< String, double > sub_scores
posterior probability for example
Definition PeptideHit.h:206
double main_score
is higher score better ?
Definition PeptideHit.h:205
Lesser predicate for scores of hits.
Definition PeptideHit.h:131
bool operator()(const Arg &a, const Arg &b)
Definition PeptideHit.h:134
Lesser predicate for scores of hits.
Definition PeptideHit.h:119
bool operator()(const Arg &a, const Arg &b)
Definition PeptideHit.h:122
Greater predicate for scores of hits.
Definition PeptideHit.h:107
bool operator()(const Arg &a, const Arg &b)
Definition PeptideHit.h:110
Equality functor for PeptideHit based on sequence and charge.
Definition PeptideHit.h:177
bool operator()(const PeptideHit &a, const PeptideHit &b) const noexcept
Definition PeptideHit.h:179
Hash functor for PeptideHit based on sequence and charge.
Definition PeptideHit.h:161
std::size_t operator()(const PeptideHit &hit) const noexcept
Definition PeptideHit.h:163
Lesser predicate for (modified) sequence of hits.
Definition PeptideHit.h:189
bool operator()(const Arg &a, const Arg &b)
Definition PeptideHit.h:191
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition PeptideHit.h:52
PeptideHit(PeptideHit &&) noexcept
Move constructor.
size_t getNumberOfAnalysisResultsFromMetaValues_() const
Get the number of analysis results stored as meta values (only for pepXML results)
PeptideHit(double score, UInt rank, Int charge, const AASequence &sequence)
Values constructor that copies sequence.
PeptideHit()
Default constructor.
std::vector< PeptideEvidence > peptide_evidences_
information on the potential peptides observed through this PSM.
Definition PeptideHit.h:364
PeptideHit(const PeptideHit &source)
Copy constructor.
std::vector< PeptideHit::PeakAnnotation > fragment_annotations_
annotations of fragments in the corresponding spectrum
Definition PeptideHit.h:367
PeptideHit(double score, UInt rank, Int charge, AASequence &&sequence)
Values constructor that moves sequence R-value.
std::vector< PepXMLAnalysisResult > extractAnalysisResultsFromMetaValues_() const
Extract analysis results from meta values (only for pepXML results)
TargetDecoyType
Enum for target/decoy annotation.
Definition PeptideHit.h:56
A more convenient string class.
Definition String.h:34
int Int
Signed integer type.
Definition Types.h:72
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
Contains annotations of a peak.
Definition PeptideHit.h:87
bool operator==(const PeptideHit::PeakAnnotation &other) const
bool operator<(const PeptideHit::PeakAnnotation &other) const
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
std::size_t operator()(const OpenMS::PeptideHit &hit) const noexcept
Definition PeptideHit.h:426
std::size_t operator()(const OpenMS::PeptideHit::PeakAnnotation &pa) const noexcept
Definition PeptideHit.h:395