property AnnData.layers: Union[anndata._core.aligned_mapping.Layers, anndata._core.aligned_mapping.LayersView]

Dictionary-like object with values of the same dimensions as X.

Layers in AnnData are inspired by loompy’s Layers.

Return the layer named "unspliced":


Create or replace the "spliced" layer:

adata.layers["spliced"] = ...

Assign the 10th column of layer "spliced" to the variable a:

a = adata.layers["spliced"][:, 10]

Delete the "spliced" layer:

del adata.layers["spliced"]

Return layers’ names:

Return type

Mapping | MappingUnion[Mapping, Mapping]