cytonormpy._normalization.Splines.transform

cytonormpy._normalization.Splines.transform#

Splines.transform(data, batch, cluster, channel)#

Extracts the correct spline function according to batch, cluster and channel and returns the corrected data according to this spline function.

Parameters:
  • data (ndarray) – The data to transform.

  • batch (Union[float, str]) – The batch where the input data are originating from.

  • cluster (Union[float, str]) – The cluster that the data are originating from.

  • channel (str) – The channel that the data are originating from.

Return type:

A numpy array with the corrected expression values.