schrodinger.test.stu.get_pdbs module

schrodinger.test.stu.get_pdbs.write_pdb_cache(pdb_ids)
schrodinger.test.stu.get_pdbs.get_pdb_list()

Get all PDB IDs either from a serialized file or the PDB website. :return: list of PDB ids

schrodinger.test.stu.get_pdbs.get_pdb(pdb_id)

Download a PDB if it is not already in the local repository

Returns

Filename of PDB structure file.

schrodinger.test.stu.get_pdbs.sample_pdbs(fraction=1, number=None, min_value=0, max_value=100, allow_download_failure=True)

Iterate over a fraction of all available structures in the PDB. For each one download the structure and yield the filename of the structure file.

Parameters

fraction – Fraction of all PDBs that should be downloaded.

@yield: filenames of PDB structure files.

schrodinger.test.stu.get_pdbs.require_local_pdb()

Ensure that a local mirror of the PDB is available and active for use with getpdb.

This limits hitting the pdb server.