cytoflowgui.workflow.operations.som#
- 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?
changedcan 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” changedIf
should_plotis called from a notification handler, the payload is the handlereventparameter.
- class cytoflowgui.workflow.operations.som.SOMWorkflowOp[source]#
Bases:
WorkflowOperation,SOMOp- estimate(experiment)[source]#
Estimate the self-organized map
- Parameters:
experiment (Experiment) – The
Experimentto use to estimate the k-means clusterssubset (str (default = None)) – A Python expression that specifies a subset of the data in
experimentto 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.conditionsnamedname, of typecategory. The new category has valuesname_1,name_2, etc to indicate which k-means cluster an event is a member of.The new
Experimentalso has one new statistic calledcenters, which is a list of tuples encoding the centroids of each k-means cluster.- Return type: