tiledbsoma.io.add_matrix_to_collection¶
- tiledbsoma.io.add_matrix_to_collection(exp: Experiment, measurement_name: str, collection_name: str, matrix_name: str, matrix_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/obsp/varm/etc 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.