Skip to content

Scripting ICGC DCC Data Submissions

brettwhitty edited this page Apr 15, 2013 · 4 revisions

The script 'dcc_data_submission/tools/auto_submit.pl' supports automating the submission and validation process.

To list projects you can access:

./auto_submit.pl --mode list-projects  --user [WEB_USER] --pass [WEB_PASSWORD]

To list directories you can access:

./auto_submit.pl --mode list-dirs --user [WEB_USER] --pass [WEB_PASSWORD]

To list project directory contents:

./auto_submit.pl --mode list-dir-contents --opts project-key=[PROJECT_KEY] --user [WEB_USER] --pass [WEB_PASSWORD]

To upload a directory containing submission files to a project directory:

./auto_submit.pl --mode upload-dir --opts project-key=[PROJECT_KEY] --opts input-dir=[INPUT_DIR] [--opts replace-all=1] --user [WEB_USER] --pass [WEB_PASSWORD]

Using the 'replace-all' option will wipe the project directory clean before uploading.

To start the validation:

./auto_submit.pl --mode validate --opts project-key=[PROJECT_KEY] --user [WEB_USER] --pass [WEB_PASSWORD]