poli.core.util.proteins.pdb_parsing.parse_pdb_as_residues

poli.core.util.proteins.pdb_parsing.parse_pdb_as_residues#

poli.core.util.proteins.pdb_parsing.parse_pdb_as_residues(path_to_pdb: Path, structure_name: str = 'pdb', verbose: bool = False) List[Bio.PDB.Residue.Residue]#

Parse a PDB file and return a list of Residue objects.

Parameters
  • path_to_pdb (Path) – The path to the PDB file.

  • structure_name (str, optional) – The name of the structure. Defaults to “pdb”.

  • verbose (bool, optional) – Whether to print verbose output. Defaults to False.

Returns

residues – A list of Residue objects representing the parsed PDB file.

Return type

List[Residue]