Skip to content

Commit

Permalink
variantgrid_private#3491 - support reference variants
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Aug 14, 2023
1 parent 07701c4 commit 79d8e27
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions genes/hgvs/biocommons_hgvs/hgvs_converter_biocommons.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ def hgvs_to_variant_coords_and_reference_match(self, hgvs_string: str, transcrip
var_g = self._hgvs_to_g_hgvs(hgvs_string)
try:
(chrom, position, ref, alt, typ) = self.babelfish.hgvs_to_vcf(var_g)
if alt == '.':
alt = ref
except HGVSDataNotAvailableError:
raise Contig.ContigNotInBuildError()
matches_reference = self.get_hgvs_match_ref_allele(hgvs_string, var_g, ref, alt)
Expand Down

0 comments on commit 79d8e27

Please sign in to comment.