cospar.hf.update_time_ordering

cospar.hf.update_time_ordering(adata, updated_ordering=None, mode='force')

Update the ordering of time points at adata.uns[‘time_ordering’]

Parameters
updated_ordering : list, optional (default: none)

A list of distinct time points in ascending order. If not provided, sort the time variable directly. However, these time variables are string. Their sorting may not be correct.

mode : str

Options: {‘force’,’auto’}. In the ‘auto’ mode, the algorithm only update the ordering if ‘time_ordering’ has not been computed before. The default method ‘force’ will always update the ordering.