anndata.WriteFeatures#

class anndata.WriteFeatures(*values)[source]#

Bases: Flag

Fine-grained write behavior: one flag per on-disk feature.

Pass a combination of these to a write function’s compat argument to pick features individually. Flags you leave out are disabled, so to add one to a profile, combine it with the profile’s features, e.g. WriteCompat.DEFAULT.features | WriteFeatures.ACCESSOR.

Attributes

ACCESSOR = 1[source]#

Write anndata.acc accessors using the accessor encoding (anndata ≥0.14).

INDEXED_KEYS = 2[source]#

Store mapping keys and dataframe column names in an array instead of as child names (anndata ≥0.14).

This allows any string as key, e.g. a/b, a:b, or NUL in uns, and makes dataframes follow the zarr dataframe convention.