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;
228 if (
this == &source)
return *
this;
275 Int getCharge()
const;
278 void setCharge(
Int charge);
281 const std::vector<PeptideEvidence>& getPeptideEvidences()
const;
284 void setPeptideEvidences(
const std::vector<PeptideEvidence>& peptide_evidences);
290 double getScore()
const;
293 void setScore(
double score);
296 void setAnalysisResults(std::vector<PepXMLAnalysisResult> aresult);
299 void addAnalysisResults(PepXMLAnalysisResult aresult);
302 const std::vector<PepXMLAnalysisResult>& getAnalysisResults()
const;
305 UInt getRank()
const;
308 void setRank(
UInt newrank);
311 std::vector<PeptideHit::PeakAnnotation> getPeakAnnotations()
const;
314 void setPeakAnnotations(std::vector<PeptideHit::PeakAnnotation> frag_annotations);
319 std::set<String> extractProteinAccessionsSet()
const;
double main_score
Definition: PeptideHit.h:215
A more convenient string class.
Definition: String.h:57
Lesser predicate for scores of hits.
Definition: PeptideHit.h:184
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
std::vector< PeptideHit::PeakAnnotation > fragment_annotations_
annotations of fragments in the corresponding spectrum
Definition: PeptideHit.h:340
UInt rank_
the position(rank) where the hit appeared in the hit list
Definition: PeptideHit.h:331
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:89
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:138
std::map< String, double > sub_scores
Definition: PeptideHit.h:216
Representation of a peptide/protein sequence.
Definition: AASequence.h:107
double mz
Definition: PeptideHit.h:86
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:198
std::vector< PepXMLAnalysisResult > * analysis_results_
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:328
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:164
bool higher_is_better
Definition: PeptideHit.h:214
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:188
String annotation
Definition: PeptideHit.h:84
String score_type
Definition: PeptideHit.h:213
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:131
Representation of a peptide hit.
Definition: PeptideHit.h:54
Representation of a peptide evidence.
Definition: PeptideEvidence.h:50
Int charge_
the charge of the peptide
Definition: PeptideHit.h:334
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:218
double intensity
Definition: PeptideHit.h:87
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:210
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
Lesser predicate for scores of hits.
Definition: PeptideHit.h:172
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:201
int charge
Definition: PeptideHit.h:85
double score_
the score of the peptide hit
Definition: PeptideHit.h:325
Contains annotations of a peak.
Definition: PeptideHit.h:82
int Int
Signed integer type.
Definition: Types.h:102
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:176
AASequence sequence_
Definition: PeptideHit.h:322
PepXMLAnalysisResult & operator=(const PepXMLAnalysisResult &source)
Definition: PeptideHit.h:226
std::vector< PeptideEvidence > peptide_evidences_
information on the potential peptides observed through this PSM.
Definition: PeptideHit.h:337