Spaces:
Runtime error
Runtime error
Alsentzer
commited on
Commit
•
e95d544
1
Parent(s):
842bd12
add instructions
Browse files
app.py
CHANGED
@@ -235,11 +235,11 @@ with gr.Blocks() as demo: #css="#gene_attn_accordion {text-align: center}" css="
|
|
235 |
|
236 |
with gr.Accordion(label=f'SHEPHERD\'s Ranking of Patient\'s Candidate Genes', open=True, elem_id='gene_accordion'):
|
237 |
#gr.Markdown(f'<center><h3>SHEPHERD\'s Ranking of Patient\'s Candidate Genes</h3></center>')
|
238 |
-
gr.Markdown('The patient\'s causal gene (i.e. gene harboring a variant that explains the patient\'s symptoms) is colored in green.')
|
239 |
-
gene_dataframe = gr.Dataframe(
|
240 |
with gr.Accordion(label=f'SHEPHERD\'s Attention to Patient\'s Phenotypes', open=False, elem_id='gene_attn_accordion'):
|
241 |
#gr.Markdown(f'<center><h3>SHEPHERD\'s Attention to Patient\'s Phenotypes</h3></center>')
|
242 |
-
gene_attn_dataframe = gr.Dataframe(
|
243 |
with gr.Accordion(label=f'Visualization of Patient\'s Neighborhood in the Knowledge Graph', open=False, elem_id='kg_neigh_accordion'):
|
244 |
#kg_neighborhood_image = gr.Image(elem_id='kg_neigh')#.style(height=200, width=200)
|
245 |
kg_neighborhood_image = gr.HTML(elem_id = 'kg_patient_neighborhood')
|
@@ -255,7 +255,7 @@ with gr.Blocks() as demo: #css="#gene_attn_accordion {text-align: center}" css="
|
|
255 |
patient_dataframe = gr.Dataframe(max_rows=10, datatype = 'markdown', show_label=False, elem_id="pat_df", headers=['Candidate Patient', 'Candidate Patient\'s Gene', 'Candidate Patient\'s Disease' ]) #'Candidate Patient\'s Phenotypes'
|
256 |
#patient_button = gr.Button("Go")
|
257 |
with gr.Accordion(label='SHEPHERD\'s Attention to Patient\'s Phenotypes', open=False, elem_id='pt_attn_accordion'):
|
258 |
-
pt_attn_dataframe = gr.Dataframe(
|
259 |
|
260 |
|
261 |
with gr.TabItem("Disease Characterization"):
|
@@ -266,7 +266,7 @@ with gr.Blocks() as demo: #css="#gene_attn_accordion {text-align: center}" css="
|
|
266 |
with gr.Accordion(label='Top 10 Most Similar Diseases according to SHEPHERD', open=True, elem_id='pt_accordion'): #
|
267 |
dx_dataframe = gr.Dataframe(max_rows=10, datatype = 'markdown', show_label=False, elem_id="dx_df", headers=['Diseases'])
|
268 |
with gr.Accordion(label='SHEPHERD\'s Attention to Patient\'s Phenotypes', open=False, elem_id='dx_attn_accordion'):
|
269 |
-
dx_attn_dataframe = gr.Dataframe(
|
270 |
|
271 |
#dx_button = gr.Button("Go")
|
272 |
|
|
|
235 |
|
236 |
with gr.Accordion(label=f'SHEPHERD\'s Ranking of Patient\'s Candidate Genes', open=True, elem_id='gene_accordion'):
|
237 |
#gr.Markdown(f'<center><h3>SHEPHERD\'s Ranking of Patient\'s Candidate Genes</h3></center>')
|
238 |
+
gr.Markdown('Below are SHEPHERD\'s ranking of either all Expert Curated candidate genes or the top 10 Variant Filtered candidate genes. The patient\'s causal gene (i.e. gene harboring a variant that explains the patient\'s symptoms) is colored in green.')
|
239 |
+
gene_dataframe = gr.Dataframe( elem_id="gene_df", datatype = 'markdown', headers=['Candidate Genes', 'SHEPHERD Score' ], overflow_row_behaviour='paginate') # label='Candidate Genes', show_label=False,
|
240 |
with gr.Accordion(label=f'SHEPHERD\'s Attention to Patient\'s Phenotypes', open=False, elem_id='gene_attn_accordion'):
|
241 |
#gr.Markdown(f'<center><h3>SHEPHERD\'s Attention to Patient\'s Phenotypes</h3></center>')
|
242 |
+
gene_attn_dataframe = gr.Dataframe( elem_id="gene_attn_df", headers=['Phenotypes', 'Attention' ], overflow_row_behaviour='paginate') # label='Candidate Genes', show_label=False,
|
243 |
with gr.Accordion(label=f'Visualization of Patient\'s Neighborhood in the Knowledge Graph', open=False, elem_id='kg_neigh_accordion'):
|
244 |
#kg_neighborhood_image = gr.Image(elem_id='kg_neigh')#.style(height=200, width=200)
|
245 |
kg_neighborhood_image = gr.HTML(elem_id = 'kg_patient_neighborhood')
|
|
|
255 |
patient_dataframe = gr.Dataframe(max_rows=10, datatype = 'markdown', show_label=False, elem_id="pat_df", headers=['Candidate Patient', 'Candidate Patient\'s Gene', 'Candidate Patient\'s Disease' ]) #'Candidate Patient\'s Phenotypes'
|
256 |
#patient_button = gr.Button("Go")
|
257 |
with gr.Accordion(label='SHEPHERD\'s Attention to Patient\'s Phenotypes', open=False, elem_id='pt_attn_accordion'):
|
258 |
+
pt_attn_dataframe = gr.Dataframe( elem_id="pt_attn_df", headers=['Phenotypes', 'Attention' ], overflow_row_behaviour='paginate')
|
259 |
|
260 |
|
261 |
with gr.TabItem("Disease Characterization"):
|
|
|
266 |
with gr.Accordion(label='Top 10 Most Similar Diseases according to SHEPHERD', open=True, elem_id='pt_accordion'): #
|
267 |
dx_dataframe = gr.Dataframe(max_rows=10, datatype = 'markdown', show_label=False, elem_id="dx_df", headers=['Diseases'])
|
268 |
with gr.Accordion(label='SHEPHERD\'s Attention to Patient\'s Phenotypes', open=False, elem_id='dx_attn_accordion'):
|
269 |
+
dx_attn_dataframe = gr.Dataframe( elem_id="dx_attn_df", headers=['Phenotypes', 'Attention' ], overflow_row_behaviour='paginate')
|
270 |
|
271 |
#dx_button = gr.Button("Go")
|
272 |
|