MassDecomposition#

class pyopenms.MassDecomposition#

Bases: object

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__() → None#
__init__(arg: pyopenms.MassDecomposition, /) → None
__init__(arg: str, /) → None

Methods

__init__()

compatible(deco)

Returns true if the mass decomposition if contained in this instance

containsTag(tag)

Returns true if tag is contained in the mass decomposition

getNumberOfMaxAA()

Returns the max frequency of this composition

toExpandedString()

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

toString()

Returns the decomposition as a string

compatible(deco: pyopenms.MassDecomposition) → bool#

Returns true if the mass decomposition if contained in this instance

containsTag(tag: str) → bool#

Returns true if tag is contained in the mass decomposition

getNumberOfMaxAA() → int#

Returns the max frequency of this composition

toExpandedString() → str#

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

toString() → str#

Returns the decomposition as a string