cytoflowgui.workflow.operations.flowpeaks#
- class cytoflowgui.workflow.operations.flowpeaks.FlowPeaksWorkflowOp[source]#
Bases:
WorkflowOperation,FlowPeaksOp- default_view(**kwargs)[source]#
Returns a diagnostic plot of the Gaussian mixture model.
- Parameters:
channels (List(Str)) – Which channels to plot? Must be contain either one or two channels.
scale (List({‘linear’, ‘log’, ‘logicle’})) – How to scale the channels before plotting them
density (bool) – Should we plot a scatterplot or the estimated density function?
- Returns:
- Return type:
- estimate(experiment)[source]#
Estimate the k-means clusters, then hierarchically merge them.
- Parameters:
experiment (
Experiment) – TheExperimentto use to estimate the k-means clusterssubset (str (default = None)) – A Python expression that specifies a subset of the data in
experimentto use to parameterize the operation.
- apply(experiment)[source]#
Assign events to a cluster.
Assigns each event to one of the k-means centroids from
estimate, then groups together events in the same cluster hierarchy.- Parameters:
experiment (
Experiment) – theExperimentto apply the gate to.- Returns:
A new
Experimentwith the gate applied to it. TODO - document the extra statistics- Return type:
- class cytoflowgui.workflow.operations.flowpeaks.FlowPeaksWorkflowView[source]#
Bases:
WorkflowByView,By2DView- id = 'cytoflowgui.op_plugins.flowpeaks'#
- friendly_id = 'FlowPeaks'#
- plot(experiment, **kwargs)[source]#
A default
plotthat passescurrent_plotas the plot name.