cytoflowgui.workflow.operations.color_translation#
- class cytoflowgui.workflow.operations.color_translation.ColorTranslationWorkflowOp[source]#
Bases:
WorkflowOperation,ColorTranslationOp- default_view(**kwargs)[source]#
Returns a diagnostic plot to see if the bleedthrough spline estimation is working.
- Returns:
A diagnostic view, call
ColorTranslationDiagnostic.plotto see the diagnostic plots- Return type:
- estimate(experiment)[source]#
Estimate the mapping from the two-channel controls
- Parameters:
experiment (
Experiment) – TheExperimentused 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:
- class cytoflowgui.workflow.operations.color_translation.ColorTranslationWorkflowView[source]#
Bases:
WorkflowView,ColorTranslationDiagnostic- 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.