came.utils.preprocess.split_adata

came.utils.preprocess.split_adata(adata: AnnData, key: str) Dict[str, AnnData]

Split an AnnData object into a dict of multiple objects

Parameters:
  • adata – the AnnData object to be split

  • key – a column-name of adata.obs

Return type:

a dict of AnnData