-
Notifications
You must be signed in to change notification settings - Fork 9
/
layout_overlay.py
174 lines (170 loc) · 6.64 KB
/
layout_overlay.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# Dash imports
import dash
from dash import dcc
import dash_bootstrap_components as dbc
from dash import html
import dash_table
from dash.dependencies import Input, Output, State
import dash_daq as daq
# Plotly Imports
import plotly.express as px
import plotly.graph_objects as go
OVERLAY_PANEL = [
dbc.CardHeader(html.H5("LCMS Overlay Options")),
dbc.CardBody(
[
dbc.Row([
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay UDI"),
dbc.Input(id='overlay_usi', placeholder="Enter Overlay File UDI for GNPS"),
],
className="mb-3",
),
)
]),
dbc.Row([
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay m/z", style={"margin-right":"20px"}),
#dbc.Input(id='overlay_mz', placeholder="Enter Overlay mz column", value="row m/z"),
dcc.Dropdown(
id='overlay_mz',
options=[
{'label': 'None', 'value': ''},
],
searchable=False,
clearable=False,
value="row m/z",
style={
"width":"60%"
}
)
],
className="mb-3",
),
),
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay RT", style={"margin-right":"20px"}),
#dbc.Input(id='overlay_rt', placeholder="Enter Overlay rt column", value="row retention time"),
dcc.Dropdown(
id='overlay_rt',
options=[
{'label': 'None', 'value': ''},
],
searchable=False,
clearable=False,
value="row retention time",
style={
"width":"60%"
}
)
],
className="mb-3",
),
)
]),
dbc.Row([
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay color", style={"margin-right":"20px"}),
#dbc.Input(id='overlay_color', placeholder="Enter Overlay color column", value=""),
dcc.Dropdown(
id='overlay_color',
options=[
{'label': 'None', 'value': ''},
],
searchable=False,
clearable=False,
value="",
style={
"width":"60%"
}
)
],
className="mb-3",
),
),
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay size", style={"margin-right":"20px"}),
#dbc.Input(id='overlay_size', placeholder="Enter Overlay size column", value=""),
dcc.Dropdown(
id='overlay_size',
options=[
{'label': 'None', 'value': ''},
],
searchable=False,
clearable=False,
value="",
style={
"width":"60%"
}
)
],
className="mb-3",
),
)
]),
dbc.Row([
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay Label Column", style={"margin-right":"20px"}),
dcc.Dropdown(
id='overlay_hover',
options=[
{'label': 'None', 'value': ''},
],
searchable=False,
clearable=False,
value="",
style={
"width":"60%"
}
)
],
className="mb-3",
),
),
]),
dbc.Row([
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay Filter Column"),
dbc.Input(id='overlay_filter_column', placeholder="Enter Overlay filter column", value=""),
],
className="mb-3",
),
),
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay Filter Value"),
dbc.Input(id='overlay_filter_value', placeholder="Enter Overlay size column", value=""),
],
className="mb-3",
),
)
]),
dbc.Row([
dbc.Col(
dbc.InputGroup(
[
dbc.InputGroupText("Overlay Raw Tabular Data (if no UDI)"),
dbc.Textarea(id='overlay_tabular_data', placeholder="Enter Overlay tabular data", rows="20", value=""),
],
className="mb-3",
),
)
])
]
)
]