cytoflowgui.workflow.operations.bleedthrough_linear#

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

Bases: HasTraits

class cytoflowgui.workflow.operations.bleedthrough_linear.Spillover[source]#

Bases: HasTraits

class cytoflowgui.workflow.operations.bleedthrough_linear.BleedthroughLinearWorkflowOp[source]#

Bases: WorkflowOperation, BleedthroughLinearOp

default_view(**kwargs)[source]#

Returns a diagnostic plot to make sure spillover estimation is working.

Returns:

An IView, call BleedthroughLinearDiagnostic.plot to see the diagnostic plots

Return type:

IView

estimate(experiment)[source]#

Estimate the bleedthrough from simgle-channel controls in controls

apply(experiment)[source]#

Applies the bleedthrough correction to an experiment.

Parameters:

experiment (Experiment) – The experiment to which this operation is applied

Returns:

A new Experiment with the bleedthrough subtracted out. The corrected channels have the following metadata added:

  • linear_bleedthrough : Dict(Str : Float) The values for spillover from other channels into this channel.

  • bleedthrough_channels : List(Str) The channels that were used to correct this one.

  • bleedthrough_fn : Callable (Tuple(Float) –> Float) The function that will correct one event in this channel. Pass it the values specified in controls and it will return the corrected value for this channel.

Return type:

Experiment

should_clear_estimate(changed, payload)[source]#
clear_estimate()[source]#
get_notebook_code(idx)[source]#
class cytoflowgui.workflow.operations.bleedthrough_linear.BleedthroughLinearWorkflowView[source]#

Bases: WorkflowView, BleedthroughLinearDiagnostic

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]#