Skip to content

Commit

Permalink
Update hgvs_name.py - handle inv cDNA
Browse files Browse the repository at this point in the history
handle inversions in cDNA. 
Fixes counsyl#58 (comment)
  • Loading branch information
rjsicko authored Nov 6, 2024
1 parent ef00572 commit e73bb77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyhgvs/models/hgvs_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class HGVSRegex(object):
INS = "(?P<mutation_type>ins)"
DEL = "(?P<mutation_type>del)"
DUP = "(?P<mutation_type>dup)"
INV = "(?P<mutation_type>inv)"

# Simple coordinate syntax
COORD_START = "(?P<start>\d+)"
Expand Down Expand Up @@ -141,12 +142,13 @@ class HGVSRegex(object):
CDNA_START + DEL,
CDNA_START + DUP,

# Insertion, deletion, duplication
# Insertion, deletion, duplication, inversion
CDNA_RANGE + INS + DNA_ALT,
CDNA_RANGE + DEL + DNA_REF,
CDNA_RANGE + DUP + DNA_REF,
CDNA_RANGE + DEL,
CDNA_RANGE + DUP,
CDNA_RANGE + INV,

# Indels
"(?P<delins>" + CDNA_START + 'del' + DNA_REF + 'ins' + DNA_ALT + ")",
Expand Down

0 comments on commit e73bb77

Please sign in to comment.