Package schrodinger :: Package application :: Package lid :: Module ligand_interaction_diagram
[hide private]
[frames] | no frames]

Module ligand_interaction_diagram

Copyright Schrodinger, LLC. All rights reserved.

Classes [hide private]
  LigandInteractionDiagram
  UserChooseNothingException
Functions [hide private]
 
printTransform(t)
 
is_watermap_type(st)
 
convert_ct_to_2d(ligand_st, output_file_name_prefix, parameters={})
 
generate_twod_and_paths_data(ligand_st, output_file_name_prefix, parameters)
 
render_2d_image(ligand_st, output_file_name_prefix, twod_and_paths, parameters={}, return_rmsd_times_data=True, progress_callback=None, sketcher=None)
 
find_spot_for_residue(res_placements, res_uid, min_distance_for_line, new_all_uids_to_check, all_res_lines_to_check, pic_center, residue_radius, final_image_dim, all_ligand_bonds, all_ligand_atom_placements, ligand_rings, parameters, all_hbonds, all_hbonds_wat_prot, all_overlapped_res_found_spot, all_atoms_overlapped_within_watermap_ids, number_vectors=10, move_factor=0.75)
 
spread_residues_if_overlapped(res_placements, res_uid1, res_uid2, residue_radius, final_image_dim, all_ligand_bonds, all_ligand_atom_placements, ligand_rings, parameters)
 
move_residue_away_from_hbond(res_placements, res_uid, from_res_uid, ligpt, rr, final_image_dim, all_ligand_bonds, all_ligand_atom_placements, ligand_rings, parameters, all_hbonds, all_pipi_stacking, all_picats, max_loop=8, all_uids_avoided=set([]))
 
initialize_res_placements_to_screen(res_placements, ct_scale, pic_center, pic_info, sketcher_best_2D=False)
 
check_hbond_distance_and_move_away(res_placements, from_res_uid, ligpt, min_distance_for_line, atom_label_bbx)
 
compute_all_hbond_res_overlaps(parameters, all_hbond_res_overlaps, res_placements, residue_radius, all_hbonds, all_hbonds_wat_prot, all_pipi_stacking, all_picats, no)
 
compute_residue_overlaps(all_uids_to_check, res_placements, residue_diameter)
 
compute_residue_overlap(res_uid1, res_placements, residue_diameter)
 
move_residues(final_image_dim, res_placements, pic_info, pic_center, ct_scale, residue_radius, all_hbonds, all_hbonds_wat_prot, all_ligand_atom_placements, all_ligand_bonds, all_pipi_stacking, all_picats, ligand_rings, move=False, parameters={}, all_atoms_not_overlapped_but_over_atom=None, all_atoms_overlapped_within_watermap_ids=None, sketcher_best_2D=False)
 
fill_parameters(parameters)
 
determine_image_size_and_ligand_position(dim_arg, final_image_dim, res_placements_2d_bbx, residue_radius)
 
generate_lid_picture_draw(lidobj, painter, pic_info, parameters, final_image_dim, ct3d_atoms, best_ct, pic_2d_center, all_hbonds, all_hbonds_wat_prot, all_pipi_stacking, all_picats, ct_scale, residue_radius, res_placements, complex_st, lig_H_to_non, lig_atom_elements, ligand_rings, atom_to_solv_exposure, all_residues, all_cofactors_uids, all_waters, all_metals, all_ligand_bonds, all_atoms_within_watermap=[], all_atoms_included_within_watermap=None, all_atoms_selected_within_watermap=None, all_atoms_overlapped_within_watermap=None, hydration_sites_to_color=None, move=True, rotation=None, sketcher=None, sketcher_all_res=None, sketcher_all_metals=None, sketcher_all_waters=None, workspace_vm=[])
 
generate_2D_image_from_protein_ligand(lidobj, prot_st, ligand_st, prefix='out', parameters={}, generate_3d_img=False, render_data=None, complex_info=None, image_size=[800.0, 600.0], outdir='', progress_callback=None, all_atoms_included_within_watermap=None, all_atoms_selected_within_watermap=None, all_atoms_overlapped_within_watermap=None, hydration_sites_to_color=None, workspace_vm=None, sketcher=None)
 
LigandInteractionDiagram_from_split_file(file_name)
 
LigandInteractionDiagram_from_complex(complex_st, app=None, chooseLigandCallback=None)
 
LigandInteractionDiagram_from_complex_file(file_name, app=None, chooseLigandCallback=None)
 
LigandInteractionDiagram_from_either(file_name, app=None, chooseLigandCallback=None)
 
LigandInteractionDiagram_from_either_ct(cts, app=None, chooseLigandCallback=None)
 
_main(args=None)
Variables [hide private]
  __doc__ = ...
  _version = '$Revision: 1.0 $'
  usage = '\nligand_interaction_diagram.py\n$Revision: 1.0 $\n\n...
  _canvas_license = <schrodinger.infra.canvas.ChmLicenseShared; ...
  handler = logging.StreamHandler(sys.stdout)
  epsilon = 1e-15
  epsilons = 1e-05
  red = [255, 0, 0, 255]
  keep_center = False
hash(x)
  relative_to_ligand_scale = False
hash(x)
  move_and_scale = True
hash(x)
  pipi_c = [[QtGui.QColor(0, 140, 70, 255), QtGui.QColor(128, 19...
  pipi_c_bw = convert_color_list_to_bw(pipi_c)
  picat_c = [[QtGui.QColor(224, 143, 26, 255), QtGui.QColor(234,...
  picat_c_bw = convert_color_list_to_bw(pipi_c)
  pipi_colors = [pipi_c, pipi_c_bw]
  picat_colors = [picat_c, picat_c_bw]
  need_next_arg = {'-background': 'white|black|trans', '-docsize...
  no_next_arg = set(['-1letter', '-bw', '-legacy', '-pwhbonds', ...
  __package__ = 'schrodinger.application.lid'
Variables Details [hide private]

__doc__

Value:
"""

Copyright Schrodinger, LLC. All rights reserved.
"""

usage

Value:
'''
ligand_interaction_diagram.py
$Revision: 1.0 $

Ligand Interactive Diagram command line

Usage: $SCHRODINGER/run ligand_interaction_diagram.py <maefile> <outfi\
le> [<options>]
...

_canvas_license

Value:
<schrodinger.infra.canvas.ChmLicenseShared; proxy of <Swig Object of t\
ype 'ChmLicenseShared *' at 0x25fa03f0> >

pipi_c

Value:
[[QtGui.QColor(0, 140, 70, 255), QtGui.QColor(128, 198, 163, 0), QtGui\
.QColor(255, 255, 255, 0)], [QtGui.QColor(0, 230, 90, 255), QtGui.QCol\
or(128, 250, 173, 0), QtGui.QColor(255, 255, 255, 0)]]

picat_c

Value:
[[QtGui.QColor(224, 143, 26, 255), QtGui.QColor(234, 182, 107, 0), QtG\
ui.QColor(255, 255, 255, 0)], [QtGui.QColor(224, 143, 26, 255), QtGui.\
QColor(234, 182, 107, 0), QtGui.QColor(255, 255, 255, 0)]]

need_next_arg

Value:
{'-background': 'white|black|trans',
 '-docsize': '<w>x<h>x<res>',
 '-hbonds': 'on|off',
 '-metals': 'on|off',
 '-picat': 'on|off',
 '-pipi': 'on|off',
 '-pixelsize': '<w>x<h>',
 '-solvexp': 'on|off',
...

no_next_arg

Value:
set(['-1letter', '-bw', '-legacy', '-pwhbonds', '-rgb', '-waters'])