schrodinger.test.stu.get_pdbs module¶
- schrodinger.test.stu.get_pdbs.get_pdb_list()[source]¶
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)[source]¶
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)[source]¶
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.