!pip install bbknn # install external libraries import scanpy as sc sc.tl.pca(adata) sc.external.pp.bbknn(adata, batch_key='BATCH')