Skip to content

Commit

Permalink
Add the actual biothings default regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnathan Schaff committed Feb 2, 2024
1 parent a404935 commit 45be250
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/config_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,11 @@

ANNOTATION_ID_REGEX_LIST = [
*biolink_curie_regex_list,
(re.compile(r"^\d+$"), ["entrezgene", "retired"]), # default regex pattern matching
(re.compile(r"^\d+$"), ["entrezgene", "retired"]),
(
re.compile(r"(?P<scope>\w+):(?P<term>[^:]+)"),
[],
), # default regex pattern matching
]

ANNOTATION_DEFAULT_SCOPES = ["_id", "entrezgene", "ensembl.gene", "retired"]
Expand Down

0 comments on commit 45be250

Please sign in to comment.