19 class TheoreticalSpectrumGenerator;
36 double& mz,
double& im,
double& intensity,
const RangeMZ& mz_range,
const RangeMobility& im_range,
bool centroided =
false);
46 double& mz,
double& im,
double& intensity,
const RangeMZ& mz_range,
const RangeMobility& im_range,
bool centroided =
false);
61 const std::vector<double>& windows_center,
63 std::vector<double>& integrated_windows_intensity,
64 std::vector<double>& integrated_windows_mz,
65 std::vector<double>& integrated_windows_im,
67 bool remove_zero =
false);
83 const std::vector<double>& windows_center,
85 std::vector<double>& integrated_windows_intensity,
86 std::vector<double>& integrated_windows_mz,
87 std::vector<double>& integrated_windows_im,
89 bool remove_zero =
false);
93 OPENMS_DLLAPI
void adjustExtractionWindow(
double& right,
double& left,
const double& mz_extract_window,
const bool& mz_extraction_ppm);
97 std::vector<double>& bseries,
98 std::vector<double>& yseries,
104 std::vector<double>& masses,
110 std::vector<std::pair<double, double> >& isotopes_spec,
111 const int charge = 1,
112 const int nr_isotopes = 4,
113 const double mannmass = 1.00048);
117 std::vector<double>& first_isotope_masses,
118 std::vector<std::pair<double, double> >& isotope_masses,
124 std::vector<std::pair<double, double> >& isotope_spec,
126 double pre_isotope_peaks_weight = -0.5,
127 double mannmass = 1.000482,
132 std::vector<std::pair<double, double> >& isotope_spec,
134 double pre_isotope_peaks_weight = -0.5,
135 double mannmass = 1.000482,
141 std::vector<std::pair<double, double> >& isotope_masses,
142 Size nr_isotopes,
int charge = 1);
147 std::vector<std::pair<double, double> >& isotope_masses,
148 Size nr_isotopes,
int charge);
151 OPENMS_DLLAPI
void sortByFirst(std::vector<std::pair<double, double> >& tmp);
153 OPENMS_DLLAPI
void extractFirst(
const std::vector<std::pair<double, double> >& peaks, std::vector<double>& mass);
155 OPENMS_DLLAPI
void extractSecond(
const std::vector<std::pair<double, double> >& peaks, std::vector<double>& mass);
Representation of a peptide/protein sequence.
Definition: AASequence.h:86
Generates theoretical spectra for peptides with various options.
Definition: TheoreticalSpectrumGenerator.h:45
unsigned int UInt
Unsigned integer type.
Definition: Types.h:64
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:97
void integrateWindows(const OpenSwath::SpectrumPtr &spectrum, const std::vector< double > &windows_center, double width, std::vector< double > &integrated_windows_intensity, std::vector< double > &integrated_windows_mz, std::vector< double > &integrated_windows_im, const RangeMobility &im_range, bool remove_zero=false)
Integrate intensities in a spectrum in range im_range (if defined) for multiple windows.
void integrateWindow_(const OpenSwath::SpectrumPtr &spectrum, double &mz, double &im, double &intensity, const RangeMZ &mz_range, const RangeMobility &im_range, bool centroided)
Helper function for integrating a spectrum.
void extractSecond(const std::vector< std::pair< double, double > > &peaks, std::vector< double > &mass)
extract second from vector of pairs
bool integrateWindow(const OpenSwath::SpectrumPtr &spectrum, double &mz, double &im, double &intensity, const RangeMZ &mz_range, const RangeMobility &im_range, bool centroided=false)
Helper functions for the DIA scoring of OpenSWATH.
void addPreisotopeWeights(const std::vector< double > &first_isotope_masses, std::vector< std::pair< double, double > > &isotope_spec, UInt nr_peaks=2, double pre_isotope_peaks_weight=-0.5, double mannmass=1.000482, int charge=1)
add (potentially negative) pre-isotope weights to spectrum
void sortByFirst(std::vector< std::pair< double, double > > &tmp)
sorts vector of pairs by first
void getTheorMasses(const AASequence &a, std::vector< double > &masses, TheoreticalSpectrumGenerator const *g, int charge=1)
for SWATH – get the theoretical b and y series masses for a sequence
void getBYSeries(const AASequence &a, std::vector< double > &bseries, std::vector< double > &yseries, TheoreticalSpectrumGenerator const *g, int charge=1)
compute the b and y series masses for a given AASequence
void adjustExtractionWindow(double &right, double &left, const double &mz_extract_window, const bool &mz_extraction_ppm)
Adjust left/right window based on window and whether its ppm or not.
void extractFirst(const std::vector< std::pair< double, double > > &peaks, std::vector< double > &mass)
extract first from vector of pairs
RangeMZ createMZRangePPM(double mz_ref, double dia_extraction_window, const bool ppm)
optionally convert a DIA extraction window from ppm to m/z
void simulateSpectrumFromAASequence(const AASequence &aa, std::vector< double > &first_isotope_masses, std::vector< std::pair< double, double > > &isotope_masses, TheoreticalSpectrumGenerator const *g, int charge=1)
simulate spectrum from AASequence
void addSinglePeakIsotopes2Spec(double mz, double ity, std::vector< std::pair< double, double > > &isotope_masses, Size nr_isotopes, int charge)
void addIsotopes2Spec(const std::vector< std::pair< double, double > > &spec, std::vector< std::pair< double, double > > &isotope_masses, Size nr_isotopes, int charge=1)
void getAveragineIsotopeDistribution(const double product_mz, std::vector< std::pair< double, double > > &isotopes_spec, const int charge=1, const int nr_isotopes=4, const double mannmass=1.00048)
get averagine distribution given mass
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< OpenSwath::SpectrumPtr > SpectrumSequence
a vector of spectrum pointers that DIA scores can operate on, allows for clever integration of only t...
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:20
boost::shared_ptr< Spectrum > SpectrumPtr
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/DataStructures.h:276
Definition: RangeManager.h:345
Definition: RangeManager.h:463