LogTransform Class

class flowkit.transforms.LogTransform(param_t, param_m)

Parametrized logarithmic transformation, implemented as defined in the GatingML 2.0 specification:

flog(x, T, M) = (1 / M) * log_10(x / T) + 1

This transformation provides a logarithmic display that maps scale values from the (0, T] interval to the (−∞, 1] interval such that the data value T is mapped to 1 and M decades of data are mapped onto the unit interval.

Parameters:
  • param_t – parameter for the top of the linear scale (e.g. 262144)

  • param_m – parameter for desired number of 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