roni commited on
Commit
e9e46e1
·
1 Parent(s): 5a6f640

visual improvements

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -16,7 +16,9 @@ def search(seq, n_res):
16
  chain = res["chain_id"]
17
  value = res["score"]
18
  genes = ','.join(res["gene_ids"])
19
- key = f"PDB: {prot} | Chain: {chain} | Genes: {genes}"
 
 
20
  outputs[key] = value
21
  return outputs
22
 
@@ -28,7 +30,9 @@ def limit_n_results(n):
28
  with gr.Blocks() as demo:
29
  with gr.Column():
30
  gr.Markdown("""
31
- # Sequence Based Protein Binding Search Engine
 
 
32
  """)
33
  with gr.Row():
34
  with gr.Column():
 
16
  chain = res["chain_id"]
17
  value = res["score"]
18
  genes = ','.join(res["gene_ids"])
19
+ key = f"PDB: {prot} | Chain: {chain}"
20
+ if genes != 'Unknown':
21
+ key += f" | Genes: {genes}"
22
  outputs[key] = value
23
  return outputs
24
 
 
30
  with gr.Blocks() as demo:
31
  with gr.Column():
32
  gr.Markdown("""
33
+ # Protein Binding Search Engine
34
+ This application examines all files uploaded to [PDB](https://www.rcsb.org/) to find the chains with which a given protein sequence is most likely to bind.
35
+ If the results are linked to specific genes, their IDs will also be displayed.
36
  """)
37
  with gr.Row():
38
  with gr.Column():