qp.structure.setup.fetch_pdb

qp.structure.setup.fetch_pdb(pdb, out)[source]

Fetches the PDB file for a given PDB code.

Parameters:
  • pdb (str) – PDB code

  • out (str) – Path to output PDB file

Raises:
  • ValueError – If the PDB ID returns a 404 error (invalid user input).

  • IOError – If there is a network or server-side error.