-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[python] Prototype Dask-backed to_anndata
#3740
base: main
Are you sure you want to change the base?
Conversation
c08668b
to
59f3c4c
Compare
6e25e97
to
a844f73
Compare
a844f73
to
9dbc67f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3740 +/- ##
==========================================
- Coverage 89.15% 88.94% -0.22%
==========================================
Files 54 56 +2
Lines 6420 6587 +167
==========================================
+ Hits 5724 5859 +135
- Misses 696 728 +32
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
to_anndata
to_anndata
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryan-williams this is truly gorgeous.
Several relatively minor things flagged. I've nothing "big" to add.
I defer to @ivirshup who's got the Dask-user context which I lack.
Thank you for your time on this!
"id": "510dcf31-f0fb-4652-bcfb-abdf4cb6f1e2", | ||
"metadata": {}, | ||
"source": [ | ||
"The `X` matrix is a [Dask Array]:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wouldn't hurt to add type(adata.X)
as another cell -- just a thought
Co-authored-by: John Kerl <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed most comments, a couple still TODO
CR: notebook copy fix Co-authored-by: John Kerl <[email protected]>
Changes
Experiment{,AxisQuery}.to_anndata
can optionally produce an AnnData withX
matrix of typedask.Array
scipy.sparse.csr_matrix
's, produced lazily from slices of the underlyingExperiment
orExperimentAxisQuery
dask
is introduced as a "dev" dependency (for tests of this code)requirements_spatial.txt
, for similar reasonsimport dask
only occurs inside relevant functions and test-cases; this change should be transparent to users.I've also enumerated and reordered the tutorials in tutorials.rst.
sc-64138