itpseq.DataSet.reorder_samples#
- DataSet.reorder_samples(order, validate=True, reorder_replicates=True)[source]#
Reorders the samples in the DataSet.
This method is useful to specify a custom order to use in the different graphs (e.g. in
itoeprint).- Parameters:
order (list) – New order of the samples
validate (bool) – Ensure the new order contains all samples.
reorder_replicates (bool) – Also reorder the replicates.
Examples
>>> data.reorder_samples(['sampleY', 'sampleX', 'reference'])