concat

Concatenate dataframes with batches.

Parameters

adata1: str First dataset.


adata2: str Second dataset.


batch_category1: str First batch annotation.


batch_category2: str Second batch annotation.


batch_key: str Add the batch annotation to obs using this key.


Web view

concat_screenshot

Python equivalent

adata_concat = adata1.concatenate(adata2, batch_key="BATCH", batch_categories=['1', '2'])