Skip to content

Commit 956222e

Browse files
committed
Fixes for issues #147 fixed overwrite of svlen_precise
1 parent 4c61b78 commit 956222e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dysgu/call_component.pyx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,10 @@ cdef make_single_call(sub_informative, insert_size, insert_stdev, insert_ppf, mi
674674
er.linked = 0
675675
er.block_edge = 0
676676
er.ref_bases = ref_bases
677-
er.svlen_precise = svlen_precise # if 0 then soft-clip will be remapped
677+
# v1.8.6
678+
# svlen_precise is set by make_call, otherwise this line overwrites it and causes some events
679+
# to not be re-mapped
680+
# er.svlen_precise = svlen_precise # if 0 then soft-clip will be remapped
678681
if svlen_precise == 0:
679682
corr_score = soft_clip_qual_corr(u_reads + v_reads)
680683
er.sqc = corr_score
@@ -2108,7 +2111,7 @@ cpdef list call_from_block_model(bam, data, clip_length, insert_size, insert_std
21082111
events.append(ev)
21092112
events = [e for e in events if e and (e.svlen > 0 or e.svtype == "TRA")]
21102113
for e in events:
2111-
# echo("call_component svlen", e.svlen, f" support={e.su}, {e.chrA}:{e.posA}-{e.posB}, {e.chrB}")
2114+
# echo("call_component svlen=", e.svlen, f" support={e.su}, {e.chrA}:{e.posA}-{e.posB}, {e.chrB}, {e.svtype}, svlen_precise={e.svlen_precise}")
21122115
if e.svlen_precise:
21132116
set_ins_seq(e)
21142117
return events

0 commit comments

Comments
 (0)