Skip to content

Commit

Permalink
fix(call): vcf output with --respect-ref
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 30, 2024
1 parent ebe9e28 commit 8f39a3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion strkit/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.13.0
0.13.1
2 changes: 1 addition & 1 deletion strkit/call/output/vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _write_contig_vrs():

# seq_alleles = (ref_start_anchor + ref_seq, *(seq_alts or (".",))) if call is not None else (".",)

start = result["start_adj"] - len(ref_start_anchor)
start = result.get("start_adj", result["start"]) - len(ref_start_anchor)
vr: pysam.VariantRecord = vf.new_record(
contig=contig,
start=start,
Expand Down

0 comments on commit 8f39a3d

Please sign in to comment.