Rename assays in a Seurat object

RenameAssays(
  object,
  assay.name = NULL,
  new.assay.name = NULL,
  verbose = TRUE,
  ...
)

Arguments

object

A Seurat object

assay.name

original name of assay

new.assay.name

new name of assay

verbose

Whether to print messages

...

Named arguments as old.assay = new.assay

Value

object with assays renamed

Examples

RenameAssays(object = pbmc_small, RNA = 'rna')
#> Renaming default assay from RNA to rna
#> Warning: Key ‘rna_’ taken, using ‘ocide_’ instead
#> An object of class Seurat 
#> 230 features across 80 samples within 1 assay 
#> Active assay: rna (230 features, 20 variable features)
#>  3 layers present: counts, data, scale.data
#>  2 dimensional reductions calculated: pca, tsne