The tiledbsoma.io module¶
Functions¶
Data conversion to/from TileDB-SOMA
Reads an |
|
Writes an AnnData object to an |
|
Converts the experiment group to AnnData format and writes it to the specified |
|
Converts the experiment group to AnnData format. |
Updating values within a TileDB-SOMA Experiment
This is useful for adding X data, for example from Scanpy's |
|
This is useful for adding X/obsp/varm/etc data, for example from Scanpy's |
|
Create and populate the |
|
Given a new Pandas dataframe with desired contents, updates the SOMA experiment's entire |
|
Given a new Pandas dataframe with desired contents, updates the SOMA experiment's specified measurement's entire |
|
Given a |
Growing a TileDB-SOMA Experiment
Extends registration data from the baseline, already-written SOMA experiment to include multiple H5AD input files. |
|
Extends registration data from the baseline, already-written SOMA experiment to include multiple H5AD input files. |
|
Appends new data to an existing |
|
Writes new rows to an existing |
|
Writes new rows to an existing |
|
Returns the current shapes of the elements in the |
|
Outputs the current shapes of the elements in the |
|
Upgrade the elements inside a SOMA |
|
Resize the elements in the SOMA |
Classes¶
- class tiledbsoma.io.ExperimentAmbientLabelMapping(*, obs_axis: AxisAmbientLabelMapping, var_axes: dict[str, AxisAmbientLabelMapping], prepared: bool = False)¶
For all the to-be-appended AnnData/H5AD inputs in SOMA multi-file append-mode ingestion, this class contains information required to perform ingestion via
from_h5ad
orfrom_anndata
.This class tracks the mapping from input-data
obs
orvar
ID-column name (barcode ID, gene symbol) to SOMA join IDs for SOMA experimentobs
orvar
, as well as any dictionary/enumeration values.Methods
prepare_experiment
(experiment_uri[, context])Prepare experiment for ingestion.
subset_for_anndata
(adata)Return a copy of this object containing only the information necessary to ingest the specified AnnData.
subset_for_h5ad
(h5ad_path)Subset this plan to only contain ID maps useful for this H5AD.