cytoflowgui.workflow.operations.gaussian_2d

class cytoflowgui.workflow.operations.gaussian_2d.GaussianMixture2DWorkflowOp[source]

Bases: cytoflowgui.workflow.operations.operation_base.WorkflowOperation, cytoflow.operations.gaussian.GaussianMixtureOp

default_view(**kwargs)[source]

Returns a diagnostic plot of the Gaussian mixture model.

Returns

An IView, call plot to see the diagnostic plot.

Return type

IView

estimate(experiment)[source]

Estimate the Gaussian mixture model parameters

Parameters
  • experiment (Experiment) – The data to use to estimate the mixture parameters

  • subset (str (default = None)) – If set, a Python expression to determine the subset of the data to use to in the estimation.

apply(experiment)[source]

Assigns new metadata to events using the mixture model estimated in estimate.

Returns

A new Experiment with the new condition variables as described in the class documentation. Also adds the following new statistics:

  • meanFloat

    the mean of the fitted gaussian in each channel for each component.

  • sigma(Float, Float)

    the locations the mean +/- one standard deviation in each channel for each component.

  • correlationFloat

    the correlation coefficient between each pair of channels for each component.

  • proportionFloat

    the proportion of events in each component of the mixture model. only added if num_components > 1.

Return type

Experiment

clear_estimate()[source]
get_notebook_code(idx)[source]
class cytoflowgui.workflow.operations.gaussian_2d.GaussianMixture2DWorkflowView[source]

Bases: cytoflowgui.workflow.views.view_base.WorkflowByView, cytoflow.operations.gaussian.GaussianMixture2DView

plot(experiment, **kwargs)[source]

A default plot that passes current_plot as the plot name.

get_notebook_code(idx)[source]