harreman.write_h5ad

Contents

harreman.write_h5ad#

harreman.write_h5ad(adata, filename=None)[source]#

Save an AnnData object to disk with Harreman-compatible preprocessing.

Parameters:
  • adata (AnnData) – The AnnData object to save.

  • filename (str, optional) – Path to the output .h5ad file. If omitted, an error is raised.

Notes

The wrapper ensures that custom Harreman/Hotspot fields remain fully restorable when loading the file with read_h5ad().