Skip to content

Commit 9776b2d

Browse files
Dom LaetschDom Laetsch
authored andcommitted
...
1 parent 07794ad commit 9776b2d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

lib/BtIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def readCas(infile, order_of_blobs):
202202
seqs_parsed += 1
203203
except:
204204
pass
205-
BtLog.progress(seqs_parsed, progress_unit, seqs_total)
205+
BtLog.progress(seqs_parsed, progress_unit, seqs_total)
206206
return cov_dict, reads_total, reads_mapped, read_cov_dict
207207

208208
def readTax(infile, set_of_blobs):

lib/BtLog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def error(message, *argv):
2222
def progress(iteration, steps, max_value):
2323
if int(iteration == max_value):
2424
sys.stdout.write('\r')
25-
print "[PROGRESS]\t: %d%%" % (100)
25+
print "[PROGRESS]\t: %d%%\n" % (100)
2626
elif int(iteration) % int(steps) == 0:
2727
sys.stdout.write('\r')
2828
print "[PROGRESS]\t: %d%%" % (float(int(iteration)/int(max_value))*100),

lib/BtPlot.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,12 @@ def plotBlobs(self, cov_lib, info_flag):
587587
if group == "no-hit":
588588
alpha = 0.5
589589
weights_array = group_length_array/1000
590+
print group
591+
print group_gc_array
592+
print group_cov_array
593+
print weights_array
594+
print top_bins
595+
print right_bins
590596
# generate label for legend
591597
fmt_seqs = "{:,}".format(group_number_of_seqs)
592598
fmt_span = "{:,}".format(group_span_in_mb)
@@ -596,12 +602,6 @@ def plotBlobs(self, cov_lib, info_flag):
596602
print BtLog.info_d['0'] % (group, fmt_seqs, fmt_span, fmt_n50)
597603
legend_handles.append(Line2D([0], [0], linewidth = 0.5, linestyle="none", marker="o", alpha=1, markersize=24, markerfacecolor=colour))
598604
legend_labels.append(label)
599-
print group
600-
print group_gc_array
601-
print group_cov_array
602-
print weights_array
603-
print top_bins
604-
print right_bins
605605
if (self.hist_type == "span"):
606606
axHistx.hist(group_gc_array, weights=weights_array, color = colour, bins = top_bins, histtype='step', lw = 3)
607607
axHisty.hist(group_cov_array, weights=weights_array, color = colour, bins = right_bins, histtype='step', orientation='horizontal', lw = 3)

0 commit comments

Comments
 (0)