-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.py
39 lines (36 loc) · 1.3 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
32
33
34
35
36
37
38
39
import streamlit as st
import index
import mutation_freq
import variant_deconv
PAGES = {
"Home": {"module": index},
"Mutation Frequency": {"module": mutation_freq},
"Variant Deconvolution": {"module": variant_deconv},
}
def sidebar():
# Add the logo and "powered by" text
st.sidebar.markdown(
"""
<div style="text-align: center;">
<picture>
<source
media="(prefers-color-scheme: light)"
srcset="https://cbg-ethz.github.io/V-pipe/assets/img/logo-vpipe.svg">
<source
media="(prefers-color-scheme: dark)"
srcset="https://cbg-ethz.github.io/V-pipe/assets/img/logo-vpipe-dark.svg">
<img alt="Logo" src="https://cbg-ethz.github.io/V-pipe/assets/img/logo-vpipe.svg" width="50%" />
</picture>
<p>on cloud</p>
</div>
""",
unsafe_allow_html=True
)
st.sidebar.title("Navigation")
selection = st.sidebar.radio("Go to", list(PAGES.keys())) # Changed to selectbox
return selection
if __name__ == "__main__":
st.set_page_config(page_title="V-Pipe Cloud", page_icon="https://cbg-ethz.github.io/V-pipe/favicon-32x32.png")
selection = sidebar()
page = PAGES[selection]["module"]
page.app()