Skip to content

Commit

Permalink
Merge pull request #199 from hammerlab/serialize-intronic-splice-site
Browse files Browse the repository at this point in the history
explicit args to __init__ of Intronic splice effects fixes serialization
  • Loading branch information
iskandr committed Oct 19, 2016
2 parents 0f4bea6 + 858ce25 commit 23f7dd5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions varcode/effects/effect_classes.py
Expand Up @@ -194,17 +194,19 @@ class IntronicSpliceSite(Intronic, SpliceSite):
nucleotides in an intron, since those are known to more confidently
affect splicing and are given their own effect classes below.
"""
def __init__(self, *args, **kwargs):
Intronic.__init__(self, *args, **kwargs)
def __init__(self, variant, transcript, nearest_exon, distance_to_exon):
Intronic.__init__(
self, variant, transcript, nearest_exon, distance_to_exon)

short_description = "intronic-splice-site"

class SpliceDonor(IntronicSpliceSite):
"""
Mutation in the first two intron residues.
"""
def __init__(self, *args, **kwargs):
Intronic.__init__(self, *args, **kwargs)
def __init__(self, variant, transcript, nearest_exon, distance_to_exon):
IntronicSpliceSite.__init__(
self, variant, transcript, nearest_exon, distance_to_exon)

short_description = "splice-donor"

Expand Down

0 comments on commit 23f7dd5

Please sign in to comment.