tiledbsoma.ExperimentAxisQuery.to_anndata¶
- abstract 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) AnnData¶
Executes the query and return result as an
AnnDatain-memory object.- 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 – Indicate whether unused categories on axis frames should be dropped. By default, False, the categories which are present in the SOMA Experiment and not present in the query output are not dropped.
Lifecycle: maturing