77 return std::tie(charge, shift, mz, intensity) <
83 double mz_diff = fabs(mz - other.
mz);
84 double intensity_diff = fabs(intensity - other.
intensity);
85 return (charge == other.
charge && shift == other.
shift && mz_diff < 1e-6 && intensity_diff < 1e-6);
94 std::map<
Size, std::vector<FragmentAnnotationDetail_> > ion_annotation_details);
98 std::set<std::pair<String, double> > >& shifted_ions);
104 const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_y_ions,
105 const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_a_ions,
106 const std::vector<PeptideHit::PeakAnnotation>& shifted_immonium_ions,
107 const std::vector<PeptideHit::PeakAnnotation>& annotated_marker_ions,
108 const std::vector<PeptideHit::PeakAnnotation>& annotated_precursor_ions,
109 std::vector<PeptideHit::PeakAnnotation>& fas);
Convenience functions to construct appealing fragment annotation strings and store them as PeptideHit...
Definition: RNPxlFragmentAnnotationHelper.h:58
static String shiftedIonsToString(const std::vector< PeptideHit::PeakAnnotation > &as)
static std::vector< PeptideHit::PeakAnnotation > shiftedToPHFA(const std::map< String, std::set< std::pair< String, double > > > &shifted_ions)
static String getAnnotatedImmoniumIon(char c, const String &fragment_shift_name)
static std::vector< PeptideHit::PeakAnnotation > fragmentAnnotationDetailsToPHFA(const String &ion_type, std::map< Size, std::vector< FragmentAnnotationDetail_ > > ion_annotation_details)
conversion of RNPxl annotations to PeptideHit::PeakAnnotation
static void addShiftedPeakFragmentAnnotation_(const std::map< Size, std::vector< FragmentAnnotationDetail_ >> &shifted_b_ions, const std::map< Size, std::vector< FragmentAnnotationDetail_ >> &shifted_y_ions, const std::map< Size, std::vector< FragmentAnnotationDetail_ >> &shifted_a_ions, const std::vector< PeptideHit::PeakAnnotation > &shifted_immonium_ions, const std::vector< PeptideHit::PeakAnnotation > &annotated_marker_ions, const std::vector< PeptideHit::PeakAnnotation > &annotated_precursor_ions, std::vector< PeptideHit::PeakAnnotation > &fas)
A more convenient string class.
Definition: String.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
const double c
Definition: Constants.h:209
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Single fragment annotation.
Definition: RNPxlFragmentAnnotationHelper.h:63
double intensity
Definition: RNPxlFragmentAnnotationHelper.h:73
double mz
Definition: RNPxlFragmentAnnotationHelper.h:72
String shift
Definition: RNPxlFragmentAnnotationHelper.h:70
bool operator==(const FragmentAnnotationDetail_ &other) const
Definition: RNPxlFragmentAnnotationHelper.h:81
FragmentAnnotationDetail_(String s, int z, double m, double i)
Definition: RNPxlFragmentAnnotationHelper.h:64
bool operator<(const FragmentAnnotationDetail_ &other) const
Definition: RNPxlFragmentAnnotationHelper.h:75
int charge
Definition: RNPxlFragmentAnnotationHelper.h:71