35 #ifndef OPENMS_ANALYSIS_ID_ASCORE_H
36 #define OPENMS_ANALYSIS_ID_ASCORE_H
87 int compareMZ_(
double mz1,
double mz2,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const;
92 template <
class InputIterator1,
class InputIterator2,
class OutputIterator>
94 InputIterator2 first2, InputIterator2 last2, OutputIterator result,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const
96 while (first1 != last1 && first2 != last2)
98 double mz1 = first1->getMZ();
99 double mz2 = first2->getMZ();
100 int val = compareMZ_(mz1, mz2, fragment_mass_tolerance, fragment_mass_unit_ppm);
118 int ret = compareMZ_(mz1, first2->getMZ(), fragment_mass_tolerance, fragment_mass_unit_ppm);
119 while (ret == 0 && first2 != last2)
122 ret = compareMZ_(mz1, first2->getMZ(), fragment_mass_tolerance, fragment_mass_unit_ppm);
130 int ret = compareMZ_(first1->getMZ(), mz2, fragment_mass_tolerance, fragment_mass_unit_ppm);
131 while (ret == 0 && first1 != last1)
134 ret = compareMZ_(first1->getMZ(), mz2, fragment_mass_tolerance, fragment_mass_unit_ppm);
139 return std::copy(first1, last1, result);
143 void computeSiteDeterminingIons_(
const std::vector<RichPeakSpectrum> & th_spectra,
const ProbablePhosphoSites & candidates, std::vector<RichPeakSpectrum> & site_determining_ions,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const;
146 std::vector<Size> getSites_(
const AASequence & without_phospho)
const;
149 std::vector<std::vector<Size> > computePermutations_(
const std::vector<Size> & sites,
Int n_phosphorylation_events)
const;
152 Size numberOfMatchedIons_(
const RichPeakSpectrum & th,
const PeakSpectrum & windows,
Size depth,
double fragment_mass_tolerance,
bool fragment_mass_tolerance_ppm =
false)
const;
155 double peptideScore_(
const std::vector<double> & scores)
const;
161 void determineHighestScoringPermutations_(
const std::vector<std::vector<double> > & peptide_site_scores, std::vector<ProbablePhosphoSites> & sites,
const std::vector<std::vector<Size> > & permutations, std::multimap<double, Size>& ranking)
const;
164 double computeCumulativeScore_(
Size N,
Size n,
double p)
const;
167 Size numberOfPhosphoEvents_(
const String sequence)
const;
173 std::vector<RichPeakSpectrum> createTheoreticalSpectra_(
const std::vector<std::vector<Size> > & permutations,
const AASequence & seq_without_phospho)
const;
176 std::vector<PeakSpectrum> peakPickingPerWindowsInSpectrum_(
PeakSpectrum & real_spectrum)
const;
179 std::vector<std::vector<double> > calculatePermutationPeptideScores_(std::vector<RichPeakSpectrum> & th_spectra,
const std::vector<PeakSpectrum> & windows_top10,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const;
182 std::multimap<double, Size> rankWeightedPermutationPeptideScores_(
const std::vector<std::vector<double> > & peptide_site_scores)
const;
187 #endif // OPENMS_ANALYSIS_ID_ASCORE_H
Implementation of the Ascore For a given peptide sequence and its MS/MS spectrum it identifies the mo...
Definition: AScore.h:64
A more convenient string class.
Definition: String.h:57
Size first
Definition: AScore.h:50
Size second
Definition: AScore.h:51
OutputIterator getSpectrumDifference_(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result, double fragment_mass_tolerance, bool fragment_mass_unit_ppm) const
Definition: AScore.h:93
Representation of a peptide/protein sequence.
Definition: AASequence.h:70
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size peak_depth
Definition: AScore.h:54
Representation of a peptide hit.
Definition: PeptideHit.h:55
Size seq_1
Definition: AScore.h:52
Implementation of the PScore PSM scoring algorithm.
Definition: PScore.h:46
Size seq_2
Definition: AScore.h:53
int Int
Signed integer type.
Definition: Types.h:103
Size AScore
Definition: AScore.h:55