Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def generate_heatmap(protein_sequence, start_pos=1, end_pos=None):
|
|
49 |
heatmap[i, position - start_pos] = log_prob_mt - log_prob_wt
|
50 |
|
51 |
# Visualize the heatmap
|
52 |
-
plt.figure(figsize=(
|
53 |
plt.imshow(heatmap, cmap="viridis_r", aspect="auto")
|
54 |
plt.xticks(range(end_pos - start_pos + 1), list(protein_sequence[start_pos-1:end_pos]))
|
55 |
plt.yticks(range(20), amino_acids)
|
|
|
49 |
heatmap[i, position - start_pos] = log_prob_mt - log_prob_wt
|
50 |
|
51 |
# Visualize the heatmap
|
52 |
+
plt.figure(figsize=(75, 25))
|
53 |
plt.imshow(heatmap, cmap="viridis_r", aspect="auto")
|
54 |
plt.xticks(range(end_pos - start_pos + 1), list(protein_sequence[start_pos-1:end_pos]))
|
55 |
plt.yticks(range(20), amino_acids)
|