Download
Select models, get the archive in one click, then download it as one zip. For more than one archive holds, the script downloads the same files one by one.
How it works
- Use Select on an entry in Browse, tick models in search results or on entry pages, or select all results of a search. The selection stays as you move between pages and searches.
- Open the download panel at the bottom of the page and choose the files:
- Original mmCIF
original_mmcif: The PDB's coordinate file, byte for byte, of each selected model that holds it: usually the Deposited models. Computed models (for example qFit or ensembles) do not hold it. - Modified coordinate files
modified_coordinates: The coordinate files of the selected Dynamic PDB models. - All available files
all_files: Every file of the selected models and their entries: coordinates, structure factors, logs, sequences and other files.
- Get the archive. The files are added up first: an archive over the size limit stops there, before any file is read, and the script gets it instead. Otherwise the zip is written; the panel shows each step, and its Details show the models, the files and their sizes, and anything left out and why.
- Download the zip. Its
manifest.tsvlists every file with its status and SHA-256.
Limits
- One archive holds at most 10 GB (10,000,000,000 bytes, before compression). For more, use the script below, or select less.
- Files over 1 GiB are linked, not copied: the manifest gives each one's address and SHA-256.
- An archive is kept for 7 days. A saved selection is kept indefinitely, so its ID gives the same files again later.
- Selections, archives and their links need no sign-in: anyone with a link can download it.
- Each client may ask for 10 archives a minute. Past that the API answers 429 with Retry-After; the script waits and asks again.
Reuse
PDB archive files and Prism's own models are dedicated to the public domain under CC0 1.0. Files deposited by others: Reuse terms not yet confirmed by the depositor. We ask that you acknowledge Dynamic PDB and cite the depositors of the entries you use.
About CC0 1.0. Related datasets and files held by other repositories: See the repository's terms. Each file’s terms are in the manifest’s license column, and the archive’s preview counts the files under each.
Download with a script
Replace <selection id> with the selection ID the download panel shows.
Any size: the Python script
It downloads the selection file by file with the archive’s rules: the same files, folders and manifest.tsv, each file checked against its SHA-256. There is no size limit, and running it again after a break finishes the rest. It needs Python 3.8 or newer and nothing else, on macOS or Linux. On Windows, run it in WSL (Windows Subsystem for Linux), or use the archive.
curl -O https://dynamicpdb.com/download/dynamic-pdb-download.py
python3 dynamic-pdb-download.py \
--selection <selection id> \
--files all_filesDownload dynamic-pdb-download.py. --files takes original_mmcif, modified_coordinates or all_files. It exits with 1 when a file Dynamic PDB holds could not be read or differs from its record; the file is listed in manifest.tsv, never replaced.
One archive with curl
# 1. Ask for the archive; it is built right away
curl -s -X POST 'https://dynamicpdb.com/api/v1/downloads' \
-H 'Content-Type: application/vnd.api+json' \
-d '{"selection_id": "<selection id>",
"file_choice": "all_files", "prepare": true}'
# 2. Ask again until data.attributes.status is ready
# (blocked means over the limit: use the script)
curl -s 'https://dynamicpdb.com/api/v1/downloads/<archive id>'
# 3. Download data.attributes.archive_url, then check it:
# shasum must print data.attributes.archive_sha256
curl -o dynamic-pdb-<selection id>-all_files.zip '<archive_url>'
shasum -a 256 dynamic-pdb-<selection id>-all_files.zipSaving a selection without the panel
Up to 10,000 model IDs. The panel saves whole searches too: every result of a search, as it was when saved.
curl -s -X POST 'https://dynamicpdb.com/api/v1/selections' \
-H 'Content-Type: application/vnd.api+json' \
-d '{"model_ids": ["<model id>", "<model id>"]}'
# data.id is the selection IDFor questions, contact prism-core@astera.org