Skip to content

Commit 15840c4

Browse files
author
Dominik R Laetsch
committed
Changed progress behaviour in bamfilter
1 parent e607218 commit 15840c4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

bloblib/BtIO.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ def print_bam(read_pair_out_fs, read_pair_type, read1, read2):
308308

309309
def parseBamForFilter(infile, progress_flag, include_unmapped, outfile, include, exclude, gzip, do_sort, keep_sorted, sort_threads):
310310
'''
311-
checkBam returns reads_total and reads_mapped
312311
parse BAM to extract readpairs
313312
'''
314313
if not isfile(infile):
@@ -362,9 +361,7 @@ def parseBamForFilter(infile, progress_flag, include_unmapped, outfile, include,
362361
except IndexError:
363362
print BtLog.warn_d['11']
364363
#print_bam(read_pair_out_fs, read_pair_type, read1, read2) # this prints SAM files for debugging
365-
if progress_flag:
366-
if not int(reads_total) == int(seen_reads):
367-
BtLog.progress(reads_total, progress_unit, reads_total)
364+
BtLog.progress(reads_total, progress_unit, reads_total)
368365
write_read_pair_seqs(pair_count_by_type, pair_seqs_by_type, out_fs_by_type)
369366
# info log
370367
info_string = []

0 commit comments

Comments
 (0)