save_seurat
- scib.preprocessing.save_seurat(adata, path, batch, hvgs=None)
Save an
anndataobject to file as a Seurat objectConvert
anndataobject to Seurat object throughrpy2and save to file as “RDS” fileThis function only accounts for batch assignments and highly variable genes. All other keys are not transferred to the Seurat object.
- Parameters
adata – anndata object to be saved
path – file path where the object should be saved
batch – key in
adata.obsthat holds batch assigmentshvgs – list of highly variable genes