anndata.types.AnnDataLikeMetadataOnly#

class anndata.types.AnnDataLikeMetadataOnly(*args, **kwargs)[source]#

The AnnData API excluding data matrices.

This can be used for isinstance() checks in code that only accesses metadata. Indexing with a bare str is not portable: AnnData selects an observation, MuData a modality.

Attributes

n_obs

n_vars

obs

obs_names

obsm

obsp

shape

(n_obs, n_vars, ...), implementations may have more dimensions.

uns

var

var_names

varm

varp

Methods

__getitem__(**kwds)

Helper for @overload to raise when called.

__len__()

__setitem__(index, value)