tacco.utils.write_adata_x_var_obs

write_adata_x_var_obs(adata, filename, compression='gzip', **kwargs)[source]

Write only .X, .obs, and .var to an .h5ad file.

In many cases, only this “essential” information is required in other tools, which makes it more practicable to read it with custom hdf5 code in non-python environments.

Parameters:
  • adata – An AnnData to export

  • filename – The name of the file to write the essential information from the AnnData to

  • compression – Forwarded to anndata.AnnData.write(); note that the default here is using compression.

  • kwargs – Extra keyword arguments are forwarded to anndata.AnnData.write().

Returns:

None.