Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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