Skip to main content

Script for depositing the data into EMPIAR using EMPIAR API

Project description

Command line tool for depositing data into Electron Microscopy Public Image Archive.

How to use

Please follow these steps:

  1. Create a JSON file according to the structure provided in the example.

  2. Download and install ascp tool.

  3. Set the environmental variable for Aspera password to the one that EMPIAR team has provided you with:

  • On Linux and Mac OS X run

export ASPERA_SCP_PASS=<empiar_aspera_password>
  • On Windows run

set ASPERA_SCP_PASS=<empiar_aspera_password>
  1. Run the script as:

empiar_depositor [-h] [-e ENTRY_THUMBNAIL] [-r RESUME RESUME] [-i] [-v] EMPIAR_TOKEN JSON_INPUT ASCP_PATH DATA_PATH

Positional arguments:

EMPIAR_TOKEN

EMPIAR API token. Contact EMPIAR team to obtain it.

JSON_INPUT

The location of the JSON with EMPIAR deposition information.

ASCP

The location of the ascp executable.

DATA

The location of the data that you would like to upload to EMPIAR. It should contain directories that correspond to the image set directories specified in the JSON file.

Optional arguments:

-h, --help

Show help message and exit

-e ENTRY_THUMBNAIL, --entry-thumbnail ENTRY_THUMBNAIL

Thumbnail image that will represent your deposition on EMPIAR pages. Minimum size is 400 x 400, preferred format is png. If none is provided, then the image from the related EMDB entry will be used.

-r ENTRY_ID ENTRY_DIR, --resume ENTRY_ID ENTRY_DIR

Resume Aspera upload. The entry has to be successfully created as specifying EMPIAR entry ID and entry directory is required. Aspera transfer will continue from where it stopped.

-i, --ignore-certificate

Activate this flag to skip the verification of SSL certificate.

-v, --version

Show program’s version number and exit

Examples:

empiar_depositor -t 0123456789 -j ~/Downloads/empiar_deposition_1.json -a ~/Applications/Aspera\ Connect.app/Contents/Resources/ascp -e ~/Downloads/dep_thumb.png -d ~/Downloads/micrographs
empiar_depositor -t 0123456789 -j ~/Downloads/empiar_deposition_1.json -a ~/Applications/Aspera\ Connect.app/Contents/Resources/ascp -r 10 ABC123 -d ~/Downloads/micrographs``

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

empiar_depositor-1.4b1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

empiar_depositor-1.4b1-py2-none-any.whl (12.5 kB view details)

Uploaded Python 2

File details

Details for the file empiar_depositor-1.4b1.tar.gz.

File metadata

File hashes

Hashes for empiar_depositor-1.4b1.tar.gz
Algorithm Hash digest
SHA256 c34f27434e61b718fa7f9e8f2fa9da1527481213a5c5da0192ce57b3a01a84d8
MD5 3530177678f6caaa35a1ba8e0d0747be
BLAKE2b-256 70e0d2c797511104831add40b509de77833a790dfb099e50b542ca8abcb87f61

See more details on using hashes here.

File details

Details for the file empiar_depositor-1.4b1-py2-none-any.whl.

File metadata

File hashes

Hashes for empiar_depositor-1.4b1-py2-none-any.whl
Algorithm Hash digest
SHA256 b3956dd0147247050c0632626033331667497492ac1a749b7c075c514bf7b5ed
MD5 dfa9fe26d7d510e5149381b70e404b89
BLAKE2b-256 6e5a7405436d2e9e9093cc45988f5918c304df46d8a506fe5bb92a804fd43ff2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page