Skip to content

Commit

Permalink
counsyl#57 - c. dup converted back to delins
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed May 25, 2023
1 parent 116217d commit 7591c13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyhgvs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,9 @@ def hgvs_justify_indel(chrom, offset, ref, alt, strand, genome):
return chrom, offset, ref, alt

# Get genomic sequence around the lesion.
start = max(offset - 100, 0)
end = offset + 100
size = max(len(ref), len(alt)) + 1
start = max(offset - size, 0)
end = offset + size
seq = str(genome[str(chrom)][start - 1:end]).upper()
cds_offset = offset - start

Expand Down

0 comments on commit 7591c13

Please sign in to comment.