Package schrodinger :: Package ui :: Module chooseligand
[hide private]
[frames] | no frames]

Module chooseligand

Classes [hide private]
  ChooseLigandModel
  ChooseLigandDialog
  TestApp
Class for testing this module.
Functions [hide private]
 
choose_ligand(parent, complex_st, text=None)
Given a Structure object and a parent window, ask the user to select a ligand from the complex (if more than one is available).
 
test()
Variables [hide private]
  maestro = None
hash(x)
  __package__ = 'schrodinger.ui'
Function Details [hide private]

choose_ligand(parent, complex_st, text=None)

 

Given a Structure object and a parent window, ask the user to select a ligand from the complex (if more than one is available).

If no ligands are present, ValueError is raised.

If only one ligand was present, the Ligand instance for it is returned.

If the user selected a ligand, the Ligand instance for that ligand is returned (See schrodinger.structutils.analyze.Ligand)

If the user cancelled the dialog, None is returned.

Parameters:
  • parent (QWidget) - Parent for the dialog window.
  • complex_st (structure.Structure object) - Receptor/ligand complex structure.
  • text (str) - Label to show at the top of the ligands table.