File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def readBam(infile, set_of_blobs):
118
118
base_cov_dict [seq_name ] = base_cov_dict .get (seq_name , 0 ) + base_cov
119
119
read_cov_dict [seq_name ] = read_cov_dict .get (seq_name , 0 ) + 1
120
120
BtLog .progress (parsed_reads , progress_unit , reads_total )
121
- # BtLog.progress(reads_total, progress_unit, reads_total)
121
+ BtLog .progress (reads_total , progress_unit , reads_total )
122
122
if not int (reads_mapped ) == int (parsed_reads ):
123
123
print warn_d ['3' ] % (reads_mapped , parsed_reads )
124
124
return base_cov_dict , reads_total , parsed_reads , read_cov_dict
Original file line number Diff line number Diff line change @@ -20,13 +20,14 @@ def error(message, *argv):
20
20
exit (1 )
21
21
22
22
def progress (iteration , steps , max_value ):
23
- if int (iteration ) % int ( steps ) == 0 :
23
+ if int (iteration == max_value ) :
24
24
sys .stdout .write ('\r ' )
25
- print "[PROGRESS]\t : %d%%" % (float (int (iteration )/ int (max_value )* 100 )),
26
- sys .stdout .flush ()
27
- # if int(iteration == max_value):
28
- # sys.stdout.write('\r')
29
- # print "[PROGRESS]\t: %d%%" % (100)
25
+ print "[PROGRESS]\t : %d%%" % (100 )
26
+ else :
27
+ if int (iteration ) % int (steps ) == 0 :
28
+ sys .stdout .write ('\r ' )
29
+ print "[PROGRESS]\t : %d%%" % (float (int (iteration )/ int (max_value )* 100 )),
30
+ sys .stdout .flush ()
30
31
31
32
error_d = {
32
33
'0' : '[ERROR:0]\t : File %s does not exist.' ,
You can’t perform that action at this time.
0 commit comments