35 #ifndef OPENMS_ANALYSIS_ID_ASCORE_H 36 #define OPENMS_ANALYSIS_ID_ASCORE_H 90 int compareMZ_(
double mz1,
double mz2,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const;
95 template <
class InputIterator1,
class InputIterator2,
class OutputIterator>
97 InputIterator2 first2, InputIterator2 last2, OutputIterator result,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const 99 while (first1 != last1 && first2 != last2)
101 double mz1 = first1->getMZ();
102 double mz2 = first2->getMZ();
103 int val = compareMZ_(mz1, mz2, fragment_mass_tolerance, fragment_mass_unit_ppm);
121 int ret = compareMZ_(mz1, first2->getMZ(), fragment_mass_tolerance, fragment_mass_unit_ppm);
122 while (ret == 0 && first2 != last2)
125 ret = compareMZ_(mz1, first2->getMZ(), fragment_mass_tolerance, fragment_mass_unit_ppm);
133 int ret = compareMZ_(first1->getMZ(), mz2, fragment_mass_tolerance, fragment_mass_unit_ppm);
134 while (ret == 0 && first1 != last1)
137 ret = compareMZ_(first1->getMZ(), mz2, fragment_mass_tolerance, fragment_mass_unit_ppm);
142 return std::copy(first1, last1, result);
146 void computeSiteDeterminingIons_(
const std::vector<PeakSpectrum> & th_spectra,
const ProbablePhosphoSites & candidates, std::vector<PeakSpectrum> & site_determining_ions,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const;
149 std::vector<Size> getSites_(
const AASequence & without_phospho)
const;
152 std::vector<std::vector<Size> > computePermutations_(
const std::vector<Size> & sites,
Int n_phosphorylation_events)
const;
155 Size numberOfMatchedIons_(
const PeakSpectrum & th,
const PeakSpectrum & windows,
Size depth,
double fragment_mass_tolerance,
bool fragment_mass_tolerance_ppm =
false)
const;
158 double peptideScore_(
const std::vector<double> & scores)
const;
164 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;
167 double computeCumulativeScore_(
Size N,
Size n,
double p)
const;
170 Size numberOfPhosphoEvents_(
const String sequence)
const;
176 std::vector<PeakSpectrum> createTheoreticalSpectra_(
const std::vector<std::vector<Size> > & permutations,
const AASequence & seq_without_phospho)
const;
179 std::vector<PeakSpectrum> peakPickingPerWindowsInSpectrum_(
PeakSpectrum & real_spectrum)
const;
182 std::vector<std::vector<double> > calculatePermutationPeptideScores_(std::vector<PeakSpectrum> & th_spectra,
const std::vector<PeakSpectrum> & windows_top10,
double fragment_mass_tolerance,
bool fragment_mass_unit_ppm)
const;
185 std::multimap<double, Size> rankWeightedPermutationPeptideScores_(
const std::vector<std::vector<double> > & peptide_site_scores)
const;
190 #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:67
A more convenient string class.
Definition: String.h:57
Size first
Definition: AScore.h:53
Size second
Definition: AScore.h:54
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:96
Representation of a peptide/protein sequence.
Definition: AASequence.h:108
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Size peak_depth
Definition: AScore.h:57
The representation of a 1D spectrum.
Definition: MSSpectrum.h:67
Representation of a peptide hit.
Definition: PeptideHit.h:55
Size seq_1
Definition: AScore.h:55
Implementation of the PScore PSM scoring algorithm.
Definition: PScore.h:50
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
Size seq_2
Definition: AScore.h:56
int Int
Signed integer type.
Definition: Types.h:103
Size AScore
Definition: AScore.h:58