calour.amplicon_experiment.AmpliconExperiment.reorder

AmpliconExperiment.reorder(new_order, axis=0, inplace=False)[source]

Reorder according to indices in the new order.

Note that we can also drop samples in new order.

Parameters:
  • new_order (Iterable of int or boolean mask) – the order of new indices
  • axis (0, 1, 's', or 'f') – the axis where the reorder occurs. 0 or ‘s’ means reodering samples; 1 or ‘f’ means reordering features.
  • inplace (bool, optional) – reorder in place.
Returns:

experiment with reordered samples

Return type:

Experiment