This module uses the KMeans algorithm to assign events to clusters in an unsupervized manner.


The operation name; determines the name of the new metadata

X Channel, Y Channel

The channels to apply the mixture model to.

X Scale, Y Scale

Re-scale the data in Channel before fitting.

Num Clusters

How many clusters to assign the data to.


A list of metadata attributes to aggregate the data before estimating the model. For example, if the experiment has two pieces of metadata, Time and Dox, setting By to ["Time", "Dox"] will fit the model separately to each subset of the data with a unique combination of Time and Dox.

class cytoflowgui.op_plugins.kmeans.KMeansHandler(*args: Any, **kwargs: Any)[source]

Bases: cytoflowgui.op_plugins.op_plugin_base.OpHandler

class cytoflowgui.op_plugins.kmeans.KMeansViewHandler(*args: Any, **kwargs: Any)[source]

Bases: cytoflowgui.view_plugins.view_plugin_base.ViewHandler

class cytoflowgui.op_plugins.kmeans.KMeansPlugin[source]

Bases: envisage.plugin.Plugin, cytoflowgui.op_plugins.op_plugin_base.PluginHelpMixin

operation_id = ''
view_id = ''
short_name = 'KMeans'
menu_group = 'Gates'
get_handler(model, context)[source]