FlowCytometryTools.QuadGate

class FlowCytometryTools.QuadGate(vert, channels, region, name=None)

Passes events in a given quadrant of a 2d-plot.

Parameters:

vert : tuple

A tuple of length 2: (x_center, y_center) Specifies the center of the quad gate.

channels : [‘channel 1 name’, ‘channel 2 name’]

Defines the names of the channels

region : [‘top left’, ‘top right’, ‘bottom left’, ‘bottom right’]

For example, if ‘top left’, the gate only passes through data that lies in the top left region.

name : str

The gate’s name.

Methods

plot([flip, ax_channels, ax]) Plots the gate.
validiate_input() Optional method to be defined by derived class
plot(flip=False, ax_channels=None, ax=None, *args, **kwargs)

Plots the gate.

Parameters:

ax : axes to use for plotting the gate on

flip : boolean

If True, draws the interval along the y-axis instead of along the x-axis

Returns:

Reference to created artists. :