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
orfrom_h5ad
.- Parameters:
h5ad_path – an
anndata.AnnData
, previously registered in thisExperimentAmbientLabelMapping
.- Returns:
A new
ExperimentAmbientLabelMapping
scoped specifically for the AnnData.