62 double intensity = 0.;
72 if (charge != other.
charge || mz != other.
mz ||
79 if (annotations.empty()) {
return; }
82 stable_sort(annotations.begin(), annotations.end());
85 for (
auto& a : annotations)
88 if (&a != &annotations.back()) { annotation_string +=
"|"; }
98 class OPENMS_DLLAPI ScoreMore
102 template <
typename Arg>
105 return a.getScore() > b.getScore();
114 template <
typename Arg>
117 return a.getScore() < b.getScore();
126 template <
typename Arg>
129 return a.getRank() < b.getRank();
139 template <
typename Arg>
142 if (a.getSequence().toString() < b.getSequence().toString())
return true;
153 bool higher_is_better{};
219 void setCharge(
Int charge);
233 double getScore() const;
236 void setScore(
double score);
264 std::set<
String> extractProteinAccessionsSet() const;
Representation of a peptide/protein sequence.
Definition: AASequence.h:86
Representation of a peptide evidence.
Definition: PeptideEvidence.h:25
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:150
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:157
String score_type
Definition: PeptideHit.h:152
bool higher_is_better
e.g. peptideprophet / interprophet
Definition: PeptideHit.h:153
std::map< String, double > sub_scores
posterior probability for example
Definition: PeptideHit.h:155
double main_score
is higher score better ?
Definition: PeptideHit.h:154
Lesser predicate for scores of hits.
Definition: PeptideHit.h:124
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:127
Lesser predicate for scores of hits.
Definition: PeptideHit.h:112
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:115
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:103
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:138
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:140
Representation of a peptide hit.
Definition: PeptideHit.h:31
PeptideHit(PeptideHit &&) noexcept
Move constructor.
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:282
PeptideHit(const PeptideHit &source)
Copy constructor.
std::vector< PeptideHit::PeakAnnotation > fragment_annotations_
annotations of fragments in the corresponding spectrum
Definition: PeptideHit.h:285
std::vector< PepXMLAnalysisResult > * analysis_results_
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:273
PeptideHit(double score, UInt rank, Int charge, AASequence &&sequence)
Values constructor that moves sequence R-value.
A more convenient string class.
Definition: String.h:34
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
int Int
Signed integer type.
Definition: Types.h:76
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)
Contains annotations of a peak.
Definition: PeptideHit.h:58
double intensity
Definition: PeptideHit.h:62
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:70
double mz
Definition: PeptideHit.h:61
String annotation
Definition: PeptideHit.h:59
int charge
Definition: PeptideHit.h:60
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:64
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:77