89 double intensity = 0.;
107 template <
typename Arg>
110 return a.getScore() > b.getScore();
119 template <
typename Arg>
122 return a.getScore() < b.getScore();
131 template <
typename Arg>
134 return a.getRank() < b.getRank();
144 template <
typename Arg>
147 if (a.getSequence().toString() < b.getSequence().toString())
return true;
158 bool higher_is_better{};
224 void setCharge(
Int charge);
238 double getScore() const;
241 void setScore(
double score);
271 bool isDecoy() const;
306 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:155
bool operator==(const PepXMLAnalysisResult &rhs) const
additional scores attached to the original, aggregated score
Definition: PeptideHit.h:162
String score_type
Definition: PeptideHit.h:157
bool higher_is_better
e.g. peptideprophet / interprophet
Definition: PeptideHit.h:158
std::map< String, double > sub_scores
posterior probability for example
Definition: PeptideHit.h:160
double main_score
is higher score better ?
Definition: PeptideHit.h:159
Lesser predicate for scores of hits.
Definition: PeptideHit.h:129
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:132
Lesser predicate for scores of hits.
Definition: PeptideHit.h:117
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:120
Greater predicate for scores of hits.
Definition: PeptideHit.h:105
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:108
Lesser predicate for (modified) sequence of hits.
Definition: PeptideHit.h:143
bool operator()(const Arg &a, const Arg &b)
Definition: PeptideHit.h:145
Represents a single spectrum match (candidate) for a specific tandem mass spectrum (MS/MS).
Definition: PeptideHit.h:50
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:318
PeptideHit(const PeptideHit &source)
Copy constructor.
std::vector< PeptideHit::PeakAnnotation > fragment_annotations_
annotations of fragments in the corresponding spectrum
Definition: PeptideHit.h:321
PeptideHit(double score, UInt rank, Int charge, AASequence &&sequence)
Values constructor that moves sequence R-value.
TargetDecoyType
Enum for target/decoy annotation.
Definition: PeptideHit.h:54
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:72
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
const std::string TARGET_DECOY
Definition: Constants.h:352
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:85
bool operator==(const PeptideHit::PeakAnnotation &other) const
bool operator<(const PeptideHit::PeakAnnotation &other) const
static void writePeakAnnotationsString_(String &annotation_string, std::vector< PeptideHit::PeakAnnotation > annotations)