ClusteringGrid#
- class pyopenms.ClusteringGrid#
Bases:
objectData structure to store 2D data to be clustered, e.g. (m/z, retention time) coordinates from multiplex filtering
See also: LocalClustering
- __init__(arg0: collections.abc.Sequence[float], arg1: collections.abc.Sequence[float], /) None#
- __init__(arg: pyopenms.ClusteringGrid, /) None
Methods
__init__(arg0, arg1, /)addCluster(cell_index, cluster_index)Adds a cluster to this grid cell
Returns number of grid cells occupied by one or more clusters
getIndex(position)isNonEmptyCell(cell_index)Checks if there are clusters at this cell index
Removes all clusters from this grid (and hence all cells)
removeCluster(cell_index, cluster_index)Removes a cluster from this grid cell and removes the cell if no other cluster left
- addCluster(cell_index: tuple[int, int], cluster_index: int) None#
Adds a cluster to this grid cell
- getCellCount() int#
Returns number of grid cells occupied by one or more clusters
- getGridSpacingX() list[float]#
- getGridSpacingY() list[float]#
- getIndex(position: tuple[float, float]) tuple[int, int]#
- isNonEmptyCell(cell_index: tuple[int, int]) bool#
Checks if there are clusters at this cell index
- removeAllClusters() None#
Removes all clusters from this grid (and hence all cells)
- removeCluster(cell_index: tuple[int, int], cluster_index: int) None#
Removes a cluster from this grid cell and removes the cell if no other cluster left