cytoflowgui.workflow.operations.som#

class cytoflowgui.workflow.operations.som.Channel[source]#

Bases: HasTraits

class cytoflowgui.workflow.operations.som.SOMWorkflowView[source]#

Bases: WorkflowByView, SOMDiagnosticView

should_plot(changed, _)[source]#

Should the owning WorkflowItem refresh the plot when certain things change? changed can be: - Changed.VIEW – the view’s parameters changed - Changed.RESULT – this WorkflowItem’s result changed - Changed.PREV_RESULT – the previous WorkflowItem’s result changed - Changed.ESTIMATE_RESULT – the results of calling “estimate” changed

If should_plot is called from a notification handler, the payload is the handler event parameter.

get_notebook_code(idx)[source]#
class cytoflowgui.workflow.operations.som.SOMWorkflowOp[source]#

Bases: WorkflowOperation, SOMOp

estimate(experiment)[source]#

Estimate the self-organized map

Parameters:
  • experiment (Experiment) – The Experiment to use to estimate the k-means clusters

  • subset (str (default = None)) – A Python expression that specifies a subset of the data in experiment to use to parameterize the operation.

apply(experiment)[source]#

Apply the self-organizing maps clustering to the data.

Returns:

a new Experiment with one additional entry in Experiment.conditions named name, of type category. The new category has values name_1, name_2, etc to indicate which k-means cluster an event is a member of.

The new Experiment also has one new statistic called centers, which is a list of tuples encoding the centroids of each k-means cluster.

Return type:

Experiment

clear_estimate()[source]#
default_view(**kwargs)[source]#

Returns a diagnostic plot of the k-means clustering.

Returns:

IView

Return type:

an IView, call SOMWorkflowView.plot to see the diagnostic plot.

get_notebook_code(idx)[source]#