schrodinger.application.glide.poseviewconvert module

Functions for creating or converting pose viewer files.

The module can convert a ‘pose viewer’ type file into a series of complexes, and convert complexes into ligand-only, receptor-only, or pose viewer files.

The script is the preferred command-line interface to this module.

Copyright Schrodinger, LLC. All rights reserved.

schrodinger.application.glide.poseviewconvert.is_pv_file(file_name, max_ligand_atoms=300, test_all=True, test_recep_atom_count=True, test_ligand_atom_count=True, test_recep_gscore=True, test_ligand_gscore=True)

Returns a True if the file appears to be a pose view format file. The tests are simple, and may not be conclusive. It is assumed that the trivial test for a ‘pv.mae’ extension has already been performed.

Specific tests can be skipped by setting the test_recep_atom_count, test_recep_gscore, test_ligand_atom_count, and test_ligand_gscore booleans.

  • max_ligand_atoms (int) – The maximum size in atoms of a putative ligand, and minimum size of the receptor. The default is the package constant schrodinger.application.glide.MAX_LIGAND_ATOMS.

  • test_all (bool) – Perform all tests, regardless of other test_* booleans. Default = True.

  • test_recep_atom_count (bool) – Receptor must have more than max_ligand_atoms. Default = True.

  • test_ligand_atom_count (bool) – Ligand must have less than or equal to max_ligand_atoms. Default = True.

  • test_recep_gscore (bool) – Receptor must not have ‘r_i_glide_gscore’ property. Default = True.

  • test_ligand_gscore (bool) – Ligand must have ‘r_i_glide_gscore’ property. Default = True.

class schrodinger.application.glide.poseviewconvert.Complex(st, ligand_asl=None, ligand_title_source=None, ligand_properties=None)

Bases: object

A helper class to split a receptor-ligand complex structure into ligand, and receptor structure components, and write the structure components to new files.

API Examples:

# Write a pv file
comp = Complex(st)

# Write a ligand file, transfer all the complex's properties
comp = Complex(
    ligand_properties =

The receptor will have the same properties as the input complex. By default, the ligand takes the title of the complex but has no other properties. The ligand title can be selected from one of the complex’s properties with ligand_title_source, and a list of properties to transfer to the ligand can be specified with ligand_properties.

  • complex (structure.Structure) – The original receptor-ligand complex.

  • receptor (structure.Structure) – The receptor-only (non-ligand).

  • ligand (structure.Structure) – The ligand-only structure.Structure.

  • ligand_indexes (list) – List of atom numbers for the ligand in the complex, the match to the ASL evaluation.

  • ligand_title_source (string) – A single m2io dataname of an entry level property in the complex structure to use as the title for the ligand. Default is ‘s_m_title’.

  • ligand_properties (list) – A list of m2io datanames of entry level properties to copy from the complex to the ligand structure.


RuntimeError – If the structure can’t be split.

__init__(st, ligand_asl=None, ligand_title_source=None, ligand_properties=None)
  • st (structure.Structure) – Structure instance of the receptor-ligand complex.

  • ligand_asl (str) – Optional Atom Selection Language expression for the ligand molecule, Default is None, which will select the last molecule in the complex (mol.n #).

  • ligand_title_source (str) – An m2io entry data name of the complex property to use as the ligand’s title. Default is ‘s_m_title’.

  • ligand_properties (list of str) – List of m2io entry level data names in the complex to be transfered to the ligand entry.


Writes receptor and ligand to disk, in pv file format.


Writes the ligand structure to the passed filename, clobbering as needed.


Appends the ligand structure to the passed filename.


Writes the receptor structure to the passed filename, clobbering as needed.


Appends the receptor structure to the passed filename.