write_h5seurat

write_h5seurat(adata, path, *, assay='RNA', chunk_size=5000)

Write an AnnData object to H5Seurat (SeuratDisk layout).

The object is written to a temporary H5AD first and then converted.

Parameters

Name Type Description Default
adata ad.AnnData The object to write. required
path Pathish Destination .h5seurat path. required
assay str Seurat assay name to write the matrix under. 'RNA'
chunk_size int Cells per streamed chunk of the conversion. 5000

Returns

Name Type Description
Path path.