scbiot.pp.setup_anndata#
- scbiot.pp.setup_anndata(adata, *, var_key='scBIOT_OT', batch_key='batch', pseudo_key='leiden_scBIOT_OT', true_key=None, overwrite=False)#
Register the AnnData fields the transformer VAE relies on.
Parameters#
- adata:
AnnData object that already contains the OT-aligned embedding.
- var_key:
Key pointing to the numerical representation (
adata.obsm[var_key]oradata.X).- batch_key:
adata.obscolumn that stores batch labels.- pseudo_key / true_key:
Optional
adata.obscolumns for pseudo and ground-truth labels. Set either toNoneto disable that label type.- overwrite:
Replace an existing registration in
adata.unswhen True.