94 int compareMZ_(
double mz1,
double mz2)
const;
99 template <
class InputIterator1,
class InputIterator2,
class OutputIterator>
101 InputIterator2 first2, InputIterator2 last2, OutputIterator result)
const 103 while (first1 != last1 && first2 != last2)
105 double mz1 = first1->getMZ();
106 double mz2 = first2->getMZ();
107 int val = compareMZ_(mz1, mz2);
125 int ret = compareMZ_(mz1, first2->getMZ());
126 while (ret == 0 && first2 != last2)
129 ret = compareMZ_(mz1, first2->getMZ());
137 int ret = compareMZ_(first1->getMZ(), mz2);
138 while (ret == 0 && first1 != last1)
141 ret = compareMZ_(first1->getMZ(), mz2);
146 return std::copy(first1, last1, result);
150 void computeSiteDeterminingIons_(
const std::vector<PeakSpectrum>& th_spectra,
const ProbablePhosphoSites& candidates, std::vector<PeakSpectrum>& site_determining_ions)
const;
153 std::vector<Size> getSites_(
const AASequence& without_phospho)
const;
156 std::vector<std::vector<Size>> computePermutations_(
const std::vector<Size>& sites,
Int n_phosphorylation_events)
const;
162 double peptideScore_(
const std::vector<double>& scores)
const;
168 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;
171 double computeCumulativeScore_(
Size N,
Size n,
double p)
const;
174 Size numberOfPhosphoEvents_(
const String sequence)
const;
180 std::vector<PeakSpectrum> createTheoreticalSpectra_(
const std::vector<std::vector<Size>>& permutations,
const AASequence& seq_without_phospho)
const;
183 std::vector<PeakSpectrum> peakPickingPerWindowsInSpectrum_(
PeakSpectrum& real_spectrum)
const;
186 std::vector<std::vector<double>> calculatePermutationPeptideScores_(std::vector<PeakSpectrum>& th_spectra,
const std::vector<PeakSpectrum>& windows_top10)
const;
189 std::multimap<double, Size> rankWeightedPermutationPeptideScores_(
const std::vector<std::vector<double>>& peptide_site_scores)
const;
192 void updateMembers_()
override;
Implementation of the Ascore For a given peptide sequence and its MS/MS spectrum it identifies the mo...
Definition: AScore.h:70
A more convenient string class.
Definition: String.h:57
Size first
Definition: AScore.h:54
Size second
Definition: AScore.h:55
Size max_peptide_length_
Limit for peptide lengths that can be analyzed.
Definition: AScore.h:197
double fragment_mass_tolerance_
Fragment mass tolerance for spectrum comparisons.
Definition: AScore.h:195
Representation of a peptide/protein sequence.
Definition: AASequence.h:107
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
bool fragment_tolerance_ppm_
Is fragment mass tolerance given in ppm (or Da)?
Definition: AScore.h:196
Size peak_depth
Definition: AScore.h:58
The representation of a 1D spectrum.
Definition: MSSpectrum.h:66
Representation of a peptide hit.
Definition: PeptideHit.h:54
Size seq_1
Definition: AScore.h:56
double unambiguous_score_
Score for unambiguous assignments (all sites phosphorylated)
Definition: AScore.h:199
Implementation of the PScore PSM scoring algorithm.
Definition: PScore.h:49
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
OutputIterator getSpectrumDifference_(InputIterator1 first1, InputIterator1 last1, InputIterator2 first2, InputIterator2 last2, OutputIterator result) const
Definition: AScore.h:100
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
Size seq_2
Definition: AScore.h:57
Size max_permutations_
Limit for number of sequence permutations that can be handled.
Definition: AScore.h:198
int Int
Signed integer type.
Definition: Types.h:102
Size AScore
Definition: AScore.h:59