calour.transforming.random_permute_data

calour.transforming.random_permute_data(exp: calour.experiment.Experiment, normalize=True)[source]

Shuffle independently the reads of each feature

Creates a new experiment with no dependence between the features.

Note

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

Parameters:
  • exp (Experiment) – Input experiment object.
  • normalize (bool, optional) – True (default) to normalize each sample after completing the feature shuffling. False to not normalize
Returns:

With each feature shuffled independently

Return type:

Experiment