Spaces:
Runtime error
Runtime error
Commit
·
753ea40
1
Parent(s):
cbda9bd
Update app.py
Browse files
app.py
CHANGED
@@ -134,15 +134,21 @@ def update(inp):
|
|
134 |
plddts = run_alphafold(startsequence)
|
135 |
print(plddts)
|
136 |
x = np.arange(10)
|
137 |
-
plt.style.use(["seaborn-ticks", "seaborn-talk"])
|
138 |
-
fig = plt.figure()
|
139 |
-
ax = fig.add_subplot(111)
|
140 |
-
ax.plot(plddts)
|
141 |
-
ax.set_ylabel("predicted LDDT")
|
142 |
-
ax.set_xlabel("positions")
|
143 |
-
ax.set_title("pLDDT")
|
144 |
-
|
145 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
146 |
return (
|
147 |
molecule(
|
148 |
f"test_unrelaxed_model_1.pdb",
|
|
|
134 |
plddts = run_alphafold(startsequence)
|
135 |
print(plddts)
|
136 |
x = np.arange(10)
|
137 |
+
#plt.style.use(["seaborn-ticks", "seaborn-talk"])
|
138 |
+
#fig = plt.figure()
|
139 |
+
#ax = fig.add_subplot(111)
|
140 |
+
#ax.plot(plddts)
|
141 |
+
#ax.set_ylabel("predicted LDDT")
|
142 |
+
#ax.set_xlabel("positions")
|
143 |
+
#ax.set_title("pLDDT")
|
144 |
+
fig = go.Figure(data=go.Scatter(x=np.arange(len(plddts)), y=plddts), hovertemplate =
|
145 |
+
'<i>pLDDT</i>: $%{y:.2f}'+
|
146 |
+
'<br><b>Residue index</b>: %{x}<br>')
|
147 |
+
fig.update_layout(title="pLDDT",
|
148 |
+
xaxis_title="Residue index",
|
149 |
+
yaxis_title="pLDDT",
|
150 |
+
height=500,
|
151 |
+
template="simple_white")
|
152 |
return (
|
153 |
molecule(
|
154 |
f"test_unrelaxed_model_1.pdb",
|