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

Updated consume() in CrDirReader [Polars -> Pandas] #134

Merged

Conversation

Gautam8387
Copy link
Contributor

@Gautam8387 Gautam8387 commented Nov 6, 2024

Current consume() function uses polars when reading matrix.mtx.

This creates an issue for a very large file (cells > 1.5 M) is compressed.

Replaces the IO operations with pandas for better support.

The notebook consume.ipynb here has shows the memory footprint of the _get_valid_barcodes() and consume() functions for the updated CrDirReader class on a 783K cell dataset. The memory footprint is significantly lower and bounded for pandas compared to polars.

@Gautam8387 Gautam8387 marked this pull request as ready for review December 17, 2024 06:21
@parashardhapola parashardhapola merged commit fd40926 into parashardhapola:master Dec 17, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants