besca.concate_adata

besca.concate_adata(adata1, adata2)[source]

Concatenate two adata objects based on the observations

this function also merges the objects saved in .raw and generates a new combined.raw. The obs from adata1 are preserved. Those from adata2 are lost.

Parameters:
  • adata1 (´AnnData´) – first Anndata object that is to be concatenated (the obs and obs_names will be taken from here)

  • adata2 (´AnnData´) – second Anndata objec that is to be concatenated

Returns:

returns the AnnData object contained in .raw with all relevant annotation

Return type:

AnnData