rename_cell_types#
- Pseudobulk.rename_cell_types(mapping, /)[source]#
Create a new Pseudobulk dataset with cell type(s) renamed.
- Parameters:
mapping: dict[str, str] | Callable[[str], str]
the renaming to apply, either as a dictionary with old cell type names as keys and new names as values, or a function that takes an old name and returns a new name. If mapping is a dictionary, cell types missing from its keys will retain their original names.
- Returns:
A new Pseudobulk dataset with the cell type(s) renamed.
- Return type: