|
OpenMS
2.5.0
|
Go to the documentation of this file.
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);
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);
300 void addAnalysisResults(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;
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:164
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:198
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:138
String score_type
Definition: PeptideHit.h:213
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:210
A more convenient string class.
Definition: String.h:58
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:131
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:89
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
int charge
Definition: PeptideHit.h:85
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:188
String annotation
Definition: PeptideHit.h:84
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:218
Representation of a peptide evidence.
Definition: PeptideEvidence.h:50
Lesser predicate for scores of hits.
Definition: PeptideHit.h:184
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:201
double mz
Definition: PeptideHit.h:86
bool higher_is_better
Definition: PeptideHit.h:214
double intensity
Definition: PeptideHit.h:87
Lesser predicate for scores of hits.
Definition: PeptideHit.h:172
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
double main_score
Definition: PeptideHit.h:215
Representation of a peptide/protein sequence.
Definition: AASequence.h:113
Contains annotations of a peak.
Definition: PeptideHit.h:82
std::map< String, double > sub_scores
Definition: PeptideHit.h:216
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:176
Representation of a peptide hit.
Definition: PeptideHit.h:54