Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,14 @@ def process_sequence(sequence, domain_bounds, n):
|
|
118 |
transposed_logits_array = normalized_logits_array.T
|
119 |
|
120 |
# Plotting the heatmap
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
x_tick_labels = [str(pos + 1) for pos in x_tick_positions]
|
123 |
|
124 |
plt.figure(figsize=(15, 8))
|
|
|
118 |
transposed_logits_array = normalized_logits_array.T
|
119 |
|
120 |
# Plotting the heatmap
|
121 |
+
domain_len = end - start
|
122 |
+
if domain_len > 100:
|
123 |
+
step_size = 50
|
124 |
+
elif domain_len < 10:
|
125 |
+
step_size = 1
|
126 |
+
else:
|
127 |
+
step_size = 10
|
128 |
+
x_tick_positions = np.arange(start_index, end_index, step_size)
|
129 |
x_tick_labels = [str(pos + 1) for pos in x_tick_positions]
|
130 |
|
131 |
plt.figure(figsize=(15, 8))
|