Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,10 @@ def demo():
|
|
108 |
with gr.Row():
|
109 |
dataset_format = gr.Number(label="Dataset Format", value=0)
|
110 |
with gr.Row():
|
111 |
-
|
|
|
|
|
|
|
112 |
|
113 |
|
114 |
with gr.Tab("DSM"):
|
@@ -141,13 +144,16 @@ def demo():
|
|
141 |
with gr.Row():
|
142 |
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")
|
143 |
with gr.Row():
|
144 |
-
|
|
|
|
|
|
|
145 |
spm_submit.click(spm_fn, \
|
146 |
inputs=[spm_file, identifier_column, sequence_column, sortby, sliding_window_min, sliding_window_max, min_gap, max_gap, S_support_thresh, I_support_thresh, dataset_format], \
|
147 |
-
outputs=[
|
148 |
dsm_submit.click(dsm_fn, \
|
149 |
inputs=[dsm_left_file, dsm_right_file, identifier_column_dsm, sequence_column_dsm, sortby_dsm, sliding_window_min_dsm, sliding_window_max_dsm, min_gap_dsm, max_gap_dsm, S_support_thresh_dsm, I_support_thresh_dsm, threshold_pvalue, dataset_format_dsm, test_type], \
|
150 |
-
outputs=[
|
151 |
demo.queue().launch(debug=True)
|
152 |
|
153 |
if __name__ == "__main__":
|
|
|
108 |
with gr.Row():
|
109 |
dataset_format = gr.Number(label="Dataset Format", value=0)
|
110 |
with gr.Row():
|
111 |
+
spm_result=gr.File(label="SPM result")
|
112 |
+
with gr.Row():
|
113 |
+
spm_dataframe=gr.Dataframe()
|
114 |
+
spm_submit = gr.Button("Generate SPM Result...")
|
115 |
|
116 |
|
117 |
with gr.Tab("DSM"):
|
|
|
144 |
with gr.Row():
|
145 |
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")
|
146 |
with gr.Row():
|
147 |
+
dsm_result=gr.File(label="DSM result")
|
148 |
+
with gr.Row():
|
149 |
+
dsm_dataframe=gr.Dataframe()
|
150 |
+
dsm_submit = gr.Button("Generate DSM Result...")
|
151 |
spm_submit.click(spm_fn, \
|
152 |
inputs=[spm_file, identifier_column, sequence_column, sortby, sliding_window_min, sliding_window_max, min_gap, max_gap, S_support_thresh, I_support_thresh, dataset_format], \
|
153 |
+
outputs=[spm_result,spm_dataframe])
|
154 |
dsm_submit.click(dsm_fn, \
|
155 |
inputs=[dsm_left_file, dsm_right_file, identifier_column_dsm, sequence_column_dsm, sortby_dsm, sliding_window_min_dsm, sliding_window_max_dsm, min_gap_dsm, max_gap_dsm, S_support_thresh_dsm, I_support_thresh_dsm, threshold_pvalue, dataset_format_dsm, test_type], \
|
156 |
+
outputs=[dsm_result,dsm_dataframe])
|
157 |
demo.queue().launch(debug=True)
|
158 |
|
159 |
if __name__ == "__main__":
|