LogicleTransform Class
- class flowkit.transforms.LogicleTransform(transform_id, param_t, param_w, param_m, param_a)
Logicle transformation, implemented as defined in the GatingML 2.0 specification:
logicle(x, T, W, M, A) = root(B(y, T, W, M, A) − x)
where B is a modified bi-exponential function defined as:
B(y, T, W, M, A) = ae^(by) − ce^(−dy) − f
The Logicle transformation was originally defined in the publication:
Moore WA and Parks DR. Update for the logicle data scale including operational code implementations. Cytometry A., 2012:81A(4):273–277.
- Parameters:
transform_id – A string identifying the transform
param_t – parameter for the top of the linear scale (e.g. 262144)
param_w – parameter for the approximate number of decades in the linear region
param_m – parameter for the number of decades the true logarithmic scale approaches at the high end of the scale
param_a – parameter for the additional number of negative decades
- apply(events)
Apply transform to given events.
- Parameters:
events – NumPy array of FCS event data
- Returns:
NumPy array of transformed events
- inverse(events)
Apply the inverse transform to given events.
- Parameters:
events – NumPy array of FCS event data
- Returns:
NumPy array of inversely transformed events