Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -383,7 +383,7 @@ with gr.Blocks() as demo:
|
|
| 383 |
cytof_state = gr.State(CytofImage())
|
| 384 |
# used in scenrios where users define/remove channels multiple times
|
| 385 |
cytof_original_state = gr.State(CytofImage())
|
| 386 |
-
|
| 387 |
gr.Markdown('<div class="h-1">Step 1. Upload images</div>')
|
| 388 |
gr.Markdown('<div class="h-2">You may upload one or two files depending on your use case.</div>')
|
| 389 |
gr.Markdown('<div class="h-2 bold">Case 1: Upload a single file</div>')
|
|
@@ -515,7 +515,7 @@ with gr.Blocks() as demo:
|
|
| 515 |
with gr.Column(scale=2):
|
| 516 |
gr.Markdown('<div class="h-2">This analysis measures the degree of co-expression within a pair of neighborhoods.</div>')
|
| 517 |
gr.Markdown('<div class="h-2">Select the clustering method:</div>')
|
| 518 |
-
info_text = gr.Markdown(update_info_text('
|
| 519 |
cluster_method = gr.Radio(['k-neighbor', 'distance'], value='k-neighbor', elem_classes='test', label='')
|
| 520 |
cluster_threshold = gr.Slider(minimum=1, maximum=100, step=1, value=30, interactive=True, label='Clustering threshold')
|
| 521 |
spatial_btn = gr.Button('Run spatial interaction analysis')
|
|
@@ -531,7 +531,8 @@ with gr.Blocks() as demo:
|
|
| 531 |
gr.Markdown('<br>')
|
| 532 |
gr.Markdown('<div class="h-1">Step 6. Visualize positive markers</div>')
|
| 533 |
gr.Markdown('<div class="h-2">Select two markers for side-by-side comparison to visualize their positive states in cells. This serves two purposes: </div>')
|
| 534 |
-
gr.Markdown('<div class="h-2 bold">(1) Validate the co-expression analysis results
|
|
|
|
| 535 |
|
| 536 |
|
| 537 |
with gr.Row(): # two marker positive visualization - dropdown options
|
|
|
|
| 383 |
cytof_state = gr.State(CytofImage())
|
| 384 |
# used in scenrios where users define/remove channels multiple times
|
| 385 |
cytof_original_state = gr.State(CytofImage())
|
| 386 |
+
|
| 387 |
gr.Markdown('<div class="h-1">Step 1. Upload images</div>')
|
| 388 |
gr.Markdown('<div class="h-2">You may upload one or two files depending on your use case.</div>')
|
| 389 |
gr.Markdown('<div class="h-2 bold">Case 1: Upload a single file</div>')
|
|
|
|
| 515 |
with gr.Column(scale=2):
|
| 516 |
gr.Markdown('<div class="h-2">This analysis measures the degree of co-expression within a pair of neighborhoods.</div>')
|
| 517 |
gr.Markdown('<div class="h-2">Select the clustering method:</div>')
|
| 518 |
+
info_text = gr.Markdown(update_info_text('K-neighbor'))
|
| 519 |
cluster_method = gr.Radio(['k-neighbor', 'distance'], value='k-neighbor', elem_classes='test', label='')
|
| 520 |
cluster_threshold = gr.Slider(minimum=1, maximum=100, step=1, value=30, interactive=True, label='Clustering threshold')
|
| 521 |
spatial_btn = gr.Button('Run spatial interaction analysis')
|
|
|
|
| 531 |
gr.Markdown('<br>')
|
| 532 |
gr.Markdown('<div class="h-1">Step 6. Visualize positive markers</div>')
|
| 533 |
gr.Markdown('<div class="h-2">Select two markers for side-by-side comparison to visualize their positive states in cells. This serves two purposes: </div>')
|
| 534 |
+
gr.Markdown('<div class="h-2 bold">(1) Validate the co-expression analysis results.</div>')
|
| 535 |
+
gr.Markdown('<div class="h-2 bold">(2) Validate teh spatial interaction analysis results.</div>')
|
| 536 |
|
| 537 |
|
| 538 |
with gr.Row(): # two marker positive visualization - dropdown options
|