-
Notifications
You must be signed in to change notification settings - Fork 11
/
app.py
31 lines (29 loc) · 1.53 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import streamlit as st
from pathlib import Path
# For some reason the windows version only works if this is imported here
import pyopenms
if __name__ == '__main__':
pages = {
"OpenMS Web App" : [
st.Page(Path("content", "quickstart.py"), title="Quickstart", icon="👋"),
st.Page(Path("content", "documentation.py"), title="Documentation", icon="📖"),
],
"TOPP Workflow Framework": [
st.Page(Path("content", "topp_workflow_file_upload.py"), title="File Upload", icon="📁"),
st.Page(Path("content", "topp_workflow_parameter.py"), title="Configure", icon="⚙️"),
st.Page(Path("content", "topp_workflow_execution.py"), title="Run", icon="🚀"),
st.Page(Path("content", "topp_workflow_results.py"), title="Results", icon="📊"),
],
"pyOpenMS Workflow" : [
st.Page(Path("content", "file_upload.py"), title="File Upload", icon="📂"),
st.Page(Path("content", "raw_data_viewer.py"), title="View MS data", icon="👀"),
st.Page(Path("content", "run_example_workflow.py"), title="Run Workflow", icon="⚙️"),
st.Page(Path("content", "download_section.py"), title="Download Results", icon="⬇️"),
],
"Others Topics": [
st.Page(Path("content", "simple_workflow.py"), title="Simple Workflow", icon="⚙️"),
st.Page(Path("content", "run_subprocess.py"), title="Run Subprocess", icon="🖥️"),
]
}
pg = st.navigation(pages)
pg.run()