Skip to content

Awkward array support #404

@DanielMedic

Description

@DanielMedic

The now obsolete anndata package can handle awkward arrays, e.g. adata$obsm$airr <- my_airr where airr is an "awkward.highlevel.Array" object. But in anndataR, this fails with the error:

Error in `private$.validate_aligned_mapping()`:
! Unexpected shape for obsm[['airr']]
ℹ Expected [n], got []
Run `rlang::last_trace()` to see where the error occurred.

where n is the value of nrow(adata). It appears that private$.validate_aligned_mapping does not know how to get the dimensions of airr, whereas the equivalent check in anndata does.

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