FACSPy.rename_channel

Contents

FACSPy.rename_channel#

FACSPy.rename_channel(adata, old_channel_name, new_channel_name, copy=False)#

Renames a channel name.

Parameters:
  • adata (AnnData) – The anndata object of shape n_obs x n_vars where rows correspond to cells and columns to the channels.

  • current_channel_name – Current channel name. Has to be in adata.var_names.

  • new_channel_name (str) – The name that the current channel name is replaced with.

  • copy (bool) – Whether to copy the dataset.

Return type:

AnnData or None, depending on copy.

Examples

>>> import FACSPy as fp
>>> dataset = fp.create_dataset(...)
>>> fp.remove_channel(dataset, "CD16")