schrodinger.ui.qt.pdb_dialog module

Contains class that is used to display “Get Pdb Dialog”.

class schrodinger.ui.qt.pdb_dialog.ExperimentalDataType

Bases: Enum

XRAY = '2Fo-Fc'
CRYOEM = 'Cryo-EM'
class schrodinger.ui.qt.pdb_dialog.ExperimentalData(pdb_id: 'str', type: 'ExperimentalDataType', file: 'str', isovalue: 'float')

Bases: object

pdb_id: str
type: ExperimentalDataType
file: str
isovalue: float
__init__(pdb_id: str, type: ExperimentalDataType, file: str, isovalue: float) None
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.

schrodinger.ui.qt.pdb_dialog.download_pdb(pdb_id: str, chain_name: str, include_biological_unit: bool, include_diffraction_em_data: bool)

Download PDB file using PDBDialog.

class schrodinger.ui.qt.pdb_dialog.Sf2MapConversionTask(*args, _param_type=<object object>, **kwargs)

Bases: SubprocessCmdTask

Generate a 2Fo-Fc map from structure factors, if possible.

Uses psp-src sf2map.py script to either generate the density directly from map coefficients present in the input file, or uses PrimeX to generate the map from the raw reflection data.

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.

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: str

A parameter of the class.

mapfileChanged

A pyqtSignal emitted by instances of the class.

mapfileReplaced

A pyqtSignal emitted by instances of the class.

makeCmd()

Convert the structure factors file to maps using sf2map.py from psp.

Parameters:
  • pdb_id – PDB ID

  • pdb_file – PDB file path

  • sf_file – SF file path (-sf.cif)

Returns:

Dict of generated map file paths to its map type

postProcess()

Retrieve 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 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.

Default = 'default'
FooterContrast = 'footer_contrast'
Panel = 'panel'
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.