QTCluster#

class pyopenms.QTCluster#

Bases: object

A representation of a QT cluster used for feature grouping

__init__(arg: pyopenms.QTCluster, /) → None#

Methods

__init__(arg, /)

finalizeCluster()

Has to be called after adding elements (after calling QTCluster::add one or multiple times)

getAnnotations()

Returns the set of peptide sequences annotated to the cluster center

getCenterMZ()

Returns the m/z value of the cluster center

getCenterRT()

Returns the RT value of the cluster

getQuality()

Returns the cluster quality and recomputes if necessary

getXCoord()

Returns the x coordinate in the grid

getYCoord()

Returns the y coordinate in the grid

initializeCluster()

Has to be called before adding elements (calling QTCluster::add)

isInvalid()

Whether current cluster is invalid

setInvalid()

Sets current cluster as invalid (also frees some memory)

size()

Returns the size of the cluster (number of elements, incl.

finalizeCluster() → None#

Has to be called after adding elements (after calling QTCluster::add one or multiple times)

getAnnotations() → set[pyopenms.AASequence]#

Returns the set of peptide sequences annotated to the cluster center

getCenterMZ() → float#

Returns the m/z value of the cluster center

getCenterRT() → float#

Returns the RT value of the cluster

getQuality() → float#

Returns the cluster quality and recomputes if necessary

getXCoord() → int#

Returns the x coordinate in the grid

getYCoord() → int#

Returns the y coordinate in the grid

initializeCluster() → None#

Has to be called before adding elements (calling QTCluster::add)

isInvalid() → bool#

Whether current cluster is invalid

setInvalid() → None#

Sets current cluster as invalid (also frees some memory)

size() → int#

Returns the size of the cluster (number of elements, incl. center)