# cytoflow.operations.ratio¶

class cytoflow.operations.ratio.RatioOp[source]

Create a new “channel” from the ratio of two other channels.

name

The operation name. Also becomes the name of the new channel.

Type: Str
numerator

The channel that is the numerator of the ratio.

Type: Str
denominator

The channel that is the denominator of the ratio.

Type: Str

Examples

>>> ratio_op = flow.RatioOp()
>>> ratio_op.numerator = "FITC-A"
>>> ex5 = ratio_op.apply(ex4)

apply(experiment)[source]

Applies the ratio operation to an experiment

Parameters: experiment (Experiment) – the old experiment to which this op is applied a new experiment with the new ratio channelThe new channel also has the following new metadata: numerator : Str What was the numerator channel for the new one? denominator : Str What was the denominator channel for the new one? Experiment