Skip to content

Pre-processing only supports .obs and .X attributes #52

@felix0097

Description

@felix0097

Report

Currently, our pre-processing code only supports the .obs and .X attributes. If an input anndata object contains other attributes e.g. .obsm or .raw, the preprocessing code becomes very slow.

https://github.com/laminlabs/arrayloaders/blob/e42d36770582adb99767b3e1f5d56f7cdc6fe4db/src/arrayloaders/io.py#L187-L191

We should update the code above or raise an error in this case.

As far as I remember, the code become significantly slower when shuffling the shard via adata_chunk = adata_chunk[idxs, :]. That's why implemented the code in the current way. Perhaps this problem got solved?

Versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions