Sync from GitHub (preserve manual model files)
Browse files
StreamlitApp/StreamlitApp.py
CHANGED
|
@@ -620,12 +620,15 @@ elif page == "Optimize":
|
|
| 620 |
st.subheader("Mutation Steps")
|
| 621 |
st.dataframe(df_steps, use_container_width=True)
|
| 622 |
|
| 623 |
-
#
|
| 624 |
-
step_nums = df_steps["Step"].tolist()
|
| 625 |
-
conf_values = df_steps["New Confidence (%)"].tolist()
|
| 626 |
df_graph = pd.DataFrame({"Step": step_nums, "Confidence (%)": conf_values})
|
| 627 |
fig = px.line(df_graph, x="Step", y="Confidence (%)", markers=True, color_discrete_sequence=["#457a00"])
|
| 628 |
-
fig.update_layout(
|
|
|
|
|
|
|
|
|
|
| 629 |
st.plotly_chart(fig, use_container_width=True)
|
| 630 |
|
| 631 |
# Visualize page: structural/sequence interpretation for one peptide.
|
|
|
|
| 620 |
st.subheader("Mutation Steps")
|
| 621 |
st.dataframe(df_steps, use_container_width=True)
|
| 622 |
|
| 623 |
+
# Step 0 = original peptide AMP probability; steps 1+ match the table after each mutation.
|
| 624 |
+
step_nums = [0] + df_steps["Step"].tolist()
|
| 625 |
+
conf_values = [round(float(orig_conf) * 100, 2)] + df_steps["New Confidence (%)"].tolist()
|
| 626 |
df_graph = pd.DataFrame({"Step": step_nums, "Confidence (%)": conf_values})
|
| 627 |
fig = px.line(df_graph, x="Step", y="Confidence (%)", markers=True, color_discrete_sequence=["#457a00"])
|
| 628 |
+
fig.update_layout(
|
| 629 |
+
yaxis=dict(range=[0, 100]),
|
| 630 |
+
title="AMP model confidence (%) — step 0 = original, then each accepted change",
|
| 631 |
+
)
|
| 632 |
st.plotly_chart(fig, use_container_width=True)
|
| 633 |
|
| 634 |
# Visualize page: structural/sequence interpretation for one peptide.
|