IsoSpec::IsoGenerator(3)
π IsoSpec::IsoGenerator(3) π
okay bestie, welcome to the Library Functions Manual for IsoSpec::IsoGenerator β yes, the manual name is literally IsoSpec::IsoGenerator(3) and we're just gonna fold that right in here at the top like it's the group chat title. let's get into it π¦
β¨ NAME β¨
IsoSpec::IsoGenerator β the generator of isotopologues. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
#include <isoSpec++.h>
Inherits IsoSpec::Iso.
Inherited by IsoSpec::IsoLayeredGeneratorTemplate< LayeredMarginal >, IsoSpec::IsoOrderedGeneratorTemplate< MarginalTrek >, IsoSpec::IsoStochasticGeneratorTemplate< IsoLayeredGenerator >, IsoSpec::IsoLayeredGeneratorTemplate< MarginalType >, IsoSpec::IsoOrderedGeneratorTemplate< MarginalType >, IsoSpec::IsoStochasticGeneratorTemplate< IsoType >, and IsoSpec::IsoThresholdGenerator. a whole friend group fr fr π
π Public Member Functions π
virtual bool advanceToNextConfiguration()=0β advance to the next, not yet visited, most probable isotopologue.virtual double lprob() constβ get the log-probability of the current isotopologue.virtual double mass() constβ get the mass of the current isotopologue.virtual double prob() constβ get the probability of the current isotopologue.virtual void get_conf_signature(int *space) const =0β write the signature of configuration into target memory location. it must be large enough to accomodate it.IsoGenerator(Iso &&iso, bool alloc_partials=true)β move constructor.virtual ~IsoGenerator()β destructor.
π Public Member Functions inherited from IsoSpec::Iso π
Iso(int _dimNumber, const int *_isotopeNumbers, const int *_atomCounts, const double *_isotopeMasses, const double *_isotopeProbabilities)β general constructror.Iso(int _dimNumber, const int *_isotopeNumbers, const int *_atomCounts, const double *const *_isotopeMasses, const double *const *_isotopeProbabilities)Iso(const char *formula, bool use_nominal_masses=false)β constructor from the formula object.Iso(const std::string &formula, bool use_nominal_masses=false)β constructor from C++std::stringchemical formula.Iso(Iso &&other)β the move constructor.Iso & operator= (const Iso &other)=deleteIso(const Iso &other, bool fullcopy)β the copy constructor.virtual ~Iso()β destructor.double getLightestPeakMass() constβ get the mass of the lightest peak in the isotopic distribution.double getHeaviestPeakMass() constβ get the mass of the heaviest peak in the isotopic distribution.double getMonoisotopicPeakMass() constdouble getModeLProb() constβ get the log-probability of the mode-configuration (if there are many modes, they share this value).double getUnlikeliestPeakLProb() constβ get the logprobability of the least probable subisotopologue.double getModeMass() constβ get the mass of the mode-configuration (if there are many modes, it is undefined which one will be selected).double getTheoreticalAverageMass() constβ get the theoretical average mass of the molecule.double variance() constβ get the theoretical variance of the distribution.double stddev() constβ get the standard deviation of the theoretical distribution.int getDimNumber() constβ get the number of elements in the chemical formula of the molecule.int getAllDim() constβ get the total number of isotopes of elements present in a chemical formula.void addElement(int atomCount, int noIsotopes, const double *isotopeMasses, const double *isotopeProbabilities)β add an element to the molecule. Note: this method can only be used BEFOREIsois used to construct anIsoGeneratorinstance.void saveMarginalLogSizeEstimates(double *priorities, double target_total_prob) constβ save estimates of logarithms of target sizes of marginals using Gaussian approximation into argument array. Array priorities must have length equal to dimNumber.
β Public Attributes β
const double mode_lprob
π¦ Protected Attributes π¦
double * partialLProbsdouble * partialMassesdouble * partialProbs
π Protected Attributes inherited from IsoSpec::Iso π
int dimNumberint * isotopeNumbersint * atomCountsunsigned int confSizeint allDimMarginal ** marginals
π Additional Inherited Members π
Static Public Member Functions inherited from IsoSpec::Iso
static Iso FromFASTA(const char *fasta, bool use_nominal_masses=false, bool add_water=true)β constructor (named) from aminoacid FASTA sequence as C string.static Iso FromFASTA(const std::string &fasta, bool use_nominal_masses=false, bool add_water=true)β constructor (named) from aminoacid FASTA sequence as C++std::string. See above for details.
Protected Member Functions inherited from IsoSpec::Iso
bool doMarginalsNeedSorting() const
π Detailed Description π
the generator of isotopologues. no cap.
this class provides the common interface for all isotopic generators. it's giving main character energy for the whole generator family π«Ά
Definition at line 184 of file isoSpec++.h.
π Constructor & Destructor Documentation π
IsoSpec::IsoGenerator::IsoGenerator (Iso && iso, bool alloc_partials = true)
move constructor. so smooth β¨
Definition at line 442 of file isoSpec++.cpp.
IsoSpec::IsoGenerator::~IsoGenerator () [virtual]
destructor.
Definition at line 460 of file isoSpec++.cpp.
πΈ Member Function Documentation πΈ
virtual bool IsoSpec::IsoGenerator::advanceToNextConfiguration () [pure virtual]
advance to the next, not yet visited, most probable isotopologue.
Returns
return false if it is not possible to advance. (sad, but we move π)
Implemented in IsoSpec::IsoLayeredGeneratorTemplate< MarginalType >, IsoSpec::IsoLayeredGeneratorTemplate< LayeredMarginal >, IsoSpec::IsoOrderedGeneratorTemplate< MarginalType >, IsoSpec::IsoOrderedGeneratorTemplate< MarginalTrek >, IsoSpec::IsoStochasticGeneratorTemplate< IsoType >, IsoSpec::IsoStochasticGeneratorTemplate< IsoLayeredGenerator >, and IsoSpec::IsoThresholdGenerator.
virtual void IsoSpec::IsoGenerator::get_conf_signature (int * space) const [pure virtual]
write the signature of configuration into target memory location. it must be large enough to accomodate it. (yes, mind the spelling, it's the original, leave it alone π)
Implemented in IsoSpec::IsoLayeredGeneratorTemplate< MarginalType >, IsoSpec::IsoLayeredGeneratorTemplate< LayeredMarginal >, IsoSpec::IsoOrderedGeneratorTemplate< MarginalType >, IsoSpec::IsoOrderedGeneratorTemplate< MarginalTrek >, IsoSpec::IsoStochasticGeneratorTemplate< IsoType >, IsoSpec::IsoStochasticGeneratorTemplate< IsoLayeredGenerator >, and IsoSpec::IsoThresholdGenerator.
virtual double IsoSpec::IsoGenerator::lprob () const [inline], [virtual]
get the log-probability of the current isotopologue.
Returns
the log-probability of the current isotopologue.
Reimplemented in IsoSpec::IsoLayeredGeneratorTemplate< MarginalType >, IsoSpec::IsoLayeredGeneratorTemplate< LayeredMarginal >, IsoSpec::IsoStochasticGeneratorTemplate< IsoType >, IsoSpec::IsoStochasticGeneratorTemplate< IsoLayeredGenerator >, and IsoSpec::IsoThresholdGenerator.
Definition at line 205 of file isoSpec++.h.
virtual double IsoSpec::IsoGenerator::mass () const [inline], [virtual]
get the mass of the current isotopologue.
Returns
the mass of the current isotopologue.
Reimplemented in IsoSpec::IsoLayeredGeneratorTemplate< MarginalType >, IsoSpec::IsoLayeredGeneratorTemplate< LayeredMarginal >, IsoSpec::IsoStochasticGeneratorTemplate< IsoType >, IsoSpec::IsoStochasticGeneratorTemplate< IsoLayeredGenerator >, and IsoSpec::IsoThresholdGenerator.
Definition at line 211 of file isoSpec++.h.
virtual double IsoSpec::IsoGenerator::prob () const [inline], [virtual]
get the probability of the current isotopologue.
Returns
the probability of the current isotopologue.
Reimplemented in IsoSpec::IsoLayeredGeneratorTemplate< MarginalType >, IsoSpec::IsoLayeredGeneratorTemplate< LayeredMarginal >, IsoSpec::IsoStochasticGeneratorTemplate< IsoType >, IsoSpec::IsoStochasticGeneratorTemplate< IsoLayeredGenerator >, and IsoSpec::IsoThresholdGenerator.
Definition at line 217 of file isoSpec++.h.
β Member Data Documentation β
const double IsoSpec::IsoGenerator::mode_lprob
Definition at line 187 of file isoSpec++.h.
double* IsoSpec::IsoGenerator::partialLProbs [protected]
the prefix sum of the log-probabilities of the current isotopologue. (a little running total, she's organized π)
Definition at line 190 of file isoSpec++.h.
double* IsoSpec::IsoGenerator::partialMasses [protected]
the prefix sum of the masses of the current isotopologue.
Definition at line 191 of file isoSpec++.h.
double* IsoSpec::IsoGenerator::partialProbs [protected]
the prefix product of the probabilities of the current isotopologue.
Definition at line 192 of file isoSpec++.h.
π Author π
generated automatically by Doxygen for IsoSpec from the source code. not me getting auto-generated, she's literally iconic π
and that's the whole page bestie! no skips, no summaries, every single flag, member, line number and footnote stayed exactly where it was. ate and left no crumbs π
IsoSpec Β· IsoSpec::IsoGenerator(3) Β· that footer source/version-and-date energy, wrapped up with a lil bow π love u, go generate some isotopologues, periodt π β¨
π¦ where this page comes from
- ubuntu resolute: libisospec++-dev 2.3.2-1build1 Β· BSD-2-Clause
- ubuntu stonking: libisospec++-dev 2.3.2-2 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms