Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,26 +89,27 @@ def demo():
|
|
89 |
with gr.Tab("SPM"):
|
90 |
with gr.Row():
|
91 |
spm_file = gr.File(label="Upload CSV file")
|
92 |
-
with gr.
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
112 |
with gr.Row():
|
113 |
spm_result=gr.File(label="SPM result")
|
114 |
with gr.Row():
|
@@ -121,30 +122,31 @@ def demo():
|
|
121 |
dsm_left_file = gr.File(label="Upload Left Dataset CSV file")
|
122 |
with gr.Row():
|
123 |
dsm_right_file = gr.File(label="Upload Right Dataset CSV file")
|
124 |
-
with gr.
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
148 |
with gr.Row():
|
149 |
dsm_result=gr.File(label="DSM result")
|
150 |
with gr.Row():
|
|
|
89 |
with gr.Tab("SPM"):
|
90 |
with gr.Row():
|
91 |
spm_file = gr.File(label="Upload CSV file")
|
92 |
+
with gr.Accordion("Advanced options", open=False):
|
93 |
+
with gr.Row():
|
94 |
+
identifier_column = gr.Textbox(label="Identifier Column", value="Identifier")
|
95 |
+
with gr.Row():
|
96 |
+
sequence_column = gr.Textbox(label="Sequence Column", value="Sequence")
|
97 |
+
with gr.Row():
|
98 |
+
sortby = gr.Dropdown(label="Sort By", choices=["S-Support", "I-Support"], value="S-Support")
|
99 |
+
with gr.Row():
|
100 |
+
sliding_window_min = gr.Number(label="Sliding Window Min", value=1)
|
101 |
+
with gr.Row():
|
102 |
+
sliding_window_max = gr.Number(label="Sliding Window Max", value=4)
|
103 |
+
with gr.Row():
|
104 |
+
min_gap = gr.Number(label="Min Gap", value=1)
|
105 |
+
with gr.Row():
|
106 |
+
max_gap = gr.Number(label="Max Gap", value=12)
|
107 |
+
with gr.Row():
|
108 |
+
S_support_thresh = gr.Number(label="S Support Threshold", value=0.4)
|
109 |
+
with gr.Row():
|
110 |
+
I_support_thresh = gr.Number(label="I Support Threshold", value=0)
|
111 |
+
with gr.Row():
|
112 |
+
dataset_format = gr.Number(label="Dataset Format", value=0)
|
113 |
with gr.Row():
|
114 |
spm_result=gr.File(label="SPM result")
|
115 |
with gr.Row():
|
|
|
122 |
dsm_left_file = gr.File(label="Upload Left Dataset CSV file")
|
123 |
with gr.Row():
|
124 |
dsm_right_file = gr.File(label="Upload Right Dataset CSV file")
|
125 |
+
with gr.Accordion("Advanced options", open=False):
|
126 |
+
with gr.Row():
|
127 |
+
identifier_column_dsm = gr.Textbox(label="Identifier Column", value="Identifier")
|
128 |
+
with gr.Row():
|
129 |
+
sequence_column_dsm = gr.Textbox(label="Sequence Column", value="Sequence")
|
130 |
+
with gr.Row():
|
131 |
+
sortby_dsm = gr.Dropdown(label="Sort By", choices=["S-Support", "I-Support"], value="S-Support")
|
132 |
+
with gr.Row():
|
133 |
+
sliding_window_min_dsm = gr.Number(label="Sliding Window Min", value=1)
|
134 |
+
with gr.Row():
|
135 |
+
sliding_window_max_dsm = gr.Number(label="Sliding Window Max", value=1)
|
136 |
+
with gr.Row():
|
137 |
+
min_gap_dsm = gr.Number(label="Min Gap", value=1)
|
138 |
+
with gr.Row():
|
139 |
+
max_gap_dsm = gr.Number(label="Max Gap", value=12)
|
140 |
+
with gr.Row():
|
141 |
+
S_support_thresh_dsm = gr.Number(label="S Support Threshold", value=0.4)
|
142 |
+
with gr.Row():
|
143 |
+
I_support_thresh_dsm = gr.Number(label="I Support Threshold", value=0)
|
144 |
+
with gr.Row():
|
145 |
+
threshold_pvalue = gr.Number(label="Threshold P-value", value=0.1)
|
146 |
+
with gr.Row():
|
147 |
+
dataset_format_dsm = gr.Number(label="Dataset Format", value=0)
|
148 |
+
with gr.Row():
|
149 |
+
test_type = gr.Dropdown(label="Test Type", choices=["poisson_means_test", "ttest_ind", "mannwhitneyu", "bws_test", "ranksums", "brunnermunzel", "mood", "ansari", "cramervonmises_2samp", "epps_singleton_2samp", "ks_2samp", "kstest"], value="ttest_ind")
|
150 |
with gr.Row():
|
151 |
dsm_result=gr.File(label="DSM result")
|
152 |
with gr.Row():
|