Skip to content
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] Partition sparse matrix reads in tiledbsoma.io.to_anndata #3328

Merged
merged 60 commits into from
Nov 19, 2024

Conversation

bkmartinjr
Copy link
Member

@bkmartinjr bkmartinjr commented Nov 15, 2024

Partition reads to sparse matrices in the soma.io.to_anndata code path. This change is solely for performance, and has no functional impact.

#3345 [sc-59595]

@johnkerl johnkerl changed the title partition sparse matrix reads in soma.io.to_anndata [python] Partition sparse matrix reads in tiledbsoma.io.to_anndata Nov 15, 2024
apis/python/src/tiledbsoma/io/outgest.py Outdated Show resolved Hide resolved
apis/python/src/tiledbsoma/io/outgest.py Outdated Show resolved Hide resolved
Copy link
Member

@johnkerl johnkerl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @bkmartinjr -- this is a tour de force.

Looks good to me 👀 -wise; also, I ran to_anndata on local disk, S3, and cloud-hosted, comparing main to this branch, on EC2 Ubuntu m5.4xlarge, as well as on my M1 Mac. (Several variables there, all test-driven.) (Re Mac: I have a general feeling, more from the R side than the Python side admittedly, that 'threads are a little different' on MacOS so this was worth some interactive/hands-on/eyes-on experimenting.) I saw a speedup at a solid 2X at 100K cells, with all storage backends. I'll try 300K runs later; I won't report back here unless I see something surprising (which I don't expect.)

cc @nguyenv for another pair of eyes.

Base automatically changed from bkmartinjr/fastercsx to main November 19, 2024 00:54
@bkmartinjr bkmartinjr merged commit 3808ed9 into main Nov 19, 2024
11 checks passed
@bkmartinjr bkmartinjr deleted the bkmartinjr/partition_to_anndata branch November 19, 2024 01:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants