mosaicmpi.dataset.Dataset.write_h5ad

mosaicmpi.dataset.Dataset.write_h5ad#

Dataset.write_h5ad(filename: str, safe_mode: bool = True)#

Write dataset to .h5ad file.

Parameters:
  • filename (bool,) – filepath

  • safe_mode – If overwriting an existing h5ad file of the same name, then the new file is first written to a temporary file before overwriting. By doing this, errors during writing do not corrupt the existing h5ad file. Only after the file has successfully been written to the temporary file does the original file get overwritten.