cgp-dss-data-loader
Simple data loader for CGP HCA Data Store
Common Setup
-
(optional) We recommend using a Python 3 virtual environment.
-
Run:
pip3 install cgp-dss-data-loader
Setup for Development
-
Clone the repo:
git clone https://github.com/DataBiosphere/cgp-dss-data-loader.git -
Go to the root directory of the cloned project:
cd cgp-dss-data-loader -
Make sure you are on the branch
develop. -
Run (ideally in a new virtual environment):
make develop
Cloud Credentials Setup
Because this program uses Amazon Web Services and Google Cloud Platform, you will need to set up credentials for both of these before you can run the program.
AWS credentials
-
If you haven't already you will need to make an IAM user and create a new access key. Instructions are here.
-
Next you will need to store your credentials so that Boto can access them. Instructions are here.
GCP credentials
- Follow the steps here to set up your Google Credentials.
Running Tests
Run:
make test
Getting Data from Gen3 and Loading it
-
The first step is to extract the Gen3 data you want using the sheepdog exporter. The TopMed public data extracted from sheepdog is available on the release page under Assets. Assuming you use this data, you will now have a file called
topmed-public.json -
Make sure you are running the virtual environment you set up in the Setup instructions.
-
Now you will need to transform the data into the 'standard' loader format. Do this using the newt-transformer. You can follow the common setup, then the section for transforming data from sheepdog.
-
Now that we have our new transformed output we can run it with the loader.
If you used the standard transformer use the command:
dssload --no-dry-run --dss-endpoint MY_DSS_ENDPOINT --staging-bucket NAME_OF_MY_S3_BUCKET transformed-topmed-public.json -
You did it!
Metadata
Release files for cgp-dss-data-loader 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cgp-dss-data-loader-1.1.0.tar.gz | 16.1 kB | Without provenance | Details for cgp-dss-data-loader-1.1.0.tar.gz |
Release files / cgp-dss-data-loader-1.1.0.tar.gz
| Download URL | cgp-dss-data-loader-1.1.0.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d67433cd93a1bb9336cf7505e9ad8a68ec111994d9ae5388b7bf764d0201a275
|
|
BLAKE2b-256 checksum How to use checksums |
99afc5d322e3f6ff620ab5f8e4de6423e6ff64d9453c87c934b7e8545e4c1c3e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
|
Security for cgp-dss-data-loader 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.