calour.experiment.Experiment.normalize

Experiment.normalize(total=10000, axis=0, inplace=False)[source]

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

Parameters:
  • 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