-
Notifications
You must be signed in to change notification settings - Fork 30
Add function for exploding intervals to loci #789
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
base: main
Are you sure you want to change the base?
Add function for exploding intervals to loci #789
Conversation
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 adding! a few suggestions
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
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.
a few more minor changes -- sorry about the back and forth on the MT part!
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
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.
thank you for adding additional flexibility! I've added some suggestions to streamline the code (and hopefully didn't break the formatting too much)
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
Co-authored-by: Katherine Chao <[email protected]>
a little late, but I also forgot that we've been requesting that each person who adds or changes code in this repo add tests (https://github.com/broadinstitute/gnomad_methods/tree/main/tests). could you add tests for this new function? |
Feature Addition:
Added a function in
intervals.py
which explodes hail intervals into per base loci, keeping same reference genome as original interval.Optionally it can return the original interval that the locus belongs to or drop it from the exploded table.