
Last chance! 50% off unlimited learning
Sale ends in
Get and set the default assay
DefaultAssay(object, ...)DefaultAssay(object, ...) <- value
# S3 method for Graph
DefaultAssay(object, ...)
# S3 method for Graph
DefaultAssay(object, ...) <- value
# S3 method for Assay
DefaultAssay(object, ...)
# S3 method for Assay
DefaultAssay(object, ...) <- value
# S3 method for SeuratCommand
DefaultAssay(object, ...)
# S3 method for DimReduc
DefaultAssay(object, ...)
# S3 method for DimReduc
DefaultAssay(object, ...) <- value
# S3 method for Seurat
DefaultAssay(object, ...)
# S3 method for Seurat
DefaultAssay(object, ...) <- value
DefaultAssay
: The name of the default assay
DefaultAssay<-
: An object with the default assay updated
An object
Arguments passed to other methods
Name of assay to set as default
# Get current default assay
DefaultAssay(object = pbmc_small)
# Create dummy new assay to demo switching default assays
new.assay <- pbmc_small[["RNA"]]
Key(object = new.assay) <- "RNA2_"
pbmc_small[["RNA2"]] <- new.assay
# switch default assay to RNA2
DefaultAssay(object = pbmc_small) <- "RNA2"
DefaultAssay(object = pbmc_small)
Run the code above in your browser using DataLab