RealMassDecomposer#

class pyopenms.RealMassDecomposer#

Bases: object

Cython implementation of _RealMassDecomposer

Original C++ documentation is available here

__init__()#

Overload:

__init__(self, in_0: RealMassDecomposer) None

Overload:

__init__(self, weights: IMSWeights) None

Methods

__init__

Overload:

getNumberOfDecompositions(self, mass, error)

Gets a number of all decompositions for amass with an error allowed.

getNumberOfDecompositions(self, mass: float, error: float) int#

Gets a number of all decompositions for amass with an error allowed. It’s similar to thegetDecompositions(double,double) function but less space consuming, since doesn’t use container to store decompositions

Parameters:
  • mass – Mass to be decomposed

  • error – Error allowed between given and result decomposition

Returns:

Number of all decompositions for a given mass and error