80 double intensity = 0.;
90 if (charge != other.
charge || mz != other.
mz ||
97 if (annotations.empty()) {
return; }
100 stable_sort(annotations.begin(), annotations.end());
103 for (
auto& a : annotations)
106 if (&a != &annotations.back()) { annotation_string +=
"|"; }
116 class OPENMS_DLLAPI ScoreMore
120 template <
typename Arg>
123 return a.getScore() > b.getScore();
132 template <
typename Arg>
135 return a.getScore() < b.getScore();
144 template <
typename Arg>
147 return a.getRank() < b.getRank();
157 template <
typename Arg>
160 if (a.getSequence().toString() < b.getSequence().toString())
return true;
171 bool higher_is_better{};
237 void setCharge(
Int charge);
251 double getScore() const;
254 void setScore(
double score);
282 std::set<
String> extractProteinAccessionsSet() const;
Representation of a peptide/protein sequence.
Definition: AASequence.h:86
Representation of a peptide evidence.
Definition: PeptideEvidence.h:25
Analysis Result (containing search engine / prophet results)
Definition: PeptideHit.h:168
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:175
String score_type
Definition: PeptideHit.h:170
bool higher_is_better
e.g. peptideprophet / interprophet
Definition: PeptideHit.h:171
std::map< String, double > sub_scores
posterior probability for example
Definition: PeptideHit.h:173
double main_score
is higher score better ?
Definition: PeptideHit.h:172
Lesser predicate for scores of hits.
Definition: PeptideHit.h:142
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:145
Lesser predicate for scores of hits.
Definition: PeptideHit.h:130
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:133
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:121
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:156
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:158
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition: PeptideHit.h:49
PeptideHit(PeptideHit &&) noexcept
Move constructor.
size_t getNumberOfAnalysisResultsFromMetaValues_() const
Get the number of analysis results stored as meta values (only for pepXML results)
PeptideHit(double score, UInt rank, Int charge, const AASequence &sequence)
Values constructor that copies sequence.
std::vector< PepXMLAnalysisResult > extractAnalysisResultsFromMetaValues_() const
Extract analysis results from meta values (only for pepXML results)
PeptideHit()
Default constructor.
std::vector< PeptideEvidence > peptide_evidences_
information on the potential peptides observed through this PSM.
Definition: PeptideHit.h:297
PeptideHit(const PeptideHit &source)
Copy constructor.
std::vector< PeptideHit::PeakAnnotation > fragment_annotations_
annotations of fragments in the corresponding spectrum
Definition: PeptideHit.h:300
PeptideHit(double score, UInt rank, Int charge, AASequence &&sequence)
Values constructor that moves sequence R-value.
A more convenient string class.
Definition: String.h:34
String & quote(char q='"', QuotingMethod method = ESCAPE)
Wraps the string in quotation marks.
int Int
Signed integer type.
Definition: Types.h:72
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
Contains annotations of a peak.
Definition: PeptideHit.h:76
double intensity
Definition: PeptideHit.h:80
bool operator==(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:88
double mz
Definition: PeptideHit.h:79
String annotation
Definition: PeptideHit.h:77
int charge
Definition: PeptideHit.h:78
bool operator<(const PeptideHit::PeakAnnotation &other) const
Definition: PeptideHit.h:82
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)
Definition: PeptideHit.h:95