[query] add hl.utils.genomic_range_table#12679
Merged
danking merged 6 commits intohail-is:mainfrom Feb 16, 2023
Merged
Conversation
CHANGELOG: In Query on Batch, `hl.balding_nichols_model` is slightly faster. Also added `hl.utils.genomic_range_table` to quickly create a table keyed by locus. It has grated on me for a while that `hl.balding_nichols_models` requires a whole pass to verify it is sorted even though it is plainly so. This change introduces the necessary infrastructure to convince Hail of that fact.
chrisvittal
reviewed
Feb 10, 2023
Collaborator
chrisvittal
left a comment
There was a problem hiding this comment.
I have no major objections to this, but I am curious as to why you went the route of a new table IR, rather than implementing this with the unsafe key by on a normal range table?
Contributor
Author
|
AFAIK, unsafe key-by would still do an unnecessary scan across the data to compute partition bounds. This IR is exactly 1 pass (instead of 2). |
added 2 commits
February 13, 2023 10:49
chrisvittal
approved these changes
Feb 13, 2023
This file contains hidden or 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
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.
CHANGELOG: In Query on Batch,
hl.balding_nichols_modelis slightly faster. Also addedhl.utils.genomic_range_tableto quickly create a table keyed by locus.It has grated on me for a while that
hl.balding_nichols_modelsrequires a whole pass to verify it is sorted even though it is plainly so. This change introduces the necessary infrastructure to convince Hail of that fact.