Sync from GitHub (preserve manual model files)
Browse files
StreamlitApp/StreamlitApp.py
CHANGED
|
@@ -715,7 +715,7 @@ elif page == "t-SNE":
|
|
| 715 |
• Coloring by properties reveals biochemical trends.
|
| 716 |
""")
|
| 717 |
|
| 718 |
-
#
|
| 719 |
elif page == "About":
|
| 720 |
st.header("About the Project")
|
| 721 |
st.markdown("""
|
|
|
|
| 715 |
• Coloring by properties reveals biochemical trends.
|
| 716 |
""")
|
| 717 |
|
| 718 |
+
# About Page
|
| 719 |
elif page == "About":
|
| 720 |
st.header("About the Project")
|
| 721 |
st.markdown("""
|
StreamlitApp/utils/visualize.py
CHANGED
|
@@ -401,7 +401,6 @@ def build_shape_visual_summary(
|
|
| 401 |
|
| 402 |
lines.append(
|
| 403 |
"This view places residues on a **helix-like CA trace** (same geometry as the wheel). "
|
| 404 |
-
"It shows **how** charged, hydrophobic, and polar positions sit in space—not a solved NMR/crystal structure."
|
| 405 |
)
|
| 406 |
|
| 407 |
pos_i = [i for i, aa in enumerate(clean) if get_residue_color(aa) == "blue"]
|
|
@@ -483,7 +482,7 @@ def render_3d_plotly(
|
|
| 483 |
*,
|
| 484 |
height: int = 460,
|
| 485 |
) -> bool:
|
| 486 |
-
# Interactive 3D backbone (line + markers)
|
| 487 |
try:
|
| 488 |
import plotly.graph_objects as go
|
| 489 |
import streamlit as st
|
|
@@ -563,7 +562,7 @@ def render_3d_plotly(
|
|
| 563 |
st.plotly_chart(fig, use_container_width=True)
|
| 564 |
return True
|
| 565 |
|
| 566 |
-
|
| 567 |
def render_3d_structure(
|
| 568 |
sequence: str,
|
| 569 |
width: int = 500,
|
|
|
|
| 401 |
|
| 402 |
lines.append(
|
| 403 |
"This view places residues on a **helix-like CA trace** (same geometry as the wheel). "
|
|
|
|
| 404 |
)
|
| 405 |
|
| 406 |
pos_i = [i for i, aa in enumerate(clean) if get_residue_color(aa) == "blue"]
|
|
|
|
| 482 |
*,
|
| 483 |
height: int = 460,
|
| 484 |
) -> bool:
|
| 485 |
+
# Interactive 3D backbone (line + markers)
|
| 486 |
try:
|
| 487 |
import plotly.graph_objects as go
|
| 488 |
import streamlit as st
|
|
|
|
| 562 |
st.plotly_chart(fig, use_container_width=True)
|
| 563 |
return True
|
| 564 |
|
| 565 |
+
# 3Dmol viewer: CA-only structure with category coloring and optional enhanced styling/spin.
|
| 566 |
def render_3d_structure(
|
| 567 |
sequence: str,
|
| 568 |
width: int = 500,
|