Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/hall-lab/svtools into dev…
Browse files Browse the repository at this point in the history
…elop
  • Loading branch information
Allison Regier committed Sep 4, 2019
2 parents 6c5e80e + 5b3289b commit 9287ed9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions svtools/lmerge.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ def create_merged_variant(BP, c, v_id, vcf, use_product, weighting_scheme='unwei
new_pos_L = new_start_L + max_i_L
new_pos_R = new_start_R + max_i_R
BP0=BP[c[0]]

# sometimes after looking at PRs, the left and right can be swapped.
# flip them back so downstream tools don't break.
if new_pos_R < new_pos_L and BP0.sv_type != 'BND':
new_pos_R, new_pos_L = new_pos_L, new_pos_R
cipos95, ciend95 = ciend95, cipos95
p_L, p_R = p_R, p_L
max_i_R, max_i_L = max_i_L, max_i_R


A=BP0.l.rstrip().split('\t', 10)

ALT = ''
Expand Down

0 comments on commit 9287ed9

Please sign in to comment.