Skip to content

Commit

Permalink
Variant/locus matching case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Aug 25, 2021
1 parent 37ef642 commit 7c4e81c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions snpdb/models/models_variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
from snpdb.models.models_genome import Contig, GenomeBuild, GenomeBuildContig
from snpdb.models.models_enums import AlleleConversionTool, AlleleOrigin, ProcessingStatus

LOCUS_PATTERN = re.compile(r"^([^:]+):(\d+)[,\s]*([GATC]+)$")
LOCUS_PATTERN = re.compile(r"^([^:]+):(\d+)[,\s]*([GATC]+)$", re.IGNORECASE)
LOCUS_NO_REF_PATTERN = r"^([^:]+):(\d+)$"
VARIANT_PATTERN = re.compile(r"^([^:]+):(\d+)[,\s]*([GATC]+)>([GATC]+)$")
REF_VARIANT_PATTERN = re.compile(r"^([^:]+):(\d+)[,\s]*([GATC]+)>= \(ref\)$")
VARIANT_PATTERN = re.compile(r"^([^:]+):(\d+)[,\s]*([GATC]+)>([GATC]+)$", re.IGNORECASE)
REF_VARIANT_PATTERN = re.compile(r"^([^:]+):(\d+)[,\s]*([GATC]+)>= \(ref\)$", re.IGNORECASE)

allele_validate_signal = django.dispatch.Signal(providing_args=["allele"])

Expand Down

0 comments on commit 7c4e81c

Please sign in to comment.