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;
242 Int getCharge() const;
245 void setCharge(
Int charge);
259 double getScore() const;
262 void setScore(
double score);
265 void setAnalysisResults(
std::vector<PepXMLAnalysisResult> aresult);
268 void addAnalysisResults(const PepXMLAnalysisResult& aresult);
271 const
std::vector<PepXMLAnalysisResult>& getAnalysisResults() const;
274 UInt getRank() const;
277 void setRank(
UInt newrank);
280 std::vector<
PeptideHit::PeakAnnotation>& getPeakAnnotations();
281 const
std::vector<
PeptideHit::PeakAnnotation>& getPeakAnnotations() const;
285 void setPeakAnnotations(
std::vector<
PeptideHit::PeakAnnotation> frag_annotations);
290 std::set<
String> extractProteinAccessionsSet() const;
315 OPENMS_DLLAPI
std::ostream& operator<< (
std::ostream& stream, const
PeptideHit& hit);
double main_score
is higher score better ?
Definition: PeptideHit.h:180
A more convenient string class.
Definition: String.h:58
Lesser predicate for scores of hits.
Definition: PeptideHit.h:149
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
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
std::map< String, double > sub_scores
posterior probability for example
Definition: PeptideHit.h:181
Representation of a peptide/protein sequence.
Definition: AASequence.h:111
double mz
Definition: PeptideHit.h:87
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:163
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:129
bool higher_is_better
e.g. peptideprophet / interprophet
Definition: PeptideHit.h:179
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:153
String annotation
Definition: PeptideHit.h:85
String score_type
Definition: PeptideHit.h:178
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:96
Representation of a peptide hit.
Definition: PeptideHit.h:55
Representation of a peptide evidence.
Definition: PeptideEvidence.h:50
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:183
double intensity
Definition: PeptideHit.h:88
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:175
Lesser predicate for scores of hits.
Definition: PeptideHit.h:137
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:166
int charge
Definition: PeptideHit.h:86
Contains annotations of a peak.
Definition: PeptideHit.h:83
int Int
Signed integer type.
Definition: Types.h:102
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:141