Umair Khan
commited on
Commit
·
1a90954
1
Parent(s):
1c2ae90
move checkbox to dropdown row
Browse files
app.py
CHANGED
|
@@ -412,6 +412,10 @@ div#tahoe-logo {
|
|
| 412 |
margin-top: 20px;
|
| 413 |
margin-bottom: 20px;
|
| 414 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 415 |
"""
|
| 416 |
with gr.Blocks(title=APP_TITLE, css=css) as demo:
|
| 417 |
|
|
@@ -434,16 +438,12 @@ with gr.Blocks(title=APP_TITLE, css=css) as demo:
|
|
| 434 |
f_in = gr.File(label="Upload .h5ad", file_types=[".h5ad"], type="filepath")
|
| 435 |
|
| 436 |
# dropdown block
|
| 437 |
-
with gr.Row():
|
| 438 |
-
layer_dd = gr.Dropdown(choices=["<use .X>"], value="<use .X>", label="Layer to use (default: .X)")
|
| 439 |
-
|
| 440 |
-
|
| 441 |
-
|
| 442 |
-
|
| 443 |
-
use_symbols_chk = gr.Checkbox(
|
| 444 |
-
label="Selected .var column contains gene symbols (attempt conversion to Ensembl IDs)",
|
| 445 |
-
value=False
|
| 446 |
-
)
|
| 447 |
|
| 448 |
# run button
|
| 449 |
run_btn = gr.Button("Compute Embeddings + UMAP", variant="primary")
|
|
|
|
| 412 |
margin-top: 20px;
|
| 413 |
margin-bottom: 20px;
|
| 414 |
}
|
| 415 |
+
#var-group .gr-checkbox > label {
|
| 416 |
+
font-size: 0.9em;
|
| 417 |
+
opacity: 0.9;
|
| 418 |
+
}
|
| 419 |
"""
|
| 420 |
with gr.Blocks(title=APP_TITLE, css=css) as demo:
|
| 421 |
|
|
|
|
| 438 |
f_in = gr.File(label="Upload .h5ad", file_types=[".h5ad"], type="filepath")
|
| 439 |
|
| 440 |
# dropdown block
|
| 441 |
+
with gr.Row(equal_height=True):
|
| 442 |
+
layer_dd = gr.Dropdown(choices=["<use .X>"], value="<use .X>", label="Layer to use (default: .X)", scale=1)
|
| 443 |
+
with gr.Column(scale=1):
|
| 444 |
+
var_dd = gr.Dropdown(choices=[], value=None, label="Name of .var column with Ensembl gene IDs (or gene symbols)")
|
| 445 |
+
use_symbols_chk = gr.Checkbox(label="Selected .var column contains gene symbols (attempt conversion to Ensembl IDs)", value=False)
|
| 446 |
+
obs_dd = gr.Dropdown(choices=[], value=None, label="Name of .obs column to color UMAP by (optional)", scale=1)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 447 |
|
| 448 |
# run button
|
| 449 |
run_btn = gr.Button("Compute Embeddings + UMAP", variant="primary")
|