Get and set object keys
Key(object, ...)Key(object, ...) <- value
# S3 method for Assay
Key(object, ...)
# S3 method for Assay
Key(object, ...) <- value
# S3 method for DimReduc
Key(object, ...)
# S3 method for DimReduc
Key(object, ...) <- value
# S3 method for Seurat
Key(object, ...)
An object
Arguments passed to other methods
Key value
Key
: the object key
Key<-
: object
with an updated key
# NOT RUN {
# Get an Assay key
Key(pbmc_small[["RNA"]])
# Set the key for an Assay
Key(pbmc_small[["RNA"]]) <- "newkey_"
Key(pbmc_small[["RNA"]])
# Get a DimReduc key
Key(object = pbmc_small[["pca"]])
# Set the key for DimReduc
Key(object = pbmc_small[["pca"]]) <- "newkey2_"
Key(object = pbmc_small[["pca"]])
# Show all keys associated with a Seurat object
Key(object = pbmc_small)
# }
Run the code above in your browser using DataLab