Skip to content

Commit

Permalink
bug fix #19: incorrect end in delins variant
Browse files Browse the repository at this point in the history
  • Loading branch information
newgene committed Apr 6, 2021
1 parent 2dbb467 commit 614f2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biothings_client/mixins/variant.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def format_hgvs(self, chrom, pos, ref, alt):
_chrom, _pos, _ref, _alt = self._normalized_vcf(chrom, pos, ref, alt)
return self.format_hgvs(_chrom, _pos, _ref, _alt)
else:
end = int(pos) + len(alt) - 1
end = int(pos) + len(ref) - 1
hgvs = 'chr{0}:g.{1}_{2}delins{3}'.format(chrom, pos, end, alt)
else:
raise ValueError("Cannot convert {} into HGVS id.".format((chrom, pos, ref, alt)))
Expand Down

0 comments on commit 614f2e2

Please sign in to comment.