calour.transforming.scale

calour.transforming.scale(exp: calour.experiment.Experiment, axis=0, inplace=False)[source]

Standardize a dataset along an axis

Warning

It will convert the Experiment.data from the sparse matrix to dense array.

Note

This function is also available as a class method Experiment.scale()

Note

This function is also available as a class method Experiment.scale()

Parameters:
  • exp (Experiment) – Input experiment object.
  • exp – Input experiment object.
  • axis (0, 1, 's', or 'f') – 0 or ‘s’ means scaling occur sample-wise; 1 or ‘f’ feature-wise.
Returns:

Return type:

Experiment