-
Notifications
You must be signed in to change notification settings - Fork 26
refactoring and optimizations in annotation queries #582
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
Conversation
…s to presence masks
… and BinaryMatrix::sum_rows
adamant-pwn
left a comment
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.
Thanks for the pull request! Nice to see the time improvements. Could you please help me figure out where "Parallel annotation query for annotations with coords and counts in binary mode (previously was single-threaded)" happened? I might have missed it somehow
Yeah, it was calling a single-threaded |
adamant-pwn
left a comment
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.
See new comments for int_matrix.cpp and algorithms.hpp
adamant-pwn
left a comment
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.
LGTM
Status of parallelization for different query setups with batch query:
Examples
1 - 1.8x faster querying tara_assemblies
(Thanks to adaptive count accumulation, not reencoding the labels, and faster top-n selection.)
Logs
Before:
After:
2 - 2.9x faster querying (
--query-mode matches) of RefSeq with coords(Thanks to the parallelization.)
Logs
Before:
After: