set_var_names#
- Pseudobulk.set_var_names(column, /, *, cell_types=None, excluded_cell_types=None)[source]#
Sets a column as the new first column of var, i.e. the var_names.
- Parameters:
column: str
the column name in var; must be String, Enum, Categorical, or integer
cell_types: str | Iterable[str] | None
one or more cell types to operate on; if None, operate on all cell types. Mutually exclusive with excluded_cell_types.
excluded_cell_types: str | Iterable[str] | None
one or more cell types to exclude from the operation; mutually exclusive with cell_types
- Returns:
A new Pseudobulk dataset with column as the first column of each cell type’s var. If column is already the first column for every cell type, return this dataset unchanged.
- Return type: