Extract default identities from object in factor form.

# S3 method for liger
Idents(object, ...)

# S3 method for liger
Idents(object, ...) <- value

Arguments

object

LIGER object name.

...

Arguments passed to other methods

value

name of column in cellMeta slot to set as new default cluster/ident

Value

factor

object

Note

Use of Idents<- is only for setting new default ident/cluster from column already present in cellMeta. To add new column with new cluster values to cellMeta and set as default see Rename_Clusters.

Examples

if (FALSE) {
# Extract idents
object_idents <- Idents(object = liger_object)
}

if (FALSE) {
# Set idents
Idents(object = liger_object) <- "new_annotation"
}