76 std::map<std::pair<IonType, Size>, std::vector<double> > & observed_intensities,
78 Size number_of_regions
83 Size number_of_regions,
84 Size number_of_intensity_levels,
86 const std::vector<IonType> & ion_types,
87 const std::vector<bool> & is_primary
Representation of a peptide/protein sequence.
Definition: AASequence.h:112
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:80
The representation of a 1D spectrum.
Definition: MSSpectrum.h:71
A more convenient string class.
Definition: String.h:61
Train SVM models that are used by SvmTheoreticalSpectrumGenerator.
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:67
void writeTrainingFile_(std::vector< DescriptorSet > &training_input, std::vector< double > &training_output, String filename)
Write a training file that can be passed to libsvm command line tools.
SvmTheoreticalSpectrumGeneratorTrainer()
Default constructor.
SvmTheoreticalSpectrumGenerator::DescriptorSet DescriptorSet
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:69
SvmTheoreticalSpectrumGeneratorTrainer & operator=(const SvmTheoreticalSpectrumGeneratorTrainer &tsg)
Assignment operator.
std::map< std::pair< IonType, Size >, std::vector< double > > ObservedIntensMap
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:70
SvmTheoreticalSpectrumGeneratorTrainer(const SvmTheoreticalSpectrumGeneratorTrainer &source)
Copy constructor.
void trainSecondaryTypes_(TextFile &info_outfile, Size number_of_regions, Size number_of_intensity_levels, ObservedIntensMap &observed_intensities, const std::vector< IonType > &ion_types, const std::vector< bool > &is_primary)
trains the Bayesian secondary peak types models
void countIntensities_(const PeakSpectrum &spectrum, const AASequence &annotation, IonType type, std::map< std::pair< IonType, Size >, std::vector< double > > &observed_intensities, double tolerance, Size number_of_regions)
stores the observed intensities for each sector-type combination in a vector
void trainModel(const PeakMap &spectra, const std::vector< AASequence > &annotations, String filename, Int precursor_charge)
trains an SVM for each ion_type and stores them in files <filename>_residue_loss_charge....
void normalizeIntensity(PeakSpectrum &S) const
Normalizes the intensity of the peaks in the input data.
SvmTheoreticalSpectrumGenerator::IonType IonType
Definition: SvmTheoreticalSpectrumGeneratorTrainer.h:68
~SvmTheoreticalSpectrumGeneratorTrainer() override
Destructor.
A set of descriptors for a single training row.
Definition: SvmTheoreticalSpectrumGenerator.h:141
This class provides some basic file handling methods for text files.
Definition: TextFile.h:47
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
nested class
Definition: SvmTheoreticalSpectrumGenerator.h:83