fuxialexander commited on
Commit
598ad97
1 Parent(s): 8dbf540

update proscope plot

Browse files
Files changed (1) hide show
  1. 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, ax1 = a.plot_plddt_gene1()
116
- fig2, ax2 = a.plot_plddt_gene2()
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, fig3, fig4, fig5, new_dropdown, a
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
- with gr.Column():
326
- protein1_plddt = gr.Plot(label="Protein 1 pLDDT")
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,