tiledbsoma.io.create_from_matrix

tiledbsoma.io.create_from_matrix(cls: type[_NDArr], uri: str, matrix: ndarray | Dataset | csr_matrix | csc_matrix | CSCDataset | CSRDataset, platform_config: Dict[str, Mapping[str, Any]] | object | None = None, ingest_mode: Literal['write', 'schema_only', 'resume'] = 'write', context: SOMATileDBContext | None = None) _NDArr

Create and populate the soma_matrix from the contents of matrix.

This function is deprecated and will be removed in a future version of this package.

To add a new matrix as a layer within an existing SOMA Experiment (e.g., to X, obsm, varm), please use the more specific functions tiledbsoma.io.add_X_layer or tiledbsoma.io.add_matrix_to_collection. If you need to create a standalone SOMA NDArray outside of a pre-defined Experiment structure, please use the direct SOMA API constructors, such as tiledbsoma.SparseNDArray.create.

Lifecycle

Deprecated.