property AnnData.layers: Union[Layers, 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

Layers | LayersViewUnion[Layers, LayersView]