119 std::vector<Int>& ion_charges,
const AASequence& peptide,
Int min_charge,
Int max_charge)
const;
129 std::vector<Int>* ion_charges,
const AASequence& peptide,
Int min_charge,
Int max_charge)
const;
148 void addLossesFaster_(
PeakSpectrum& spectrum,
double mz,
const std::set<EmpiricalFormula>& f_losses,
int ion_ordinal,
DataArrays::StringDataArray& ion_names,
DataArrays::IntegerDataArray& charges,
const std::map<EmpiricalFormula, std::string>& formula_str_cache,
double intensity,
const std::string& annotation_prefix_string,
bool add_metainfo,
int charge)
const;
173 int isotope_model_ = 0;
Definition AASequence.h:96
Integer data array class.
Definition DataArrays.h:75
std::string data array class
Definition DataArrays.h:125
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
ActivationMethod
Method of activation.
Definition Precursor.h:61
ResidueType
Definition Residue.h:153
Generates theoretical spectra for peptides with various options.
Definition TheoreticalSpectrumGenerator.h:45
bool getIonSeriesSpectrum_(PeakSpectrum &spectrum, std::vector< uint8_t > &ion_series, std::vector< UInt > *ion_ordinals, std::vector< Int > *ion_charges, const AASequence &peptide, Int min_charge, Int max_charge) const
getIonSeriesSpectrum(), the ordinals and charges optional (nullptr: not written)
bool add_x_ions_
Definition TheoreticalSpectrumGenerator.h:163
bool add_precursor_peaks_
Definition TheoreticalSpectrumGenerator.h:174
void addLosses_(PeakSpectrum &spectrum, const AASequence &ion, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges, double intensity, const Residue::ResidueType res_type, int charge) const
helper to add full neutral loss ladders (for isotope clusters), also adds charges and ion names to th...
virtual void addPeaks_(PeakSpectrum &spectrum, const AASequence &peptide, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges, MSSpectrum::Chunks &chunks, const Residue::ResidueType res_type, Int charge=1) const
adds peaks to a spectrum of the given ion-type, peptide, charge, and intensity, also adds charges and...
TheoreticalSpectrumGenerator()
default constructor
double rel_loss_intensity_
Definition TheoreticalSpectrumGenerator.h:186
bool add_all_precursor_charges_
Definition TheoreticalSpectrumGenerator.h:175
bool add_losses_
Definition TheoreticalSpectrumGenerator.h:168
bool add_a_ions_
Definition TheoreticalSpectrumGenerator.h:161
static void addPrefixAndSuffixIons_(std::vector< float > &spectrum, const AASequence &peptide, Residue::ResidueType res_type, int charge)
helper for getPrefixAndSuffixIonsMZ. For given Ion-Type and charge calculates a peaks
double max_isotope_probability_
Definition TheoreticalSpectrumGenerator.h:187
double c_intensity_
Definition TheoreticalSpectrumGenerator.h:180
bool add_b_ions_
Definition TheoreticalSpectrumGenerator.h:159
double z_intensity_
Definition TheoreticalSpectrumGenerator.h:183
~TheoreticalSpectrumGenerator() override
destructor
bool add_term_losses_
Definition TheoreticalSpectrumGenerator.h:169
bool sort_by_position_
Definition TheoreticalSpectrumGenerator.h:177
bool add_abundant_immonium_ions_
Definition TheoreticalSpectrumGenerator.h:176
bool add_y_ions_
Definition TheoreticalSpectrumGenerator.h:160
void addLossesFaster_(PeakSpectrum &spectrum, double mz, const std::set< EmpiricalFormula > &f_losses, int ion_ordinal, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges, const std::map< EmpiricalFormula, std::string > &formula_str_cache, double intensity, const std::string &annotation_prefix_string, bool add_metainfo, int charge) const
helper to add full neutral loss ladders (for single peaks), also adds charges and ion names to the Da...
TheoreticalSpectrumGenerator & operator=(const TheoreticalSpectrumGenerator &tsg)
assignment operator
bool getIonSeriesSpectrum(PeakSpectrum &spectrum, std::vector< uint8_t > &ion_series, std::vector< UInt > &ion_ordinals, std::vector< Int > &ion_charges, const AASequence &peptide, Int min_charge, Int max_charge) const
getIonSeriesSpectrum() that also returns, per peak, the number and the charge of its ion: what getSpe...
bool add_isotopes_
Definition TheoreticalSpectrumGenerator.h:171
void addInternalFragmentPeaks_(PeakSpectrum &spectrum, const AASequence &peptide, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges, MSSpectrum::Chunks &chunks, const Residue::ResidueType res_type, Int charge) const
bool add_zp1_ions_
Definition TheoreticalSpectrumGenerator.h:165
double pre_int_NH3_
Definition TheoreticalSpectrumGenerator.h:190
TheoreticalSpectrumGenerator(const TheoreticalSpectrumGenerator &source)
copy constructor
bool add_internal_fragments_
Definition TheoreticalSpectrumGenerator.h:172
bool getIonSeriesSpectrum(PeakSpectrum &spectrum, std::vector< uint8_t > &ion_series, const AASequence &peptide, Int min_charge, Int max_charge) const
The peaks of getSpectrum() for scoring: same positions, intensities and order, but no ion names,...
virtual void addPrecursorPeaks_(PeakSpectrum &spec, const AASequence &peptide, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges, Int charge=1) const
adds the precursor peaks to the spectrum, also adds charges and ion names to the DataArrays,...
double x_intensity_
Definition TheoreticalSpectrumGenerator.h:181
bool add_zp2_ions_
Definition TheoreticalSpectrumGenerator.h:166
double a_intensity_
Definition TheoreticalSpectrumGenerator.h:178
bool add_first_prefix_ion_
Definition TheoreticalSpectrumGenerator.h:167
double b_intensity_
Definition TheoreticalSpectrumGenerator.h:179
void addIsotopeCluster_(PeakSpectrum &spectrum, const AASequence &ion, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges, const Residue::ResidueType res_type, Int charge, double intensity) const
helper to add an isotope cluster to a spectrum, also adds charges and ion names to the DataArrays,...
static MSSpectrum generateSpectrum(const Precursor::ActivationMethod &fm, const AASequence &seq, int precursor_charge)
void updateMembers_() override
overwrite
double pre_int_
Definition TheoreticalSpectrumGenerator.h:188
double y_intensity_
Definition TheoreticalSpectrumGenerator.h:182
void addAbundantImmoniumIons_(PeakSpectrum &spec, const AASequence &peptide, DataArrays::StringDataArray &ion_names, DataArrays::IntegerDataArray &charges) const
Adds the common, most abundant immonium ions to the theoretical spectra if the residue is contained i...
virtual void getSpectrum(PeakSpectrum &spec, const AASequence &peptide, Int min_charge, Int max_charge, Int precursor_charge=0) const
void getPrefixAndSuffixIonsMZ(std::vector< float > &spectrum, const AASequence &peptide, int charge) const
Int max_isotope_
Definition TheoreticalSpectrumGenerator.h:185
bool add_c_ions_
Definition TheoreticalSpectrumGenerator.h:162
bool add_z_ions_
Definition TheoreticalSpectrumGenerator.h:164
bool add_metainfo_
Definition TheoreticalSpectrumGenerator.h:170
double pre_int_H2O_
Definition TheoreticalSpectrumGenerator.h:189
int Int
Signed integer type.
Definition Types.h:72
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Container for organizing and managing multiple chunks in a spectrum.
Definition MSSpectrum.h:77