powered by
Get and set layer data
# S3 method for Assay $(x, i)# S3 method for Assay $(x, i) <- value
# S3 method for Assay $(x, i) <- value
$: Layer data for layer i
i
$<-: x with layer data value saved as i
$<-
x
value
An Assay object
Assay
Name of layer data to get or set
A matrix-like object to add as a new layer
v3 Assay object, validity, and interaction methods: Assay-class, Assay-validity, CreateAssayObject(), [.Assay(), [[.Assay(), dim.Assay(), dimnames.Assay(), merge.Assay(), split.Assay(), subset.Assay()
Assay-class
Assay-validity
CreateAssayObject()
[.Assay()
[[.Assay()
dim.Assay()
dimnames.Assay()
merge.Assay()
split.Assay()
subset.Assay()
rna <- pbmc_small[["RNA"]] # Fetch a layer with `$` rna$data[1:10, 1:4] # Add a layer with `$` rna$data <- rna$counts rna$data[1:10, 1:4]
Run the code above in your browser using DataLab