scHopfield.tools.save_embedding

scHopfield.tools.save_embedding(adata: AnnData, filename: str)[source]

Save UMAP embedding and energy grid data to file.

Saves the UMAP model, high-dimensional grid points, and grid coordinates to a pickle file for later loading.

Parameters:
  • adata (AnnData) – Annotated data object with computed embedding

  • filename (str) – Path to save the embedding data (will be saved as pickle file)