75 return std::tie(charge, shift, mz, intensity) <
81 double mz_diff = fabs(mz - other.
mz);
82 double intensity_diff = fabs(intensity - other.
intensity);
83 return (charge == other.
charge && shift == other.
shift && mz_diff < 1e-6 && intensity_diff < 1e-6);
87 static String getAnnotatedImmoniumIon(
char c,
const String& fragment_shift_name);
90 static std::vector<PeptideHit::PeakAnnotation> fragmentAnnotationDetailsToPHFA(
92 const std::map<
Size, std::vector<FragmentAnnotationDetail_> >& ion_annotation_details);
94 static std::vector<PeptideHit::PeakAnnotation> shiftedToPHFA(
96 std::set<std::pair<String, double> > >& shifted_ions);
99 static String shiftedIonsToString(
const std::vector<PeptideHit::PeakAnnotation>& as);
101 static void addShiftedPeakFragmentAnnotation_(
const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_b_ions,
102 const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_y_ions,
103 const std::map<
Size, std::vector<FragmentAnnotationDetail_>>& shifted_a_ions,
104 const std::vector<PeptideHit::PeakAnnotation>& shifted_immonium_ions,
105 const std::vector<PeptideHit::PeakAnnotation>& annotated_marker_ions,
106 const std::vector<PeptideHit::PeakAnnotation>& annotated_precursor_ions,
107 std::vector<PeptideHit::PeakAnnotation>& fas);
A more convenient string class.
Definition: String.h:58
int charge
Definition: NuXLFragmentAnnotationHelper.h:69
bool operator==(const FragmentAnnotationDetail_ &other) const
Definition: NuXLFragmentAnnotationHelper.h:79
double mz
Definition: NuXLFragmentAnnotationHelper.h:70
String shift
Definition: NuXLFragmentAnnotationHelper.h:68
FragmentAnnotationDetail_(String s, int z, double m, double i)
Definition: NuXLFragmentAnnotationHelper.h:62
const double c
Definition: Constants.h:214
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
double intensity
Definition: NuXLFragmentAnnotationHelper.h:71
Convenience functions to construct appealing fragment annotation strings and store them as PeptideHit...
Definition: NuXLFragmentAnnotationHelper.h:55
Single fragment annotation.
Definition: NuXLFragmentAnnotationHelper.h:60
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
bool operator<(const FragmentAnnotationDetail_ &other) const
Definition: NuXLFragmentAnnotationHelper.h:73