Skip to content

Commit c8256ea

Browse files
committed
split actions by semicolon
1 parent daa1f85 commit c8256ea

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

bin/addsv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ def makemut(args, bedline, alignopts):
329329
try:
330330
bamfile = pysam.Samfile(args.bamFileName, 'rb')
331331
reffile = pysam.Fastafile(args.refFasta)
332-
logfn = '_'.join(map(os.path.basename, bedline.strip().split())) + ".log"
332+
logfn = '_'.join(map(os.path.basename, bedline.strip().split()[:4])) + ".log"
333333
logfile = open('addsv_logs_' + os.path.basename(args.outBamFile) + '/' + os.path.basename(args.outBamFile) + '_' + logfn, 'w')
334334
exclfile = args.tmpdir + '/' + '.'.join((mutid, 'exclude', str(uuid4()), 'txt'))
335335
exclude = open(exclfile, 'w')
@@ -369,7 +369,7 @@ def makemut(args, bedline, alignopts):
369369
trn_end = int(c[5]) + 3000
370370
if trn_start < 0: trn_start = 0
371371

372-
actions = map(lambda x: x.strip(),' '.join(araw).split(','))
372+
actions = map(lambda x: x.strip(),' '.join(araw).split(';'))
373373

374374
svfrac = float(args.svfrac) # default, can be overridden by cnv file or per-variant
375375

0 commit comments

Comments
 (0)