87 double intensity = 0.;
96 else if (mz > other.
mz)
101 if (charge < other.
charge)
105 else if (charge > other.
charge)
133 if (charge != other.
charge || mz != other.
mz ||
140 if (annotations.empty()) {
return; }
143 stable_sort(annotations.begin(), annotations.end());
146 for (
auto& a : annotations)
149 if (&a != &annotations.back()) { annotation_string +=
"|"; }
159 class OPENMS_DLLAPI ScoreMore
163 template <
typename Arg>
166 return a.getScore() > b.getScore();
175 template <
typename Arg>
178 return a.getScore() < b.getScore();
187 template <
typename Arg>
190 return a.getRank() < b.getRank();
200 template <
typename Arg>
203 if (a.getSequence().toString() < b.getSequence().toString())
return true;
274 Int getCharge()
const;
277 void setCharge(
Int charge);
280 const std::vector<PeptideEvidence>& getPeptideEvidences()
const;
283 void setPeptideEvidences(
const std::vector<PeptideEvidence>& peptide_evidences);
285 void setPeptideEvidences(std::vector<PeptideEvidence>&& peptide_evidences);
291 double getScore()
const;
294 void setScore(
double score);
297 void setAnalysisResults(std::vector<PepXMLAnalysisResult> aresult);
303 const std::vector<PepXMLAnalysisResult>& getAnalysisResults()
const;
306 UInt getRank()
const;
309 void setRank(
UInt newrank);
312 std::vector<PeptideHit::PeakAnnotation> getPeakAnnotations()
const;
315 void setPeakAnnotations(std::vector<PeptideHit::PeakAnnotation> frag_annotations);
320 std::set<String> extractProteinAccessionsSet()
const;
double score_
the score of the peptide hit
Definition: PeptideHit.h:326
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:131
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
std::vector< PeptideHit::PeakAnnotation > fragment_annotations_
annotations of fragments in the corresponding spectrum
Definition: PeptideHit.h:341
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:138
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:210
std::map< String, double > sub_scores
Definition: PeptideHit.h:216
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:176
double intensity
Definition: PeptideHit.h:87
Int charge_
the charge of the peptide
Definition: PeptideHit.h:335
Representation of a peptide evidence.
Definition: PeptideEvidence.h:50
double mz
Definition: PeptideHit.h:86
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
bool higher_is_better
Definition: PeptideHit.h:214
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:201
Lesser predicate for scores of hits.
Definition: PeptideHit.h:184
Contains annotations of a peak.
Definition: PeptideHit.h:82
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:188
std::vector< PepXMLAnalysisResult > * analysis_results_
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:329
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
UInt rank_
the position(rank) where the hit appeared in the hit list
Definition: PeptideHit.h:332
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:89
String annotation
Definition: PeptideHit.h:84
AASequence sequence_
Definition: PeptideHit.h:323
int charge
Definition: PeptideHit.h:85
Representation of a peptide/protein sequence.
Definition: AASequence.h:113
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:164
Interface for classes that can store arbitrary meta information (Type-Name-Value tuples).
Definition: MetaInfoInterface.h:60
Lesser predicate for scores of hits.
Definition: PeptideHit.h:172
Representation of a peptide hit.
Definition: PeptideHit.h:54
A more convenient string class.
Definition: String.h:58
std::vector< PeptideEvidence > peptide_evidences_
information on the potential peptides observed through this PSM.
Definition: PeptideHit.h:338
double main_score
Definition: PeptideHit.h:215
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:198
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:218
String score_type
Definition: PeptideHit.h:213
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46