Skip to content

Commit

Permalink
feat: add inclusion of "NT" prefixed refseq accessions to hgvs tools (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
larrybabb authored Apr 5, 2024
1 parent 6066b4a commit a8925b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ga4gh/vrs/dataproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def extract_sequence_type(alias: str) -> str:
"refseq:NG_": "g",
"refseq:NC_00": "g",
"refseq:NW_": "g",
"refseq:NT_": "g",
"refseq:NR_": "n",
"refseq:NP_": "p",
"refseq:XM_": "c",
Expand Down
2 changes: 1 addition & 1 deletion src/ga4gh/vrs/utils/hgvs_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def from_allele(self, vo, namespace=None):
if ns.startswith("GRC") and namespace is None:
continue

if not (any(accession.startswith(pfx) for pfx in ("NM", "NP", "NC", "NG", "NR", "NW", "XM", "XR", "XP"))):
if not (any(accession.startswith(pfx) for pfx in ("NM", "NP", "NC", "NG", "NR", "NW", "NT", "XM", "XR", "XP"))):
continue

sequence_type = self.data_proxy.extract_sequence_type(alias)
Expand Down

0 comments on commit a8925b2

Please sign in to comment.