import scanpy as sc sc.pp.neighbors(adata) sc.tl.leiden(adata) sc.tl.umap(adata) sc.pl.umap(adata, color='BATCH')