cytoflowgui.workflow.operations.gaussian_1d#

class cytoflowgui.workflow.operations.gaussian_1d.GaussianMixture1DWorkflowOp[source]#

Bases: WorkflowOperation, GaussianMixtureOp

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:

  • {{Channel}} Mean

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

  • {{Channel}} SD

    The standard deviation of each channel for each component.

  • {{Channel}} - {{Channel}} Correlation

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

  • {{Channel}} ProportionFloat

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

Return type:

Experiment

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

clear_estimate()[source]#
get_notebook_code(idx)[source]#
class cytoflowgui.workflow.operations.gaussian_1d.GaussianMixture1DWorkflowView[source]#

Bases: WorkflowByView, GaussianMixture1DView

plot(experiment, **kwargs)[source]#

A default plot that passes current_plot as the plot name.

get_notebook_code(idx)[source]#