Hi,
I am using a merged anndata object and passing the batch_key to the spin function. However, after spin the batch labels are misaligned.
Upon further debugging I think this line is causing the issue.
|
adata = sc.concat(adatas, keys=batch_labels, label=batch_key, join='inner') |
Changing it to:
adata = sc.concat(adatas, keys=batch_labels, label=None, join='inner')
seems to work.
Thanks!
Hi,
I am using a merged anndata object and passing the
batch_keyto thespinfunction. However, afterspinthe batch labels are misaligned.Upon further debugging I think this line is causing the issue.
spin/src/spin/spin.py
Line 225 in af57fbe
Changing it to:
seems to work.
Thanks!