76 return std::tie(charge, shift, mz, intensity) <
82 double mz_diff = fabs(mz - other.
mz);
83 double intensity_diff = fabs(intensity - other.
intensity);
84 return (charge == other.
charge && shift == other.
shift && mz_diff < 1e-6 && intensity_diff < 1e-6);
88 static String getAnnotatedImmoniumIon(
char c,
const String& fragment_shift_name);
91 static std::vector<PeptideHit::PeakAnnotation> fragmentAnnotationDetailsToPHFA(
93 std::map<
Size, std::vector<FragmentAnnotationDetail_> > ion_annotation_details);
95 static std::vector<PeptideHit::PeakAnnotation> shiftedToPHFA(
97 std::set<std::pair<String, double> > >& shifted_ions);
100 static String shiftedIonsToString(
const std::vector<PeptideHit::PeakAnnotation>& as);
102 static void addShiftedPeakFragmentAnnotation_(
const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_b_ions,
103 const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_y_ions,
104 const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_a_ions,
105 const std::vector<PeptideHit::PeakAnnotation>& shifted_immonium_ions,
106 const std::vector<PeptideHit::PeakAnnotation>& annotated_marker_ions,
107 const std::vector<PeptideHit::PeakAnnotation>& annotated_precursor_ions,
108 std::vector<PeptideHit::PeakAnnotation>& fas);
A more convenient string class.
Definition: String.h:57
FragmentAnnotationDetail_(String s, int z, double m, double i)
Definition: RNPxlFragmentAnnotationHelper.h:63
int charge
Definition: RNPxlFragmentAnnotationHelper.h:70
String shift
Definition: RNPxlFragmentAnnotationHelper.h:69
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool operator<(const FragmentAnnotationDetail_ &other) const
Definition: RNPxlFragmentAnnotationHelper.h:74
Single fragment annotation.
Definition: RNPxlFragmentAnnotationHelper.h:61
Definition: RNPxlFragmentAnnotationHelper.h:56
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
double mz
Definition: RNPxlFragmentAnnotationHelper.h:71
bool operator==(const FragmentAnnotationDetail_ &other) const
Definition: RNPxlFragmentAnnotationHelper.h:80
double intensity
Definition: RNPxlFragmentAnnotationHelper.h:72