50 #define ISOSPEC_GOT_SYSTEM_MMAN false
51 #define ISOSPEC_GOT_MMAN false
52 #define ISOSPEC_BUILDING_OPENMS true
54 #include <OpenMS/../../thirdparty/IsoSpec/IsoSpec/isoSpec++.h>
228 const std::vector<int>& atomCounts,
229 const std::vector<std::vector<double> >& isotopeMasses,
230 const std::vector<std::vector<double> >& isotopeProbabilities,
239 virtual inline bool nextConf() override final {
return ILG.advanceToNextConfiguration(); };
241 virtual inline double getMass() override final {
return ILG.mass(); };
242 virtual inline double getIntensity() override final {
return ILG.prob(); };
246 IsoSpec::IsoLayeredGenerator
ILG;
289 const std::vector<int>& atomCounts,
290 const std::vector<std::vector<double> >& isotopeMasses,
291 const std::vector<std::vector<double> >& isotopeProbabilities,
301 virtual inline bool nextConf() override final {
return ITG.advanceToNextConfiguration(); };
303 virtual inline double getMass() override final {
return ITG.mass(); };
304 virtual inline double getIntensity() override final {
return ITG.prob(); };
309 IsoSpec::IsoThresholdGenerator
ITG;
341 const std::vector<int>& atomCounts,
342 const std::vector<std::vector<double> >& isotopeMasses,
343 const std::vector<std::vector<double> >& isotopeProbabilities);
351 virtual inline bool nextConf() override final {
return IOG.advanceToNextConfiguration(); };
353 virtual inline double getMass() override final {
return IOG.mass(); };
354 virtual inline double getIntensity() override final {
return IOG.prob(); };
358 IsoSpec::IsoOrderedGenerator
IOG;
404 const std::vector<int>& atomCounts,
405 const std::vector<std::vector<double> >& isotopeMasses,
406 const std::vector<std::vector<double> >& isotopeProbabilities,
408 bool do_p_trim =
false);
419 IsoSpec::IsoLayeredGenerator ILG;
420 const
double target_prob;
421 const
bool do_p_trim;
463 const std::vector<int>& atomCounts,
464 const std::vector<std::vector<double> >& isotopeMasses,
465 const std::vector<std::vector<double> >& isotopeProbabilities,
478 IsoSpec::IsoThresholdGenerator ITG;
Interface for the IsoSpec algorithm - a generator of infinitely-resolved theoretical spectra.
Definition: IsoSpecWrapper.h:88
virtual Peak1D getConf()=0
Obtain the current isotopologue.
virtual ~IsoSpecGeneratorWrapper()
Destructor.
Definition: IsoSpecWrapper.h:146
virtual bool nextConf()=0
Move the generator to a next isotopologue.
virtual double getIntensity()=0
Obtain the intensity (probability, relative peak height) of the current configuration.
virtual double getLogIntensity()=0
Obtain the natural logarithm of the intensity (probability, relative peak height) of the current conf...
virtual double getMass()=0
Obtain the mass of the current isotopologue.
Generate the stream of configurations, ordered from most likely to least likely.
Definition: IsoSpecWrapper.h:329
IsoSpec::IsoOrderedGenerator IOG
Definition: IsoSpecWrapper.h:355
virtual double getMass() override final
Obtain the mass of the current isotopologue.
Definition: IsoSpecWrapper.h:353
IsoSpecOrderedGeneratorWrapper(const EmpiricalFormula &formula)
Setup the algorithm to run on an EmpiricalFormula.
virtual bool nextConf() override final
Move the generator to a next isotopologue.
Definition: IsoSpecWrapper.h:351
IsoSpecOrderedGeneratorWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities)
Constructor.
virtual double getLogIntensity() override final
Obtain the natural logarithm of the intensity (probability, relative peak height) of the current conf...
Definition: IsoSpecWrapper.h:355
virtual Peak1D getConf() override final
Obtain the current isotopologue.
Definition: IsoSpecWrapper.h:352
virtual double getIntensity() override final
Obtain the intensity (probability, relative peak height) of the current configuration.
Definition: IsoSpecWrapper.h:354
Provides a threshold-based generator of isotopologues: generates all isotopologues more probable than...
Definition: IsoSpecWrapper.h:271
virtual double getMass() override final
Obtain the mass of the current isotopologue.
Definition: IsoSpecWrapper.h:303
IsoSpecThresholdGeneratorWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double threshold, bool absolute)
Constructor.
IsoSpec::IsoThresholdGenerator ITG
Definition: IsoSpecWrapper.h:305
IsoSpecThresholdGeneratorWrapper(const EmpiricalFormula &formula, double threshold, bool absolute)
Setup the algorithm to run on an EmpiricalFormula.
virtual bool nextConf() override final
Move the generator to a next isotopologue.
Definition: IsoSpecWrapper.h:301
virtual double getLogIntensity() override final
Obtain the natural logarithm of the intensity (probability, relative peak height) of the current conf...
Definition: IsoSpecWrapper.h:305
virtual Peak1D getConf() override final
Obtain the current isotopologue.
Definition: IsoSpecWrapper.h:302
virtual double getIntensity() override final
Obtain the intensity (probability, relative peak height) of the current configuration.
Definition: IsoSpecWrapper.h:304
A non-generator version of IsoSpecThresholdGeneratorWrapper.
Definition: IsoSpecWrapper.h:445
IsoSpecThresholdWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double threshold, bool absolute)
Constructor.
virtual IsotopeDistribution run() override final
Run the algorithm.
IsoSpecThresholdWrapper(const EmpiricalFormula &formula, double threshold, bool absolute)
Setup the algorithm to run on an EmpiricalFormula.
Generate a p-set of configurations for a given p (that is, a set of configurations such that their pr...
Definition: IsoSpecWrapper.h:212
IsoSpec::IsoLayeredGenerator ILG
Definition: IsoSpecWrapper.h:243
virtual double getMass() override final
Obtain the mass of the current isotopologue.
Definition: IsoSpecWrapper.h:241
IsoSpecTotalProbGeneratorWrapper(const EmpiricalFormula &formula, double p)
Setup the algorithm to run on an EmpiricalFormula.
IsoSpecTotalProbGeneratorWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double p)
Constructor.
virtual bool nextConf() override final
Move the generator to a next isotopologue.
Definition: IsoSpecWrapper.h:239
virtual double getLogIntensity() override final
Obtain the natural logarithm of the intensity (probability, relative peak height) of the current conf...
Definition: IsoSpecWrapper.h:243
virtual Peak1D getConf() override final
Obtain the current isotopologue.
Definition: IsoSpecWrapper.h:240
virtual double getIntensity() override final
Obtain the intensity (probability, relative peak height) of the current configuration.
Definition: IsoSpecWrapper.h:242
Create a p-set of configurations for a given p (that is, a set of configurations such that their prob...
Definition: IsoSpecWrapper.h:387
virtual IsotopeDistribution run() override final
Run the algorithm.
IsoSpecTotalProbWrapper(const EmpiricalFormula &formula, double p, bool do_p_trim=false)
Setup the algorithm to run on an EmpiricalFormula.
IsoSpecTotalProbWrapper(const std::vector< int > &isotopeNumbers, const std::vector< int > &atomCounts, const std::vector< std::vector< double > > &isotopeMasses, const std::vector< std::vector< double > > &isotopeProbabilities, double p, bool do_p_trim=false)
Constructor.
A convenience class for the IsoSpec algorithm - easier to use than the IsoSpecGeneratorWrapper classe...
Definition: IsoSpecWrapper.h:153
virtual IsotopeDistribution run()=0
Run the algorithm.
virtual ~IsoSpecWrapper()
Definition: IsoSpecWrapper.h:178
Definition: IsotopeDistribution.h:65
A 1-dimensional raw data point or peak.
Definition: Peak1D.h:54
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47