MassDecomposition#

class pyopenms.MassDecomposition#

Bases: object

Cython implementation of _MassDecomposition

Original C++ documentation is available here

Class represents a decomposition of a mass into amino acids

This class represents a mass decomposition into amino acids. A decomposition are amino acids given with frequencies which add up to a specific mass.

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, in_0: MassDecomposition) None

Overload:

__init__(self, deco: bytes | str | String) None

Methods

__init__

Overload:

compatible(self, deco)

Returns true if the mass decomposition if contained in this instance

containsTag(self, tag)

Returns true if tag is contained in the mass decomposition

getNumberOfMaxAA(self)

Returns the max frequency of this composition

toExpandedString(self)

Returns the decomposition as a string; instead of frequencies the amino acids are repeated

toString(self)

Returns the decomposition as a string

compatible(self, deco: MassDecomposition) bool#

Returns true if the mass decomposition if contained in this instance

containsTag(self, tag: bytes | str | String) bool#

Returns true if tag is contained in the mass decomposition

getNumberOfMaxAA(self) int#

Returns the max frequency of this composition

toExpandedString(self) bytes | str | String#

Returns the decomposition as a string; instead of frequencies the amino acids are repeated

toString(self) bytes | str | String#

Returns the decomposition as a string