42 class TheoreticalSpectrumGenerator;
51 std::vector<double>& bseries,
52 std::vector<double>& yseries,
58 std::vector<double>& masses,
64 std::vector<std::pair<double, double> >& isotopesSpec,
65 const double charge = 1.,
66 const int nr_isotopes = 4,
67 const double mannmass = 1.00048);
71 std::vector<double>& firstIsotopeMasses,
72 std::vector<std::pair<double, double> >& isotopeMasses,
78 std::vector<std::pair<double, double> >& modmass,
83 std::vector<std::pair<double, double> >& isotopeSpec,
85 double preIsotopePeaksWeight = -0.5,
86 double mannmass = 1.000482,
90 OPENMS_DLLAPI
void addIsotopes2Spec(
const std::vector<std::pair<double, double> >& spec,
91 std::vector<std::pair<double, double> >& isotopeMasses,
95 OPENMS_DLLAPI
void sortByFirst(std::vector<std::pair<double, double> >& tmp);
97 OPENMS_DLLAPI
void extractFirst(
const std::vector<std::pair<double, double> >& peaks, std::vector<double>& mass);
99 OPENMS_DLLAPI
void extractSecond(
const std::vector<std::pair<double, double> >& peaks, std::vector<double>& mass);
void getBYSeries(const AASequence &a, std::vector< double > &bseries, std::vector< double > &yseries, TheoreticalSpectrumGenerator const *g, UInt charge=1u)
Helper functions for the DIA scoring of OpenSWATH.
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
void extractFirst(const std::vector< std::pair< double, double > > &peaks, std::vector< double > &mass)
extract first from vector of pairs
Generates theoretical spectra with various options.
Definition: TheoreticalSpectrumGenerator.h:63
Representation of a peptide/protein sequence.
Definition: AASequence.h:107
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
void getTheorMasses(const AASequence &a, std::vector< double > &masses, TheoreticalSpectrumGenerator const *g, UInt charge=1u)
for SWATH – get the theoretical b and y series masses for a sequence
void modifyMassesByCharge(const std::vector< std::pair< double, double > > &masses, std::vector< std::pair< double, double > > &modmass, double charge=1.)
modify masses by charge
void simulateSpectrumFromAASequence(const AASequence &aa, std::vector< double > &firstIsotopeMasses, std::vector< std::pair< double, double > > &isotopeMasses, TheoreticalSpectrumGenerator const *g, double charge=1.)
simulate spectrum from AASequence
void sortByFirst(std::vector< std::pair< double, double > > &tmp)
sorts vector of pairs by first
void addIsotopes2Spec(const std::vector< std::pair< double, double > > &spec, std::vector< std::pair< double, double > > &isotopeMasses, double charge=1.)
given an experimental spectrum add isotope pattern.
void extractSecond(const std::vector< std::pair< double, double > > &peaks, std::vector< double > &mass)
extract second from vector of pairs
void addPreisotopeWeights(const std::vector< double > &firstIsotopeMasses, std::vector< std::pair< double, double > > &isotopeSpec, UInt nrpeaks=2, double preIsotopePeaksWeight=-0.5, double mannmass=1.000482, double charge=1.)
add negative pre-isotope weights to spectrum
void getAveragineIsotopeDistribution(const double product_mz, std::vector< std::pair< double, double > > &isotopesSpec, const double charge=1., const int nr_isotopes=4, const double mannmass=1.00048)
get averagine distribution given mass