scviva.tools.harreman.preprocessing.write_h5ad#

scviva.tools.harreman.preprocessing.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 | None

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().