calour.filtering.downsample(exp: calour.experiment.Experiment, field, axis=0, num_keep=None, inplace=False, random_state=None)[source]¶Downsample the data set.
This down samples all the samples/features to have the same number of samples/features for each categorical value of the field in sample_metadata or feature_metadata.
Note
This function is also available as a class method Experiment.downsample()
| Parameters: |
|
|---|---|
| Returns: | |
| Return type: |
See also