-
Notifications
You must be signed in to change notification settings - Fork 25
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
fixed top_priority_effect for ExonicSpliceSite #235
fixed top_priority_effect for ExonicSpliceSite #235
Conversation
…d VCF writing reference name
varcode/effects/effect_ordering.py
Outdated
IntronicSpliceSite, | ||
# exonic variants near a splice boundary | ||
ExonicSpliceSite, | ||
# modification or deletion of stop codon |
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.
wrong 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.
Good catch!
@@ -125,13 +124,31 @@ def effect_sort_key(effect): | |||
effect_class_priority = effect_priority(effect) | |||
return (effect_class_priority, cds_length, transcript_length) | |||
|
|||
|
|||
def select_between_exonic_splice_site_and_alternate_effect(effect): |
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.
can you add some comments here? this functionality is kinda non-obvious
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.
Added a docstring
varcode/vcf_output.py
Outdated
@@ -248,9 +249,11 @@ def get_sample_names(): | |||
headers += ['FORMAT'] + sample_names | |||
|
|||
unique_variants_list = merge_duplicate_variants() | |||
# can't have more than one reference in VCF so pick the first one and pray |
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.
instead of praying, throw an error? when would we ever want to support combining VCFs created against different references?
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.
I'm imagining hg19 vs. GRCh37 type differences but you're probably right: better to raise an exception
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.
Changed it to check for a unique reference
Currently, if an
ExonicSpliceSite
effect has analternate_effect
which is more interesting (e.g.StopGain
), it doesn't come up as the top priority. This changes thetop_priority_effect
logic to return thealternate_effect
if it's higher priority than a potential exonic splice site change.Other changes:
Silent
in the effect ordering.Fixes: #233