cytoflowgui.workflow.operations.bleedthrough_linear¶
- class cytoflowgui.workflow.operations.bleedthrough_linear.Control[source]¶
Bases:
traits.has_traits.HasTraits
- class cytoflowgui.workflow.operations.bleedthrough_linear.BleedthroughLinearWorkflowOp[source]¶
Bases:
cytoflowgui.workflow.operations.operation_base.WorkflowOperation
,cytoflow.operations.bleedthrough_linear.BleedthroughLinearOp
- default_view(**kwargs)[source]¶
Returns a diagnostic plot to make sure spillover estimation is working.
- Returns
An
IView
, callBleedthroughLinearDiagnostic.plot
to see the diagnostic plots- Return type
- 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
- class cytoflowgui.workflow.operations.bleedthrough_linear.BleedthroughLinearWorkflowView[source]¶
Bases:
cytoflowgui.workflow.views.view_base.WorkflowView
,cytoflow.operations.bleedthrough_linear.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” changedIf
should_plot
is called from a notification handler, the payload is the handlerevent
parameter.