vivek9 commited on
Commit
1639c04
·
verified ·
1 Parent(s): 84fad1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +46 -44
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.Row():
93
- identifier_column = gr.Textbox(label="Identifier Column", value="Identifier")
94
- with gr.Row():
95
- sequence_column = gr.Textbox(label="Sequence Column", value="Sequence")
96
- with gr.Row():
97
- sortby = gr.Dropdown(label="Sort By", choices=["S-Support", "I-Support"], value="S-Support")
98
- with gr.Row():
99
- sliding_window_min = gr.Number(label="Sliding Window Min", value=1)
100
- with gr.Row():
101
- sliding_window_max = gr.Number(label="Sliding Window Max", value=4)
102
- with gr.Row():
103
- min_gap = gr.Number(label="Min Gap", value=1)
104
- with gr.Row():
105
- max_gap = gr.Number(label="Max Gap", value=12)
106
- with gr.Row():
107
- S_support_thresh = gr.Number(label="S Support Threshold", value=0.4)
108
- with gr.Row():
109
- I_support_thresh = gr.Number(label="I Support Threshold", value=0)
110
- with gr.Row():
111
- dataset_format = gr.Number(label="Dataset Format", value=0)
 
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.Row():
125
- identifier_column_dsm = gr.Textbox(label="Identifier Column", value="Identifier")
126
- with gr.Row():
127
- sequence_column_dsm = gr.Textbox(label="Sequence Column", value="Sequence")
128
- with gr.Row():
129
- sortby_dsm = gr.Dropdown(label="Sort By", choices=["S-Support", "I-Support"], value="S-Support")
130
- with gr.Row():
131
- sliding_window_min_dsm = gr.Number(label="Sliding Window Min", value=1)
132
- with gr.Row():
133
- sliding_window_max_dsm = gr.Number(label="Sliding Window Max", value=1)
134
- with gr.Row():
135
- min_gap_dsm = gr.Number(label="Min Gap", value=1)
136
- with gr.Row():
137
- max_gap_dsm = gr.Number(label="Max Gap", value=12)
138
- with gr.Row():
139
- S_support_thresh_dsm = gr.Number(label="S Support Threshold", value=0.4)
140
- with gr.Row():
141
- I_support_thresh_dsm = gr.Number(label="I Support Threshold", value=0)
142
- with gr.Row():
143
- threshold_pvalue = gr.Number(label="Threshold P-value", value=0.1)
144
- with gr.Row():
145
- dataset_format_dsm = gr.Number(label="Dataset Format", value=0)
146
- with gr.Row():
147
- 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")
 
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():