download.download
download.download(code, format='cif', cache=CACHE_DIR, database='rcsb')
Downloads a structure from the specified protein data bank in the given format.
Parameters
code |
str |
The code of the file to fetch. |
required |
format |
str |
The format of the file. Defaults to “cif”. Possible values are [‘cif’, ‘pdb’, ‘mmcif’, ‘pdbx’, ‘bcif’]. |
'cif' |
cache |
str |
The cache directory to store the fetched file. Defaults to ~/MolecularNodesCache . |
CACHE_DIR |
database |
str |
The database to fetch the file from. Defaults to ‘rcsb’. |
'rcsb' |
Returns
|
file |
The fetched file as a file-like object. |
Raises
|
ValueError |
If the specified format is not supported. |