calour.amplicon_experiment.AmpliconExperiment.scale

AmpliconExperiment.scale(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()

Parameters:
  • exp (Experiment) – 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