Support for uploading file submissions to the Clinical Genomics Analysis Platform (CGAP).
Project description
Description
This is a tool for uploading certain kinds of files to CGAP.
Initial support is for “metadata bundles”, which are Excel files (such as .xls or .xlsx files) that are accompanied by other files (such as .fastq.gz files).
About Metadata Bundles
Installation
Installing this system involves these steps:
Create, install, and activate a virtual environment.
Install poetry
Only if you are a developer, select the source repository. Others will not have a source repository to select, so should skip this step.
If you are an end user, do “pip install submit_cgap”. Otherwise, do “make build”.
Set up a ~/.cgap-keys.json credentials file.
For detailed information about these installation steps, see Installing SubmitCGAP.
Testing
To run unit tests, do:
$ make test
Additional notes on testing these scripts for release can be found in Testing SubmitCGAP.
Getting Started
Once poetry has finished installing this library into your virtual environment, you should have access to the submit-metadata-bundle command. For help about its arguments, do:
submit-metadata-bundle --help
However, it should suffice for many cases to specify the bundle file you want to upload and either a site or a CGAP beanstalk environment. For example:
submit-metadata-bundle mymetadata.xls
This command should do everything, including upload referenced files if they are in the same directory. (It will ask for confirmation.)
To invoke it for validation only, without submitting anything, do:
submit-metadata-bundle mymetadata.xls --validate_only
You can resume execution with the upload part by doing:
resume-uploads <uuid> --env <env>
or:
resume-uploads <uuid> --server <server>
You can upload individual files separately by doing:
upload-item-data <filename> --uuid <item-uuid> --env <env>
or:
upload-item-data <filename> --uuid <item-uuid> --server <server>
where the <item-uuid> is the uuid for the individual item, not the metadata bundle.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for submit_cgap-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c47a0e962d8a80840eb887e39bd654e90c003582459b4b3a420eb2cbc55cb6ba |
|
MD5 | 75ffd15a75a4d83a58c56af16fabfbb6 |
|
BLAKE2b-256 | 984cfef934d8c270c2697bd6dc4d3fe903b1bde627d828fabbe9e83037441bb7 |