mantispy.io.write

Contents

mantispy.io.write#

mantispy.io.write(adata, path)#

Validate and write adata as h5ad (default) or zarr (.zarr suffix).

Parameters:
  • adata (AnnData) – Object to write, stamped with the current schema version before it is checked.

  • path (str | Path) – Where to write it. A .zarr suffix selects the zarr writer.

Raises:

ValueError – The object does not satisfy the schema, with every failure validate() found in the message.

Return type:

None