Skip to content

Commit 604b715

Browse files
authored
Merge pull request #35 from sujaikumar/patch-1
fix bug in command for sorting bam file
2 parents 7da2392 + 57da218 commit 604b715

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bloblib/BtIO.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def parseBamForFilter(infile, outfile, include, exclude, gzip, do_sort, keep_sor
300300
if not isfile(infile):
301301
BtLog.error('0', infile)
302302
if do_sort:
303-
command = 'samtools sort -@ sort_threads -n -O bam -T temp -o %s.readsorted.bam %s' % infile
303+
command = 'samtools sort -@ sort_threads -n -O bam -T temp -o %s.readsorted.bam %s' % (infile, infile)
304304
runCmd(command=command, wait=True)
305305
infile = "%s.readsorted.bam" % infile
306306

0 commit comments

Comments
 (0)