pdb2sql.utils.fetch

pdb2sql.utils.fetch(pdbid, outdir='.')[source]

Download PDB file from PDB website https://www.rcsb.org/.

Parameters
  • pdbid (str) – PDB ID

  • outdir (str, optional) – Output path. Defaults to ‘.’.

Raises
  • ValueError – PDB ID is not valid

  • ValueError – PDB ID is valid but does not exist on PDB website

Examples

>>> from pdb2sql import fetch
>>> fetch('1cbh')