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 ofmatrix
.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 functionstiledbsoma.io.add_X_layer
ortiledbsoma.io.add_matrix_to_collection
. If you need to create a standalone SOMA NDArray outside of a pre-definedExperiment
structure, please use the direct SOMA API constructors, such astiledbsoma.SparseNDArray.create
.Lifecycle
Deprecated.