poli.core.util.proteins.pdb_parsing.parse_pdb_as_structure#
- poli.core.util.proteins.pdb_parsing.parse_pdb_as_structure(path_to_pdb: Path, structure_name: str = 'pdb', verbose: bool = False) Bio.PDB.Structure.Structure #
Parses the PDB file at the given path and returns the structure.
The parsing is done quietly by default, but you can set verbose=True to get some output.
- Parameters
path_to_pdb (Path) – The path to the PDB file.
structure_name (str, optional) – The name of the structure (which is passed to the get_structure method of the PDBParser object). Defaults to “pdb”.
verbose (bool, optional) – If True, print the progress of the parsing. Defaults to False.
- Returns
The parsed structure.
- Return type
PDB.Structure.Structure