-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
26 lines (23 loc) · 1.06 KB
/
app.py
File metadata and controls
26 lines (23 loc) · 1.06 KB
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
import streamlit as st
from pathlib import Path
import json
# For some reason the windows version only works if this is imported here
import pyopenms
if "settings" not in st.session_state:
with open("settings.json", "r") as f:
st.session_state.settings = json.load(f)
if __name__ == '__main__':
pages = {
str(st.session_state.settings["app-name"]) : [
st.Page(Path("content", "quickstart.py"), title="Quickstart", icon="👋"),
],
"Toolbox": [
st.Page(Path("content", "digest.py"), title="In Silico Digest", icon="✂️"),
st.Page(Path("content", "peptide_mz_calculator.py"), title="m/z Calculator", icon="⚖️"),
st.Page(Path("content", "isotope_pattern_generator.py"), title="Isotopic Pattern Calculator", icon="📶"),
st.Page(Path("content", "fragmentation.py"), title="Fragment Ion Generation", icon="💥"),
st.Page(Path("content", "fasta_analyzer.py"), title="FASTA Analyzer", icon="🧬"),
],
}
pg = st.navigation(pages)
pg.run()