tiledbsoma.ExperimentAxisQuery.to_anndata¶
- ExperimentAxisQuery.to_anndata(X_name: str, *, column_names: AxisColumnNames | None = None, X_layers: Sequence[str] = (), obsm_layers: Sequence[str] = (), obsp_layers: Sequence[str] = (), varm_layers: Sequence[str] = (), varp_layers: Sequence[str] = (), drop_levels: bool = False, dask: SOMADaskConfig | None = None) AnnData¶
 Exports the query to an in-memory
AnnDataobject.- Parameters:
 X_name – The X layer to read and return in the
Xslot.column_names – The columns in the
varandobsdataframes to read.X_layers – Additional X layers to read and return in the
layersslot.obsm_layers – Additional obsm layers to read and return in the obsm slot.
obsp_layers – Additional obsp layers to read and return in the obsp slot.
varm_layers – Additional varm layers to read and return in the varm slot.
varp_layers – Additional varp layers to read and return in the varp slot.
drop_levels – If true, drop unused categories from the
obsandvardataframes. Defaults toFalse.dask – If not
None, load the X layer as a Dask array. SeeDaskConfigfor details.
Lifecycle: experimental