tiledbsoma.io.ExperimentAmbientLabelMapping.subset_for_anndata

ExperimentAmbientLabelMapping.subset_for_anndata(adata: AnnData) Self

Return a copy of this object containing only the information necessary to ingest the specified AnnData.

This is an optional step, used to improve the performance of multi-process or distributed ingestion. It reduces the registration information transmitted to the worker process performing the call to from_anndata or from_h5ad.

Parameters:

h5ad_path – an anndata.AnnData, previously registered in this ExperimentAmbientLabelMapping.

Returns:

A new ExperimentAmbientLabelMapping scoped specifically for the AnnData.