cytoflowgui.workflow.operations.color_translation

class cytoflowgui.workflow.operations.color_translation.Control[source]

Bases: traits.has_traits.HasTraits

class cytoflowgui.workflow.operations.color_translation.ColorTranslationWorkflowOp[source]

Bases: cytoflowgui.workflow.operations.operation_base.WorkflowOperation, cytoflow.operations.color_translation.ColorTranslationOp

default_view(**kwargs)[source]

Returns a diagnostic plot to see if the bleedthrough spline estimation is working.

Returns

A diagnostic view, call ColorTranslationDiagnostic.plot to see the diagnostic plots

Return type

IView

estimate(experiment)[source]

Estimate the mapping from the two-channel controls

Parameters
  • experiment (Experiment) – The Experiment used to check the voltages, etc. of the control tubes. Also the source of the operation history that is replayed on the control tubes.

  • subset (Str) – A Python expression used to subset the controls before estimating the color translation parameters.

apply(experiment)[source]

Applies the color translation to an experiment

Parameters

experiment (Experiment) – the old_experiment to which this op is applied

Returns

a new experiment with the color translation applied. The corrected channels also have the following new metadata:

channel_translation : Str Which channel was this one translated to?

channel_translation_fn : Callable (pandas.Series –> pandas.Series) The function that translated this channel

Return type

Experiment

should_clear_estimate(changed, payload)[source]
clear_estimate()[source]
get_notebook_code(idx)[source]
class cytoflowgui.workflow.operations.color_translation.ColorTranslationWorkflowView[source]

Bases: cytoflowgui.workflow.views.view_base.WorkflowView, cytoflow.operations.color_translation.ColorTranslationDiagnostic

should_plot(changed, payload)[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]