-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmzmlplotter_ui_v110.py
225 lines (217 loc) · 13.4 KB
/
mzmlplotter_ui_v110.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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
# Form implementation generated from reading ui file 'mzmlplotter_v2.ui'
#
# Created by: PyQt6 UI code generator 6.6.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(386, 516)
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.formLayoutWidget = QtWidgets.QWidget(parent=self.centralwidget)
self.formLayoutWidget.setGeometry(QtCore.QRect(9, 9, 361, 149))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
self.formLayout.setContentsMargins(0, 0, 0, 0)
self.formLayout.setObjectName("formLayout")
self.label = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.label.setObjectName("label")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label)
self.modeBox = QtWidgets.QComboBox(parent=self.formLayoutWidget)
self.modeBox.setObjectName("modeBox")
self.modeBox.addItem("")
self.modeBox.addItem("")
self.modeBox.addItem("")
self.modeBox.addItem("")
self.modeBox.addItem("")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.modeBox)
self.fileselectButton = QtWidgets.QPushButton(parent=self.formLayoutWidget)
self.fileselectButton.setObjectName("fileselectButton")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.fileselectButton)
self.label_2 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.label_2.setObjectName("label_2")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_2)
self.scannumberSpinbox = QtWidgets.QSpinBox(parent=self.formLayoutWidget)
self.scannumberSpinbox.setMaximum(9999999)
self.scannumberSpinbox.setProperty("value", 1)
self.scannumberSpinbox.setObjectName("scannumberSpinbox")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.scannumberSpinbox)
self.fileLineedit = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
self.fileLineedit.setObjectName("fileLineedit")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.fileLineedit)
self.label_9 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.label_9.setObjectName("label_9")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_9)
self.mzSpinbox = QtWidgets.QDoubleSpinBox(parent=self.formLayoutWidget)
self.mzSpinbox.setDecimals(5)
self.mzSpinbox.setMaximum(1e+17)
self.mzSpinbox.setObjectName("mzSpinbox")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.mzSpinbox)
self.label_10 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.label_10.setObjectName("label_10")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.label_10)
self.profileButton = QtWidgets.QRadioButton(parent=self.formLayoutWidget)
self.profileButton.setChecked(True)
self.profileButton.setObjectName("profileButton")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.profileButton)
self.centroidButton = QtWidgets.QRadioButton(parent=self.formLayoutWidget)
self.centroidButton.setObjectName("centroidButton")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.centroidButton)
self.gridLayoutWidget = QtWidgets.QWidget(parent=self.centralwidget)
self.gridLayoutWidget.setGeometry(QtCore.QRect(10, 170, 361, 164))
self.gridLayoutWidget.setObjectName("gridLayoutWidget")
self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget)
self.gridLayout_2.setContentsMargins(0, 0, 0, 0)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_4 = QtWidgets.QLabel(parent=self.gridLayoutWidget)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 3)
self.label_6 = QtWidgets.QLabel(parent=self.gridLayoutWidget)
self.label_6.setObjectName("label_6")
self.gridLayout_2.addWidget(self.label_6, 3, 0, 1, 1)
self.lowxSpinbox = QtWidgets.QDoubleSpinBox(parent=self.gridLayoutWidget)
self.lowxSpinbox.setMaximum(9999999.0)
self.lowxSpinbox.setProperty("value", 200.0)
self.lowxSpinbox.setObjectName("lowxSpinbox")
self.gridLayout_2.addWidget(self.lowxSpinbox, 1, 1, 1, 1)
self.label_5 = QtWidgets.QLabel(parent=self.gridLayoutWidget)
self.label_5.setObjectName("label_5")
self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
self.label_3 = QtWidgets.QLabel(parent=self.gridLayoutWidget)
self.label_3.setObjectName("label_3")
self.gridLayout_2.addWidget(self.label_3, 4, 0, 1, 1)
self.highySpinbox = QtWidgets.QSpinBox(parent=self.gridLayoutWidget)
self.highySpinbox.setMaximum(999999999)
self.highySpinbox.setProperty("value", 100000)
self.highySpinbox.setObjectName("highySpinbox")
self.gridLayout_2.addWidget(self.highySpinbox, 3, 2, 1, 1)
self.lowySpinbox = QtWidgets.QSpinBox(parent=self.gridLayoutWidget)
self.lowySpinbox.setObjectName("lowySpinbox")
self.gridLayout_2.addWidget(self.lowySpinbox, 3, 1, 1, 1)
self.highscanSpinbox = QtWidgets.QSpinBox(parent=self.gridLayoutWidget)
self.highscanSpinbox.setMaximum(999999999)
self.highscanSpinbox.setObjectName("highscanSpinbox")
self.gridLayout_2.addWidget(self.highscanSpinbox, 2, 2, 1, 1)
self.colourBox = QtWidgets.QComboBox(parent=self.gridLayoutWidget)
self.colourBox.setObjectName("colourBox")
self.colourBox.addItem("")
self.colourBox.addItem("")
self.colourBox.addItem("")
self.colourBox.addItem("")
self.colourBox.addItem("")
self.colourBox.addItem("")
self.colourBox.addItem("")
self.gridLayout_2.addWidget(self.colourBox, 4, 1, 1, 2)
self.lowscanSpinbox = QtWidgets.QSpinBox(parent=self.gridLayoutWidget)
self.lowscanSpinbox.setObjectName("lowscanSpinbox")
self.gridLayout_2.addWidget(self.lowscanSpinbox, 2, 1, 1, 1)
self.highxSpinbox = QtWidgets.QDoubleSpinBox(parent=self.gridLayoutWidget)
self.highxSpinbox.setMaximum(9999999.0)
self.highxSpinbox.setProperty("value", 3000.0)
self.highxSpinbox.setObjectName("highxSpinbox")
self.gridLayout_2.addWidget(self.highxSpinbox, 1, 2, 1, 1)
self.label_8 = QtWidgets.QLabel(parent=self.gridLayoutWidget)
self.label_8.setObjectName("label_8")
self.gridLayout_2.addWidget(self.label_8, 2, 0, 1, 1)
self.widthBox = QtWidgets.QDoubleSpinBox(parent=self.gridLayoutWidget)
self.widthBox.setProperty("value", 0.4)
self.widthBox.setObjectName("widthBox")
self.gridLayout_2.addWidget(self.widthBox, 5, 1, 1, 2)
self.label_7 = QtWidgets.QLabel(parent=self.gridLayoutWidget)
self.label_7.setObjectName("label_7")
self.gridLayout_2.addWidget(self.label_7, 5, 0, 1, 1)
self.gridLayoutWidget_2 = QtWidgets.QWidget(parent=self.centralwidget)
self.gridLayoutWidget_2.setGeometry(QtCore.QRect(10, 350, 361, 121))
self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget_2)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.plotButton = QtWidgets.QPushButton(parent=self.gridLayoutWidget_2)
self.plotButton.setObjectName("plotButton")
self.gridLayout.addWidget(self.plotButton, 4, 1, 1, 1)
self.label_12 = QtWidgets.QLabel(parent=self.gridLayoutWidget_2)
self.label_12.setObjectName("label_12")
self.gridLayout.addWidget(self.label_12, 1, 0, 1, 1)
self.label_14 = QtWidgets.QLabel(parent=self.gridLayoutWidget_2)
self.label_14.setObjectName("label_14")
self.gridLayout.addWidget(self.label_14, 3, 0, 1, 1)
self.label_13 = QtWidgets.QLabel(parent=self.gridLayoutWidget_2)
self.label_13.setObjectName("label_13")
self.gridLayout.addWidget(self.label_13, 2, 0, 1, 1)
self.label_15 = QtWidgets.QLabel(parent=self.gridLayoutWidget_2)
self.label_15.setText("")
self.label_15.setObjectName("label_15")
self.gridLayout.addWidget(self.label_15, 4, 0, 1, 1)
self.label_11 = QtWidgets.QLabel(parent=self.gridLayoutWidget_2)
self.label_11.setObjectName("label_11")
self.gridLayout.addWidget(self.label_11, 0, 0, 1, 3)
self.annothresh_Spinbox = QtWidgets.QDoubleSpinBox(parent=self.gridLayoutWidget_2)
self.annothresh_Spinbox.setMaximum(100.0)
self.annothresh_Spinbox.setProperty("value", 5.0)
self.annothresh_Spinbox.setObjectName("annothresh_Spinbox")
self.gridLayout.addWidget(self.annothresh_Spinbox, 2, 1, 1, 2)
self.anno_Checkbox = QtWidgets.QCheckBox(parent=self.gridLayoutWidget_2)
self.anno_Checkbox.setChecked(False)
self.anno_Checkbox.setTristate(False)
self.anno_Checkbox.setObjectName("anno_Checkbox")
self.gridLayout.addWidget(self.anno_Checkbox, 1, 1, 1, 2)
self.maxanno_Spinbox = QtWidgets.QSpinBox(parent=self.gridLayoutWidget_2)
self.maxanno_Spinbox.setMaximum(999999999)
self.maxanno_Spinbox.setProperty("value", 25)
self.maxanno_Spinbox.setObjectName("maxanno_Spinbox")
self.gridLayout.addWidget(self.maxanno_Spinbox, 3, 1, 1, 2)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(parent=MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 386, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(parent=MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "mzml Plotter"))
self.label.setText(_translate("MainWindow", "Mode:"))
self.modeBox.setItemText(0, _translate("MainWindow", "Single Scan"))
self.modeBox.setItemText(1, _translate("MainWindow", "Combine Scans (MS1)"))
self.modeBox.setItemText(2, _translate("MainWindow", "Combine Scans (MS2)"))
self.modeBox.setItemText(3, _translate("MainWindow", "Plot TIC"))
self.modeBox.setItemText(4, _translate("MainWindow", "Plot EIC"))
self.fileselectButton.setText(_translate("MainWindow", "Select File"))
self.label_2.setText(_translate("MainWindow", "Scan Number:"))
self.label_9.setText(_translate("MainWindow", "m/z value for EIC:"))
self.label_10.setText(_translate("MainWindow", "Data Type:"))
self.profileButton.setText(_translate("MainWindow", "Profile"))
self.centroidButton.setText(_translate("MainWindow", "Centroid"))
self.label_4.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600; text-decoration: underline;\">Plot Settings</span></p></body></html>"))
self.label_6.setText(_translate("MainWindow", "Intensity Range:"))
self.label_5.setText(_translate("MainWindow", "m/z range:"))
self.label_3.setText(_translate("MainWindow", "Line Colour:"))
self.colourBox.setItemText(0, _translate("MainWindow", "Black"))
self.colourBox.setItemText(1, _translate("MainWindow", "Blue"))
self.colourBox.setItemText(2, _translate("MainWindow", "Red"))
self.colourBox.setItemText(3, _translate("MainWindow", "Yellow"))
self.colourBox.setItemText(4, _translate("MainWindow", "Green"))
self.colourBox.setItemText(5, _translate("MainWindow", "Orange"))
self.colourBox.setItemText(6, _translate("MainWindow", "Pink"))
self.label_8.setText(_translate("MainWindow", "Scan Range:"))
self.label_7.setText(_translate("MainWindow", "Line Width:"))
self.plotButton.setText(_translate("MainWindow", "Plot"))
self.label_12.setText(_translate("MainWindow", "Annotate Peaks?"))
self.label_14.setText(_translate("MainWindow", "Max Annotations:"))
self.label_13.setText(_translate("MainWindow", "Annotation Threshold:"))
self.label_11.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" font-weight:600; text-decoration: underline;\">Annotation Settings</span></p></body></html>"))
self.anno_Checkbox.setText(_translate("MainWindow", "Annotate"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec())