Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import pyBigWig
|
|
4 |
from func_gradio import predict_func,make_plots
|
5 |
|
6 |
inputs = [
|
|
|
|
|
7 |
gr.Dropdown([str(i) for i in range(1, 23)], label='Chromosome', default='1'),
|
8 |
-
gr.Dropdown(['Micro-C', 'Hi-C (ChIA-PET)']
|
9 |
-
, label='Chromatin contact map', info='One type of contact map is predicted for each time'),
|
10 |
gr.Number(label='Region of interest (500kb for Micro-C and 1Mb for Hi-C)', info='From'),
|
11 |
gr.Number(info='To', show_label=False),
|
12 |
gr.File(label='Processed ATAC-seq file (in .pickle format)'),
|
@@ -14,7 +14,7 @@ inputs = [
|
|
14 |
]
|
15 |
|
16 |
outputs = [
|
17 |
-
gr.Files(label='Download the results'),
|
18 |
]
|
19 |
|
20 |
app1 = gr.Interface(
|
@@ -26,8 +26,6 @@ app1 = gr.Interface(
|
|
26 |
'<img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
|
27 |
'\n<a href="https://github.com/zzh24zzh/EPCOT_gradio" class="built-with svelte-1lyswbr" target="_blank" '
|
28 |
'style="font-size: 15px; font-color: black; font-weight:bold" rel="noreferrer">View Documentation </a>',
|
29 |
-
# examples=[["11","Micro-C","10500000","11000000","./examples/atac_GM12878.pickle"],
|
30 |
-
# ["11","Hi-C (ChIA-PET)","7750000","8750000","./examples/atac_GM12878.pickle"]]
|
31 |
)
|
32 |
|
33 |
|
@@ -55,4 +53,3 @@ demo = gr.TabbedInterface([app1, app2], ["Run model", "Visualize prediction resu
|
|
55 |
theme=gr.themes.Soft())
|
56 |
|
57 |
demo.queue(concurrency_count=1,max_size=20).launch()
|
58 |
-
|
|
|
4 |
from func_gradio import predict_func,make_plots
|
5 |
|
6 |
inputs = [
|
7 |
+
gr.Radio(['Micro-C', 'Hi-C (ChIA-PET)']
|
8 |
+
, label='Chromatin contact map type', info='One type of contact map is predicted for each time'),
|
9 |
gr.Dropdown([str(i) for i in range(1, 23)], label='Chromosome', default='1'),
|
|
|
|
|
10 |
gr.Number(label='Region of interest (500kb for Micro-C and 1Mb for Hi-C)', info='From'),
|
11 |
gr.Number(info='To', show_label=False),
|
12 |
gr.File(label='Processed ATAC-seq file (in .pickle format)'),
|
|
|
14 |
]
|
15 |
|
16 |
outputs = [
|
17 |
+
gr.Files(label='Download the results (upload the file in the "Visualize prediction results" interface for visualization)'),
|
18 |
]
|
19 |
|
20 |
app1 = gr.Interface(
|
|
|
26 |
'<img style="display: inline; margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3gLdBN6" alt="Duplicate Space" /></a></p>'
|
27 |
'\n<a href="https://github.com/zzh24zzh/EPCOT_gradio" class="built-with svelte-1lyswbr" target="_blank" '
|
28 |
'style="font-size: 15px; font-color: black; font-weight:bold" rel="noreferrer">View Documentation </a>',
|
|
|
|
|
29 |
)
|
30 |
|
31 |
|
|
|
53 |
theme=gr.themes.Soft())
|
54 |
|
55 |
demo.queue(concurrency_count=1,max_size=20).launch()
|
|