88 double intensity = 0.;
98 if (charge != other.
charge || mz != other.
mz ||
105 if (annotations.empty()) {
return; }
108 stable_sort(annotations.begin(), annotations.end());
111 for (
auto& a : annotations)
114 if (&a != &annotations.back()) { annotation_string +=
"|"; }
124 class OPENMS_DLLAPI ScoreMore
128 template <
typename Arg>
131 return a.getScore() > b.getScore();
140 template <
typename Arg>
143 return a.getScore() < b.getScore();
152 template <
typename Arg>
155 return a.getRank() < b.getRank();
165 template <
typename Arg>
168 if (a.getSequence().toString() < b.getSequence().toString())
return true;
245 void setCharge(
Int charge);
259 double getScore() const;
262 void setScore(
double score);
290 std::set<
String> extractProteinAccessionsSet() const;
315 OPENMS_DLLAPI std::ostream& operator<< (std::ostream& stream, const
PeptideHit& hit);
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
Representation of a peptide evidence.
Definition: PeptideEvidence.h:51
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:176
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:183
String score_type
Definition: PeptideHit.h:178
bool higher_is_better
e.g. peptideprophet / interprophet
Definition: PeptideHit.h:179
std::map< String, double > sub_scores
posterior probability for example
Definition: PeptideHit.h:181
double main_score
is higher score better ?
Definition: PeptideHit.h:180
Lesser predicate for scores of hits.
Definition: PeptideHit.h:150
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:153
Lesser predicate for scores of hits.
Definition: PeptideHit.h:138
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:141
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:129
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:164
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:166
Representation of a peptide hit.
Definition: PeptideHit.h:57
PeptideHit(PeptideHit &&) noexcept
Move constructor.
PeptideHit(double score, UInt rank, Int charge, const AASequence &sequence)
Values constructor that copies sequence.
PeptideHit()
Default constructor.
PeptideHit(const PeptideHit &source)
Copy constructor.
PeptideHit(double score, UInt rank, Int charge, AASequence &&sequence)
Values constructor that moves sequence R-value.
A more convenient string class.
Definition: String.h:60
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
int Int
Signed integer type.
Definition: Types.h:102
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:48
Contains annotations of a peak.
Definition: PeptideHit.h:84
double intensity
Definition: PeptideHit.h:88
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:96
double mz
Definition: PeptideHit.h:87
String annotation
Definition: PeptideHit.h:85
int charge
Definition: PeptideHit.h:86
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:90
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:103