calour.transforming.normalize

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

Normalize the sum of each sample (axis=0) or feature (axis=1) to sum total

Note

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

Parameters:
  • exp (Experiment) – Input experiment object.
  • total (float) – the sum (along axis) to normalize to
  • axis (0, 1, 's', or 'f', optional) – the axis to normalize. 0 or ‘s’ (default) is normalize each sample; 1 or ‘f’ to normalize each feature
  • inplace (bool, optional) – False (default) to create a copy, True to replace values in exp
Returns:

the normalized experiment

Return type:

Experiment