Update app.py
Browse files
app.py
CHANGED
@@ -16,14 +16,12 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
|
|
16 |
gr.Markdown("Pre Merge里,可以将序列文件与smi文件进行合并,合并后可以进行dlkcat值的计算,合并前若序列文件需要处理换行符也可以对其进行处理")
|
17 |
gr.Markdown("Merge Dlsc里,可以合并scores值文件和dlkcat文件,主义这两个文件序列需要一致")
|
18 |
with gr.Tab("Sort"):
|
19 |
-
|
20 |
-
file1_input1 = gr.File(label="scores_file")
|
21 |
-
file1_input2 = gr.File(label="dlkcat_file")
|
22 |
-
file1_input3 = gr.File(label="kcasco_file")
|
23 |
file1_output = gr.File()
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
27 |
|
28 |
with gr.Tab("Pre Merge"):
|
29 |
with gr.Row():
|
@@ -32,8 +30,9 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
|
|
32 |
file2_input3 = gr.File(label="seq_file")
|
33 |
file2_output = gr.File()
|
34 |
file2_button1 = gr.Button("Strip")
|
35 |
-
|
36 |
-
|
|
|
37 |
|
38 |
with gr.Tab("Merge Dlsc"):
|
39 |
with gr.Row():
|
@@ -50,9 +49,9 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
|
|
50 |
with gr.Accordion("Open for More!"):
|
51 |
gr.Markdown("Look at me...")
|
52 |
|
53 |
-
file1_button1.click(Sort_Scores, inputs=
|
54 |
-
file1_button2.click(Sort_Dlkcat, inputs=
|
55 |
-
file1_button3.click(Sort_Sco_Kcat, inputs=
|
56 |
|
57 |
file2_button1.click(Strip, inputs=file2_input1, outputs=file2_output)
|
58 |
file2_button2.click(Merge, inputs=[file2_input2, file2_input3], outputs=file2_output)
|
@@ -64,4 +63,3 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=background.jp
|
|
64 |
|
65 |
if __name__ == "__main__":
|
66 |
demo.launch()
|
67 |
-
|
|
|
16 |
gr.Markdown("Pre Merge里,可以将序列文件与smi文件进行合并,合并后可以进行dlkcat值的计算,合并前若序列文件需要处理换行符也可以对其进行处理")
|
17 |
gr.Markdown("Merge Dlsc里,可以合并scores值文件和dlkcat文件,主义这两个文件序列需要一致")
|
18 |
with gr.Tab("Sort"):
|
19 |
+
file1_input = gr.File(label="输入相关文件")
|
|
|
|
|
|
|
20 |
file1_output = gr.File()
|
21 |
+
with gr.Row():
|
22 |
+
file1_button1 = gr.Button("Sort Scores")
|
23 |
+
file1_button2 = gr.Button("Sort Dlkcat")
|
24 |
+
file1_button3 = gr.Button("Sort Mergekcat")
|
25 |
|
26 |
with gr.Tab("Pre Merge"):
|
27 |
with gr.Row():
|
|
|
30 |
file2_input3 = gr.File(label="seq_file")
|
31 |
file2_output = gr.File()
|
32 |
file2_button1 = gr.Button("Strip")
|
33 |
+
with gr.Row():
|
34 |
+
file2_button2 = gr.Button("Merge")
|
35 |
+
file2_button3 = gr.Button("Merge All")
|
36 |
|
37 |
with gr.Tab("Merge Dlsc"):
|
38 |
with gr.Row():
|
|
|
49 |
with gr.Accordion("Open for More!"):
|
50 |
gr.Markdown("Look at me...")
|
51 |
|
52 |
+
file1_button1.click(Sort_Scores, inputs=file1_input, outputs=file1_output)
|
53 |
+
file1_button2.click(Sort_Dlkcat, inputs=file1_input, outputs=file1_output)
|
54 |
+
file1_button3.click(Sort_Sco_Kcat, inputs=file1_input, outputs=file1_output)
|
55 |
|
56 |
file2_button1.click(Strip, inputs=file2_input1, outputs=file2_output)
|
57 |
file2_button2.click(Merge, inputs=[file2_input2, file2_input3], outputs=file2_output)
|
|
|
63 |
|
64 |
if __name__ == "__main__":
|
65 |
demo.launch()
|
|