Teichlab / bbknn

Batch balanced KNN

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Removing multiple covariates during integration

connorhknight opened this issue · comments

Hi,

I was wondering if it is possible for bbknn to correct for more than one batch indicator. i.e. different projects and different donors.

Thanks!

Connor

You could create a new .obs column which combines your multiple batch indicators and feed that in. Something along the lines of adata.obs['bbknn_batch'] = [str(i)+'-'+str(j) for i,j in zip(adata.obs['project'], adata.obs['donor'])] should do the trick.