get_adata

MPPData.get_adata(X='mpp', obsm=(), obs=())[source]

Create adata from information contained in MPPData.

Channels are put in adata.var. Metadata is put in adata.obs.

Parameters
  • X (str) – Key in MPPData.data that should be in adata.X.

  • obsm (Union[Dict[str, str], List[str], Tuple[str, ...]]) – Keys in MPPData.data that should be in adata.obsm. Can be dict with keys the desired names in adata, and values the keys in MPPData.data

  • obs (Iterable[str]) – Keys from MPPData.data that should be in adata.obs in addition to all information from metadata.

Return type

adata with pixel-level observations.