Amphibious new data transformer to prepare various sources for CGP DSS Data Loader
Project description
newt-transformer
Metadata transformer to convert from gen3 to something readable by cgp-dss-data-loader
Common Setup
-
Clone the repo:
git clone https://github.com/jessebrennan/newt-transformer.git
-
Go to the root directory of the cloned project:
cd newt-transformer
-
Run:
pip install .
Setup for Development
-
Clone the repo:
git clone https://github.com/jessebrennan/newt-transformer.git
-
Go to the root directory of the cloned project:
cd newt-transformer
-
Run (ideally in a new virtual environment):
make develop
Running Tests
-
make sure you followed Setup for Development
-
Run:
make test
Transforming data from sheepdog-exporter
-
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 we need to transform the data. From the root of the project run:
newt new /path/to/topmed-public.json --output-json transformed-topmed-public.json
This will generate a transformed output file called
transformed-topmed-public.json
.The
new
argument specifies that we want the most recent version of the transformer output format. It can be replaced with agen3
argument, but this older format will soon be deprecated. -
Likely you want to upload this data to the DSS. Instructions for this can be found at the DSS data loader repo.
Transformer Architecture
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
File details
Details for the file newt-transformer-0.1.4.tar.gz
.
File metadata
- Download URL: newt-transformer-0.1.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 564f8050ff66be46b1f45e0a4357aa2880cf4447b7ef561ae96ca828eb001ebe |
|
MD5 | e59eefc8d5f0f77539556f38889ea292 |
|
BLAKE2b-256 | a7266773db53dc2aea5fc20f6e8087e71d75a8d1eab7f002b62c787aad1d45d6 |