-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
streamlit_app.py
93 lines (83 loc) · 2.78 KB
/
streamlit_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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import streamlit as st
import os
# --- PAGE CONFIG ---
st.set_page_config(
page_title="Aurora PK/PD",
page_icon=":sparkles:",
initial_sidebar_state="auto",
layout="wide",
)
# --- PAGE SETUP ---
home_page = st.Page("pages/home.py", title="Home", icon=":material/house:")
upload_page = st.Page(
"pages/compartmental/upload.py", title="Upload Existing Model", icon=":material/upload:"
)
build_page = st.Page(
"pages/compartmental/build.py", title="Build New Model", icon=":material/build:"
)
edit_page = st.Page("pages/compartmental/edit.py", title="Edit Model Code", icon=":material/code:")
viz_page = st.Page(
"pages/compartmental/visualize.py", title="Visualize Networks", icon=":material/hub:"
)
simulate_page = st.Page(
"pages/compartmental/simulate.py", title="Simulate and View Outputs", icon=":material/laps:"
)
fit_page = st.Page(
"pages/compartmental/fit.py", title="🔜Calibrate Model to Data", icon=":material/model_training:"
)
analyze_page = st.Page(
"pages/compartmental/analyze.py", title="🔜Analyze Model", icon=":material/analytics:"
)
nca_page = st.Page(
"pages/noncompartmental/nca.py", title="🔜NCA", icon=":material/query_stats:"
)
pdfit_page = st.Page(
"pages/pdanalysis/exposureresponse.py",
title="Exposure-Response",
icon=":material/elevation:",
)
htprolif_page = st.Page(
"pages/external/htproliferation.py",
title="Thunor➡️HT Cell Proliferation",
icon=":material/bolt:",
)
drugsynergy_page = st.Page(
"pages/external/drugsynergy.py",
title="MuSyC➡️Drug Combo Synergy",
icon=":material/music_note:",
)
support_info_page = st.Page(
"pages/support/info.py", title="Info", icon=":material/info:"
)
# --- NAVIGATION SETUP [WITH SECTIONS]---
pg = st.navigation(
{
" ": [home_page],
"Compartmental PK/PD": [
upload_page,
build_page,
edit_page,
viz_page,
simulate_page,
fit_page,
analyze_page,
],
"Non-compartmental PK": [nca_page],
"PD Analysis": [pdfit_page],
"Support": [support_info_page],
"External Tools": [htprolif_page, drugsynergy_page]
}
)
# --- SHARED ON ALL PAGES ---
st.logo(
"assets/aurora-pkpd-logo-wide.png",
link=None,
icon_image="assets/aurora-pkpd-logo-2.png",
)
st.sidebar.markdown("Aurora PK/PD v0.3.0-alpha")
st.sidebar.markdown("[![DOI](https://zenodo.org/badge/823310494.svg)](https://zenodo.org/doi/10.5281/zenodo.13138374)")
st.sidebar.markdown("A Streamlit web app by [@blakeaw](https://github.com/blakeaw)")
st.sidebar.markdown("[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/J3J4ZUCVU)")
st.sidebar.markdown("[Borealis BioModeling](https://github.com/Borealis-BioModeling)")
# --- RUN NAVIGATION ---
pg.run()