anndata.AnnData.filename

AnnData.filename

Change to backing mode by setting the filename of a .h5ad file.

  • Setting the filename writes the stored data to disk.
  • Setting the filename when the filename was previously another name moves the backing file from the previous file to the new file. If you want to copy the previous file, use copy(filename='new_filename').