renameGroups.Rd
Allows to rename groups within a discrete grouping variable (such as
cluster variables) of the feature data in slot @fdata as well as in slot @dea
where differential gene expression analysis results are stored. Use renameSegments()
to rename already drawn segments.
renameGroups(
object,
grouping_variable,
...,
keep_levels = NULL,
of_sample = NA
)
renameSegments(object, ..., of_sample = NA)
A valid spata-object.
Character value. The grouping variable of interest.
The groups to be renamed specified according to the following
syntax: 'new_group_name' =
'old_group_name'.
This argument is currently inactive. It might be reactivated when spata-objects can store more than one sample.
An updated spata-object.
#Not run:
object <-
renameGroups(object = spata_object,
grouping_variable = "seurat_clusters",
"first_new_group" = "1",
"sec_new_group" = "2")