Skip to content

Speedup CB loading via indexing - #43

Open
aerval wants to merge 17 commits into
gaolabtools:v1.1from
aerval:v1.1
Open

Speedup CB loading via indexing#43
aerval wants to merge 17 commits into
gaolabtools:v1.1from
aerval:v1.1

Conversation

@aerval

@aerval aerval commented Dec 3, 2024

Copy link
Copy Markdown

Hello,

Cell barcode loading was quite slow for me (~48 min for a file with 8000 barcodes) and I figured it was because accessing pandas data frame via column matching is quite slow. The implementation via indexing of the df speeds this up dramatically (less than 5 seconds for the same file for me), while producing the exact same dictionary (CB_dict, tested on two different files via md5).

I understand that this may not be a problem on all systems and definitely is not an issue on smaller dataset but maybe it helps others as well.

Cheers,
Philipp

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.

1 participant