Skip to content

Batch labels misaligned after spin #6

@atharva-bhagwat

Description

@atharva-bhagwat

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions