scHopfield.tools.load_jacobians
- scHopfield.tools.load_jacobians(adata: AnnData, filename: str, load_eigenvectors: bool = False) ndarray | None[source]
Load Jacobian eigenvalues and optionally eigenvectors from HDF5 file.
Loads eigenvalues into adata.obsm[‘jacobian_eigenvalues’]. Optionally loads and returns eigenvectors as a numpy array (not stored in adata to save memory).
- Parameters:
- Returns:
If load_eigenvectors=True, returns eigenvectors array of shape (n_cells, n_genes, n_genes). Otherwise returns None. Always loads eigenvalues into adata.obsm[‘jacobian_eigenvalues’]
- Return type:
Optional[np.ndarray]