Plots
A Plot
is an image representing of cytometry data.
Properties
The Python SDK Plot
only has display
, get
, and save
methods. In the case
of Plot
, properties
refers to an optional dictionary of configuration
arguments to pass to the get
method. Options are detailed above.
Methods
cellengine.resources.plot.Plot
dataclass
A class representing a CellEngine plot.
compensation: Union[str, FILE_INTERNAL, UNCOMPENSATED]
instance-attribute
data: bytes
instance-attribute
experiment_id: str
instance-attribute
fcs_file_id: str
instance-attribute
plot_type: str
instance-attribute
population_id: Optional[str]
instance-attribute
x_channel: str
instance-attribute
y_channel: str
instance-attribute
z_channel: Optional[str]
instance-attribute
display()
get(experiment_id, fcs_file_id, plot_type, x_channel, y_channel, z_channel=None, population_id=None, compensation=0, **kwargs)
classmethod
Parameters:
Name | Type | Description | Default |
---|---|---|---|
experiment_id
|
str
|
ID of the experiment to which the file belongs. |
required |
fcs_file_id
|
str
|
ID of file for which to build a plot. |
required |
plot_type
|
str
|
"contour", "dot", "density" or "histogram" (case-insensitive) |
required |
x_channel
|
str
|
X channel name. |
required |
y_channel
|
str
|
(for 2D plots) Y channel name. |
required |
z_channel
|
Optional[str]
|
(for dot plots colored by a 3rd channel) Color channel name. |
None
|
population_id
|
Optional[str]
|
Defaults to ungated. |
None
|
compensation
|
string ID, 0 or -1
|
Compensation to use for gating and display. Defaults to uncompensated (0). |
0
|
**kwargs
|
Dict
|
|
{}
|