cytoflowgui.workflow.operations.bleedthrough_linear#
- 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, callBleedthroughLinearDiagnostic.plotto 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
Experimentwith 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
controlsand it will return the corrected value for this channel.
- Return type:
- 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?
changedcan 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_plotis called from a notification handler, the payload is the handlereventparameter.