Skip to content

Commit

Permalink
Re-add an additional custom myvariant regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
jschaff committed May 2, 2024
1 parent 20255db commit edb2787
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/config_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@
"DBSNP": {
"type": "variant",
"field": "dbsnp.rsid",
"regex_term_pattern": "(?P<term>rs[0-9]+)"
"regex_term_pattern": "(?P<term>rs[0-9]+)",
},
"CLINVAR": {
"type": "variant",
"field": "clinvar.variant_id",
"regex_term_pattern": "(?P<term>[0-9]+)"
"regex_term_pattern": "(?P<term>[0-9]+)",
},
"CAID": {
"type": "variant",
"field": "clingen.caid",
"regex_term_pattern": "(?P<term>CA[0-9]+)"
"regex_term_pattern": "(?P<term>CA[0-9]+)",
},
}

Expand All @@ -109,6 +109,7 @@

# Custom prefix handling for variant specific identifiers
variant_prefix_handling = [
(re.compile(r"rs[0-9]+", re.I), "dbsnp.rsid"),
(re.compile(r"rcv[0-9\.]+", re.I), "clinvar.rcv.accession"),
(re.compile(r"var_[0-9]+", re.I), "uniprot.humsavar.ftid"),
]
Expand Down

0 comments on commit edb2787

Please sign in to comment.