schrodinger.ui.qt.pdb_dialog module¶
Contains class that is used to display “Get Pdb Dialog”.
- schrodinger.ui.qt.pdb_dialog.validate_pdb_id(pdb_id)¶
Return True if given string is a valid PDB ID: 4 characters beginning with a digit, and characters 2-4 should be alphanumeric.
- schrodinger.ui.qt.pdb_dialog.extract_chain(filename, chain_name)¶
Extract the specific chain from the given protein structure file. Raises KeyError if chain is not present.
- Parameters:
filename (str) – Name of the protein file.
chain_name (str) – Chain to be extracted.
:return : Structure of the extracted chain :rtype: schrodinger.structure.Structure
- schrodinger.ui.qt.pdb_dialog.create_biounits(filename)¶
Generate biological assemblies, and write a single Maestro file with multiple structures. Maestro is used instead of PDB mainly because PDB format doesn’t support custom title properties. Assembly number will be added to the title of each output structure.
- class schrodinger.ui.qt.pdb_dialog.Sf2MapConversionTask(*args, _param_type=<object object>, **kwargs)¶
Bases:
SubprocessCmdTask
Task to convert the structure factors file to maps using
sf2map.py
frompsp
. Maps will be generated for the given list ofmap_coefficients
and the converted maps are saved in the current working directory.- class Input(*args, _param_type=<object object>, **kwargs)¶
Bases:
CompoundParam
- pdb_id: str¶
A parameter of the class.
- pdb_file: str¶
A parameter of the class.
- sf_file: str¶
A parameter of the class.
- map_coefficients: list[str]¶
A parameter of the class.
- map_coefficientsChanged¶
A
pyqtSignal
emitted by instances of the class.
- map_coefficientsReplaced¶
A
pyqtSignal
emitted by instances of the class.
- pdb_fileChanged¶
A
pyqtSignal
emitted by instances of the class.
- pdb_fileReplaced¶
A
pyqtSignal
emitted by instances of the class.
- pdb_idChanged¶
A
pyqtSignal
emitted by instances of the class.
- pdb_idReplaced¶
A
pyqtSignal
emitted by instances of the class.
- sf_fileChanged¶
A
pyqtSignal
emitted by instances of the class.
- sf_fileReplaced¶
A
pyqtSignal
emitted by instances of the class.
- class Output(*args, _param_type=<object object>, **kwargs)¶
Bases:
CompoundParam
- mapfile_to_type: dict[str, str]¶
A parameter of the class.
- mapfile_to_typeChanged¶
A
pyqtSignal
emitted by instances of the class.
- mapfile_to_typeReplaced¶
A
pyqtSignal
emitted by instances of the class.
- makeCmd()¶
Convert the structure factors file to maps using
sf2map.py
frompsp
.- Parameters:
pdb_id – PDB ID
pdb_file – PDB file path
sf_file – SF file path (-sf.cif)
map_coefficients – List of map coefficients to convert
- Returns:
Dict of generated map file paths to its map type
- postProcess()¶
Retreive the map files generated by sf2map.py
- calling_contextChanged¶
A
pyqtSignal
emitted by instances of the class.
- calling_contextReplaced¶
A
pyqtSignal
emitted by instances of the class.
- failure_infoChanged¶
A
pyqtSignal
emitted by instances of the class.
- failure_infoReplaced¶
A
pyqtSignal
emitted by instances of the class.
- input: CompoundParam¶
A parameter of the class.
- inputChanged¶
A
pyqtSignal
emitted by instances of the class.
- inputReplaced¶
A
pyqtSignal
emitted by instances of the class.
- max_progressChanged¶
A
pyqtSignal
emitted by instances of the class.
- max_progressReplaced¶
A
pyqtSignal
emitted by instances of the class.
- nameChanged¶
A
pyqtSignal
emitted by instances of the class.
- nameReplaced¶
A
pyqtSignal
emitted by instances of the class.
- output: CompoundParam¶
A parameter of the class.
- outputChanged¶
A
pyqtSignal
emitted by instances of the class.
- outputReplaced¶
A
pyqtSignal
emitted by instances of the class.
- progressChanged¶
A
pyqtSignal
emitted by instances of the class.
- progressReplaced¶
A
pyqtSignal
emitted by instances of the class.
- progress_stringChanged¶
A
pyqtSignal
emitted by instances of the class.
- progress_stringReplaced¶
A
pyqtSignal
emitted by instances of the class.
- statusChanged¶
A
pyqtSignal
emitted by instances of the class.
- statusReplaced¶
A
pyqtSignal
emitted by instances of the class.
- class schrodinger.ui.qt.pdb_dialog.PDBDialog(import_pdbs=False)¶
Bases:
ContainerStyleMixin
,MessageBoxMixin
,QDialog
A QDialog to download Pdb file from pdb_id given by user.
- __init__(import_pdbs=False)¶
- setupFetchingOptions()¶
Set up fetching options menu.
- onBiologicalUnitToggled(checked)¶
Respond to toggling of ‘Biological unit’ checkbox.
- Parameters:
checked (bool) – whether ‘Biological unit’ checkbox is checked or not
- onRetrieveFromLocalToggled(checked)¶
Respond to toggling of ‘Local Installation Only’ menu item.
- Parameters:
checked (bool) – whether ‘Local Installation Only’ menu item is checked or not
- getHelp()¶
Show help documentation of functionality of dialog.
- updateDownloadButton()¶
Disable the Download button if there is no PDB ID, else enable it.
- with_disabled_panel(self, *args, **kwargs)¶
- show_status()¶
Decorator to show spinner and a given status label while generating maps.
- execRemoteQueryDialog() bool ¶
Launches the relevant remote query dialog if applicable.
- Returns:
if the remote dialog is accepted
- downloadFile()¶
Download the pdb file(s) of given PDB ID(s) by user. If diffraction data is requested tries to download diffraction data files and EM maps. If EM maps are found their surfaces are added to corresponding PDB entries in the Project Table.
- cancel()¶
Reject the Pdb dialog.
- exec()¶
Shows the dialog as a modal dialog, blocking until the user closes it.
- schrodinger.ui.qt.pdb_dialog.getPdbDialog()¶
Called by maestro to bring up the dialog box. Returns string of downloaded filenames, separated by semi-colon. On cancel, returns empty string.