You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Performance advantages of dask dataframes may be strongly limited here until High Level Expressions dask/dask#7933 is resolved (currently cannot infer only one column should be read from disk from ddf.read_*(...)["col"])
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:
importnumpyasnpd=np.random.normal(size=1000).reshape(100, -1)
importdask.arrayasday=da.from_array(d)
fromanndataimportAnnDataadata=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'>
Activity
gtca commentedon Jan 31, 2022
Not sure if related to this or if we should open a new one but it seems that the current writer fails if a
DaskArrayis a layer but doesn't fail when it's just an.X:ivirshup commentedon Jan 31, 2022
I think this issue will have may subparts, so I think individual issues for that level of specificity I think