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

Remove empty cells from MEX files before loading them #1314

Open
arteymix opened this issue Jan 9, 2025 · 2 comments
Open

Remove empty cells from MEX files before loading them #1314

arteymix opened this issue Jan 9, 2025 · 2 comments
Assignees
Labels
performance single cell Issues related to single-cell data support

Comments

@arteymix
Copy link
Member

arteymix commented Jan 9, 2025

This is causing problems downstream because we end up storing a lot of text for the cell IDs and indices for cell type assignments.

@arteymix
Copy link
Member Author

arteymix commented Jan 9, 2025

No package out there that read 10X MEX supports writing it back to disk, so we will have to include that logic in the loader.

The simplest solution I could come up with was to read all the used column indices and rewrite the sparse matrix by shifting the column indices. The reported cell IDs also have to reflect that, so getSingleCellDimension() will have to peek at the matrix file.

@arteymix arteymix self-assigned this Jan 10, 2025
@arteymix arteymix added single cell Issues related to single-cell data support performance labels Jan 10, 2025
@arteymix
Copy link
Member Author

Completed! I'll deploy it tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance single cell Issues related to single-cell data support
Projects
None yet
Development

No branches or pull requests

1 participant