Skip to content

Dask support #693

Open

Description

@ivirshup

It would be nice if we could seamlessly hold dask arrays and dataframes inside of an AnnData object.

I would consider this issue closed once most operations on an AnnData would work when it contained dask objects. Reading in an AnnData with all elements backed by dask would be separate and downstream task.

See also:

Activity

  1. gtca commented on Jan 31, 2022

    @gtca

    Not sure if related to this or if we should open a new one but it seems that the current writer fails if a DaskArray is a layer but doesn't fail when it's just an .X:

    import numpy as np
    d = np.random.normal(size=1000).reshape(100, -1)
    
    import dask.array as da
    y = da.from_array(d)
    
    from anndata import AnnData
    adata = AnnData(y)
    adata.layers["y"] = y.copy()
    
    adata.write("dask.h5ad")
    # => TypeError: No method has been defined for writing <class 'dask.array.core.Array'> elements to <class 'h5py._hl.group.Group'>
  2. ivirshup commented on Jan 31, 2022

    @ivirshup
    MemberAuthor

    I think this issue will have may subparts, so I think individual issues for that level of specificity I think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions