Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages
Public Member Functions | Protected Attributes

SvmTheoreticalSpectrumGeneratorSet Class Reference
[Chemistry]

Loads SvmTheoreticalSpectrumGenerator instances for different charges. More...

#include <OpenMS/CHEMISTRY/SvmTheoreticalSpectrumGeneratorSet.h>

List of all members.

Public Member Functions

SvmTheoreticalSpectrumGeneratorSetoperator= (const SvmTheoreticalSpectrumGeneratorSet &tsg)
 Assignment operator.
void simulate (RichPeakSpectrum &spectrum, const AASequence &peptide, const gsl_rng *rng, Size precursor_charge)
 Generate the MS/MS according to the model for the given precursor_charge.
void load (String)
 Load a trained Svm and Prob. models.
void getSupportedCharges (std::set< Size > &charges)
 Return precursor charges for which a model is contained in the set.
SvmTheoreticalSpectrumGeneratorgetSvmModel (Size)
 return a modifiable reference to the SVM model with given charge. If charge is not supported throw exception
Constructors and Destructors

 SvmTheoreticalSpectrumGeneratorSet ()
 Default constructor.
 SvmTheoreticalSpectrumGeneratorSet (const SvmTheoreticalSpectrumGeneratorSet &source)
 Copy constructor.
virtual ~SvmTheoreticalSpectrumGeneratorSet ()
 Destructor.

Protected Attributes

std::map< Size,
SvmTheoreticalSpectrumGenerator
simulators_

Detailed Description

Loads SvmTheoreticalSpectrumGenerator instances for different charges.

The input file contains pairs of charge and svm models separated by a ":" (see share/OpenMS/examples/simulation/SvmModelSet.model)

Actually only a test model is shipped with OpenMS.
Please find trained models at: http://sourceforge.net/projects/open-ms/files/Supplementary/Simulation/.


Constructor & Destructor Documentation

Default constructor.

Copy constructor.

virtual ~SvmTheoreticalSpectrumGeneratorSet (  )  [virtual]

Destructor.


Member Function Documentation

void getSupportedCharges ( std::set< Size > &  charges  ) 

Return precursor charges for which a model is contained in the set.

SvmTheoreticalSpectrumGenerator& getSvmModel ( Size   ) 

return a modifiable reference to the SVM model with given charge. If charge is not supported throw exception

void load ( String   ) 

Load a trained Svm and Prob. models.

Assignment operator.

void simulate ( RichPeakSpectrum spectrum,
const AASequence peptide,
const gsl_rng *  rng,
Size  precursor_charge 
)

Generate the MS/MS according to the model for the given precursor_charge.


Member Data Documentation


OpenMS / TOPP release 1.10.0 Documentation generated on Thu Mar 7 2013 09:42:50 using doxygen 1.7.1