forked from OpenMS/streamlit-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
94 lines (90 loc) · 2.95 KB
/
app.py
File metadata and controls
94 lines (90 loc) · 2.95 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
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
94
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", "documentation.py"), title="Documentation", icon="📖"
),
],
"Getting started with DIA": [
st.Page(
Path("content", "dia_00_concepts.py"),
title="Concepts",
icon="📚",
),
st.Page(
Path("content", "dia_01_targeted_data_extraction.py"),
title="Targeted Data Extraction",
icon="🎯",
),
st.Page(
Path(
"content",
"dia_02_extracted_ion_chromatgoram_peak_picking_and_feature_scoring.py",
),
title="Peak Detection and Feature Scoring",
icon="🔍",
),
st.Page(
Path("content", "dia_03_feature_scoring.py"),
title="Feature Scoring",
icon="⭐️",
),
st.Page(
Path("content", "dia_04_statistical_validation.py"),
title="Statistical Validation",
icon="📊",
),
],
"Spectral Library Generation": [
st.Page(
Path("content", "insilico_spectral_library_generation.py"),
title="Predicted Library",
icon="📚",
),
st.Page(
Path("content", "openswathassay_generation.py"),
title="Filter and Optimize Library",
icon="🔧",
),
st.Page(
Path("content", "openswathdecoy_generation.py"),
title="Generate/Append Decoys",
icon="🎭",
),
],
"pyOpenMS 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="💥",
),
],
"Others": [
st.Page(
Path("content", "log_viewer.py"),
title="Log Viewer",
icon="🧾",
),
],
}
pg = st.navigation(pages)
pg.run()