Commit 987997bd authored by Ignacio Tripodi's avatar Ignacio Tripodi

Bugfix: Now generating barcode plots also works in Python 3

parent 1c6f654c
......@@ -166,7 +166,7 @@ def main():
# Condense the barcode to half the bins for prettier display
control_bc_data = control_bc_data.astype(int)
heat_m = np.nan * np.empty(shape=(int(HISTOGRAM_BINS/4), HISTOGRAM_BINS))
for row in range(HISTOGRAM_BINS/4):
for row in range(int(HISTOGRAM_BINS/4)):
heat_m[row] = control_bc_data
ax0.matshow(heat_m, cmap=cm.YlGnBu)
ax0.axis('off')
......@@ -176,7 +176,7 @@ def main():
perturbation_bc_data = np.array(perturbation_barcode[relevant_tf].split(';'))
perturbation_bc_data = perturbation_bc_data.astype(int)
heat_m = np.nan * np.empty(shape=(int(HISTOGRAM_BINS/4), HISTOGRAM_BINS))
for row in range(HISTOGRAM_BINS/4):
for row in range(int(HISTOGRAM_BINS/4)):
heat_m[row] = perturbation_bc_data
ax1.matshow(heat_m, cmap=cm.YlGnBu)
ax1.axis('off')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment