128 'local alignment':
'local-aln',
129 'global alignment':
'global-aln'}
134 QtWidgets.QDialog.__init__(self, parent)
135 self.setWindowTitle(
'Superpose Structures')
138 n_one = ent_one.GetName()
144 n_one = ent_one.GetName()
146 n_one = ent_one.GetHandle().GetName()
152 n_two = ent_two.GetName()
158 n_two = ent_two.GetName()
160 n_two = ent_two.GetHandle().GetName()
167 layout = QtWidgets.QGridLayout(self)
172 layout.addWidget(QtWidgets.QLabel(
"reference"), grow, 0)
178 layout.addWidget(QtWidgets.QLabel(
"reference chain"), grow, 0)
181 layout.addWidget(QtWidgets.QLabel(
"chain"), grow, 0)
188 layout.addWidget(QtWidgets.QLabel(
'match residues by'), grow, 0)
195 layout.addWidget(self.
_it_box, grow, 0)
204 ok_button = QtWidgets.QPushButton(
"Superpose")
206 cancel_button = QtWidgets.QPushButton(
"Cancel")
207 hbox_layout = QtWidgets.QHBoxLayout()
208 hbox_layout.addStretch(1)
209 layout.addLayout(hbox_layout, grow, 0, 1, 2)
211 cancel_button.clicked.connect(self.
reject)
213 hbox_layout.addWidget(cancel_button, 0)
214 hbox_layout.addWidget(ok_button, 0)
215 ok_button.setDefault(
True)
249 bt1 = QtWidgets.QRadioButton(
'All')
250 bt2 = QtWidgets.QRadioButton(
'Backbone')
251 bt3 = QtWidgets.QRadioButton(
'CA')
253 custom_rbutton = QtWidgets.QRadioButton(self.
cstmbtntxt)
254 group = QtWidgets.QButtonGroup()
258 group.addButton(custom_rbutton)
260 vbox_layout = QtWidgets.QVBoxLayout()
261 vbox_layout.addWidget(bt1)
262 vbox_layout.addWidget(bt2)
263 vbox_layout.addWidget(bt3)
264 vbox_layout.addWidget(custom_rbutton)
265 vbox_layout.addWidget(self.
_atoms)
267 box = QtWidgets.QGroupBox(
"atom selection")
268 box.setLayout(vbox_layout)
286 for atm
in ent_a.GetAtomList():
287 atm_dict[atm.name] = 0
288 for atm
in ent_b.GetAtomList():
289 if atm.name
in atm_dict:
290 atm_dict[atm.name] = 1
292 for atm
in sorted(atm_dict.keys()):
295 elems = QtCore.QStringListModel(atmlst)
296 atoms = QtWidgets.QListView(self)
297 dim.setHeight(3*dim.height())
298 atoms.setFixedSize(dim)
299 atoms.setModel(elems)
300 atoms.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
301 atoms.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
302 atoms.setEnabled(
False)
324 bt1 = QtWidgets.QRadioButton(
"On")
325 iteration_label=QtWidgets.QLabel(
"Max Iterations: ")
326 distance_label=QtWidgets.QLabel(
"Dist Thresh: ")
327 iteration_in=QtWidgets.QSpinBox()
328 iteration_in.setRange(1,30)
329 iteration_in.setValue(8)
330 distance_in=QtWidgets.QDoubleSpinBox()
331 distance_in.setRange(1.0,10.0)
332 distance_in.setValue(3.0)
333 distance_in.setDecimals(1)
334 distance_in.setSingleStep(0.5)
335 iteration_in.setEnabled(
False)
336 distance_in.setEnabled(
False)
337 bt1.setChecked(
False)
339 vbox_layout = QtWidgets.QVBoxLayout()
340 vbox_layout.addWidget(bt1)
341 vbox_layout.addWidget(iteration_label)
342 vbox_layout.addWidget(iteration_in)
343 vbox_layout.addWidget(distance_label)
344 vbox_layout.addWidget(distance_in)
345 vbox_layout.addSpacing(50)
347 box = QtWidgets.QGroupBox(
"Iterative")
348 box.setLayout(vbox_layout)
349 return box,iteration_in, distance_in