rename_uns#

SingleCell.rename_uns(mapping, /)[source]#

Create a new SingleCell dataset with key(s) of uns renamed.

Parameters:

mapping: dict[str, str] | Callable[[str], str]

the renaming to apply, either as a dictionary with the old names as keys and the new names as values, or a function that takes an old name and returns a new name

Returns:

A new SingleCell dataset with the key(s) of uns renamed.

Return type:

SingleCell