Spaces:
Running
Running
fuxialexander
commited on
Commit
•
598ad97
1
Parent(s):
8dbf540
update proscope plot
Browse files- app/main.py +5 -13
app/main.py
CHANGED
@@ -112,14 +112,12 @@ def visualize_AF2(tf_pair, a):
|
|
112 |
|
113 |
a = GETAFPairseg(strcture_dir, fasta_dir, GET_CONFIG)
|
114 |
# segpair.choices = list(a.pairs_data.keys())
|
115 |
-
fig1
|
116 |
-
fig2
|
117 |
-
fig3 = a.protein1.plotly_plddt()
|
118 |
-
fig4 = a.protein2.plotly_plddt()
|
119 |
fig5, ax5 = a.plot_score_heatmap()
|
120 |
plt.tight_layout()
|
121 |
new_dropdown = update_dropdown(list(a.pairs_data.keys()), "Segment pair")
|
122 |
-
return fig1, fig2,
|
123 |
|
124 |
|
125 |
def view_pdb(seg_pair, a):
|
@@ -322,12 +320,8 @@ You can download specific segment pair PDB files by clicking 'Get PDB.'
|
|
322 |
pdb_download = gr.Markdown(label="Download PDB")
|
323 |
|
324 |
with gr.Row() as row:
|
325 |
-
|
326 |
-
|
327 |
-
interact_plddt1 = gr.Plot(label="Interact pLDDT 1")
|
328 |
-
with gr.Column():
|
329 |
-
protein2_plddt = gr.Plot(label="Protein 2 pLDDT")
|
330 |
-
interact_plddt2 = gr.Plot(label="Interact pLDDT 2")
|
331 |
|
332 |
tf_pairs_btn.click(
|
333 |
visualize_AF2,
|
@@ -335,8 +329,6 @@ You can download specific segment pair PDB files by clicking 'Get PDB.'
|
|
335 |
outputs=[
|
336 |
interact_plddt1,
|
337 |
interact_plddt2,
|
338 |
-
protein1_plddt,
|
339 |
-
protein2_plddt,
|
340 |
heatmap,
|
341 |
segpair,
|
342 |
af,
|
|
|
112 |
|
113 |
a = GETAFPairseg(strcture_dir, fasta_dir, GET_CONFIG)
|
114 |
# segpair.choices = list(a.pairs_data.keys())
|
115 |
+
fig1 = a.plotly_plddt_gene1()
|
116 |
+
fig2 = a.plotly_plddt_gene2()
|
|
|
|
|
117 |
fig5, ax5 = a.plot_score_heatmap()
|
118 |
plt.tight_layout()
|
119 |
new_dropdown = update_dropdown(list(a.pairs_data.keys()), "Segment pair")
|
120 |
+
return fig1, fig2, fig5, new_dropdown, a
|
121 |
|
122 |
|
123 |
def view_pdb(seg_pair, a):
|
|
|
320 |
pdb_download = gr.Markdown(label="Download PDB")
|
321 |
|
322 |
with gr.Row() as row:
|
323 |
+
interact_plddt1 = gr.Plot(label="Interact pLDDT 1")
|
324 |
+
interact_plddt2 = gr.Plot(label="Interact pLDDT 2")
|
|
|
|
|
|
|
|
|
325 |
|
326 |
tf_pairs_btn.click(
|
327 |
visualize_AF2,
|
|
|
329 |
outputs=[
|
330 |
interact_plddt1,
|
331 |
interact_plddt2,
|
|
|
|
|
332 |
heatmap,
|
333 |
segpair,
|
334 |
af,
|