-
Notifications
You must be signed in to change notification settings - Fork 7
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
Significantly sped up filtering and minor bug fixes #51
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… functionality added back
diogomart
approved these changes
Oct 9, 2024
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.
This is so much faster. Thanks a lot 👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Main change:
Cleaned up the method (
_generate_result_filtering_query
) that writes the database filtering query, and restructured it completely. Previously when filtering for interactions, the query would do multiple complete scans of the interactions/interaction_bitvector table. This is why filtering took even longer in 2.0.0 once it used the "long-skinny" Interactions table, as this table is significantly longer than the interaction_bitvector table. Instead it now uses CASE statements to evaluate interaction combinations, and scans the Interactions table only once.The queries for all the different filters were fully or partially re-written to support the new format. A few methods were added to support this new query style such as pre-formatting filters so they are easily concatenated into a query string. A lot of specialized functionality was also taken out of the main filtering method and made into separate methods, including ligand clustering, and complex methods related to filtering for the chemical composition of the ligand.
A few extra indices were added to the interactions and results table.
Minor changes:
The documentation was updated to reflect the new changes, as well as fixing some bugs in the presentation of the readthedocs (needed to mock a module to display the full RingtailCore contents including objects and methods). I also updated the installation and testing instructions to include conda-forge (new), and made it more clear the differences between pip, conda-forge, and source code installation.
There was a bug in the API method
drop_bookmark
which would make Ringtail freeze, this was fixed.The last big bug fix was how ligand filter values are handled when using the Ringtail CLI. If the ligand filters were supplied with more than one value, it would not append them to a list but instead use the last written value. This was fixed, as well as the format for
ligand_substruct_pos
was changed to support multiple filter values.