Skip to content

Commit 492cb1b

Browse files
committed
Added end2 tag for cnvs without depth supported converted into bnds
1 parent 6da1417 commit 492cb1b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/sv-pipeline/scripts/single_sample/convert_cnvs_without_depth_support_to_bnds.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,17 @@ def main():
100100
if not has_depth_support_autosome(record, case_sample) and pesr_support:
101101
record.info['SVTYPE'] = 'BND'
102102
record.alts = ['<BND>']
103+
record.stop = record.pos
104+
record.info['CHR2'] = record.contig
105+
record.info['END2'] = record.stop
103106
else:
104107
if not has_depth_support_allosome(record, case_sample, samples_by_sex[case_sample_sex]) \
105108
and pesr_support:
106109
record.info['SVTYPE'] = 'BND'
107110
record.alts = ['<BND>']
111+
record.stop = record.pos
112+
record.info['CHR2'] = record.contig
113+
record.info['END2'] = record.stop
108114
fout.write(record)
109115

110116

0 commit comments

Comments
 (0)