The tiledbsoma.io module

Functions

tiledbsoma.io.from_h5ad

Reads an .h5ad file and writes it to an Experiment.

tiledbsoma.io.from_anndata

Writes an AnnData object to an Experiment.

tiledbsoma.io.add_X_layer

This is useful for adding X data, for example from Scanpy's scanpy.pp.normalize_total, scanpy.pp.log1p, etc.

tiledbsoma.io.add_matrix_to_collection

This is useful for adding X/obsp/varm/etc data, for example from Scanpy's scanpy.pp.normalize_total, scanpy.pp.log1p, etc.

tiledbsoma.io.create_from_matrix

Create and populate the soma_matrix from the contents of matrix.

tiledbsoma.io.to_h5ad

Converts the experiment group to AnnData format and writes it to the specified .h5ad file.

tiledbsoma.io.to_anndata

Converts the experiment group to AnnData format.