tiledbsoma.io.add_X_layer

tiledbsoma.io.add_X_layer(exp: Experiment, measurement_name: str, X_layer_name: str, X_layer_data: ndarray | Dataset | csr_matrix | csc_matrix | CSCDataset | CSRDataset, ingest_mode: Literal['write', 'schema_only', 'resume'] = 'write', use_relative_uri: bool | None = None, context: SOMATileDBContext | None = None) None

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

Use ingest_mode="resume" to not error out if the schema already exists.

Lifecycle

Maturing.