|
OpenMS
2.6.0
|
Go to the documentation of this file.
88 double intensity = 0.;
97 else if (mz > other.
mz)
102 if (charge < other.
charge)
106 else if (charge > other.
charge)
134 if (charge != other.
charge || mz != other.
mz ||
141 if (annotations.empty()) {
return; }
144 stable_sort(annotations.begin(), annotations.end());
147 for (
auto& a : annotations)
150 if (&a != &annotations.back()) { annotation_string +=
"|"; }
160 class OPENMS_DLLAPI ScoreMore
164 template <
typename Arg>
167 return a.getScore() > b.getScore();
176 template <
typename Arg>
179 return a.getScore() < b.getScore();
188 template <
typename Arg>
191 return a.getRank() < b.getRank();
201 template <
typename Arg>
204 if (a.getSequence().toString() < b.getSequence().toString())
return true;
275 Int getCharge() const;
278 void setCharge(
Int charge);
284 void setPeptideEvidences(const std::vector<
PeptideEvidence>& peptide_evidences);
286 void setPeptideEvidences(std::vector<
PeptideEvidence>&& peptide_evidences);
292 double getScore() const;
295 void setScore(
double score);
298 void setAnalysisResults(std::vector<PepXMLAnalysisResult> aresult);
301 void addAnalysisResults(PepXMLAnalysisResult aresult);
304 const std::vector<PepXMLAnalysisResult>& getAnalysisResults() const;
307 UInt getRank() const;
310 void setRank(
UInt newrank);
313 std::vector<
PeptideHit::PeakAnnotation> getPeakAnnotations() const;
316 void setPeakAnnotations(std::vector<
PeptideHit::PeakAnnotation> frag_annotations);
321 std::set<
String> extractProteinAccessionsSet() const;
346 OPENMS_DLLAPI std::ostream& operator<< (std::ostream& stream, const
PeptideHit& hit);
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:165
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:199
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:139
String score_type
Definition: PeptideHit.h:214
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:211
A more convenient string class.
Definition: String.h:59
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:132
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:90
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
int charge
Definition: PeptideHit.h:86
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:189
String annotation
Definition: PeptideHit.h:85
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:219
Representation of a peptide evidence.
Definition: PeptideEvidence.h:50
Lesser predicate for scores of hits.
Definition: PeptideHit.h:185
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:202
double mz
Definition: PeptideHit.h:87
bool higher_is_better
Definition: PeptideHit.h:215
double intensity
Definition: PeptideHit.h:88
Lesser predicate for scores of hits.
Definition: PeptideHit.h:173
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:216
Representation of a peptide/protein sequence.
Definition: AASequence.h:111
Contains annotations of a peak.
Definition: PeptideHit.h:83
std::map< String, double > sub_scores
Definition: PeptideHit.h:217
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:177
Representation of a peptide hit.
Definition: PeptideHit.h:55