-
Notifications
You must be signed in to change notification settings - Fork 257
Negative strand option for liftover #4895
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
konradjk
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.
Did you all decide that mixed return types depending on parameters was ok? I'm fine with it, but I thought there was hesitation. In any case, interface looks fine to me. I'll let @bw2 comment on the exact examples
hail/python/hail/expr/functions.py
Outdated
| If True, output the result as a :class:`.StructExpression` with the first field `result` being | ||
| the locus or locus interval and the second field `is_negative_strand` is a boolean indicating | ||
| whether the locus or locus interval has been mapped to the negative strand of the destination | ||
| reference genome. |
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.
Needs an Otherwise, ...
|
At first glance, the tests look fine to me. More thorough tests could be done using the data files here The interface also looks fine in terms of a non-breaking way to add strand info. |
|
Thanks! I'll look into this later. The plan is to have a |
|
oh, interesting.. I thought liftover processed each variant independently. Just out of curiosity, what's the purpose of the special while-loop infrastructure? |
|
The |
|
I looked at the picard tests and realized they just made a fake chain file with one interval that mapped to the negative strand in the destination reference. My existing test covers this scenario -- one interval maps to the positive strand of the destination and the other to the negative strand. Since I'm only passing the strand information from Picard, I'm happy with the tests I have already. |
|
I trust that it's fine then (and if it's not, I'm sure we'll come by to complain at that point 😄). @patrick-schultz over to you |
@konradjk @bw2 Can you double check the test examples in
test_liftover_negative_strandand give feedback on the interface?