VICC normalization routine for variants
Project description
Variant Normalization
Services and guidelines for normalizing variant terms
Backend Services
Variant Normalization relies on some local data caches which you will need to set up. It uses pipenv to manage its environment, which you will also need to install.
Installation
From the variant directory of the repository:
pipenv sync
curl ftp://ftp.ebi.ac.uk/pub/databases/genenames/new/tsv/non_alt_loci_set.txt > data/gene_symbols.txt
pip install seqrepo
mkdir -p data/seqrepo
seqrepo -r data/seqrepo pull -i 2020-11-27
chmod -R u+w data/seqrepo
cd data/seqrepo
seqrepo_date_dir=$(ls -d */)
mv $seqrepo_date_dir latest
Setting up Gene Normalizer
Variant Normalization normalize
endpoint relies on data from Gene Normalization. To install:
pip install gene-normalizer
To setup, follow the instructions from the Gene Normalization README.
You must have the Gene Normalizer DynamoDB running for the variant normalize
endpoint to work.
Init coding style tests
Code style is managed by flake8 and checked prior to commit.
We use pre-commit to run conformance tests.
This ensures:
- Check code style
- Check for added large files
- Detect AWS Credentials
- Detect Private Key
Before first commit run:
pre-commit install
Testing
From the root directory of the repository:
pytest tests/
Starting the Variant Normalization Service
From the root directory of the repository:
uvicorn variant.main:app --reload
Next, view the OpenAPI docs on your local machine: http://127.0.0.1:8000/variant
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
File details
Details for the file variant-normalizer-0.1.5.tar.gz
.
File metadata
- Download URL: variant-normalizer-0.1.5.tar.gz
- Upload date:
- Size: 35.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c4b315fdaf742e899f2e9da675e485107edc6b00760027e39f448a363dbba1e |
|
MD5 | f4deca0994446cef15c8320b95180390 |
|
BLAKE2b-256 | 3ed3a8ba66bdb0f235649d29dbc6ab547c3579abe8104689e96985c136dc61ec |
File details
Details for the file variant_normalizer-0.1.5-py3-none-any.whl
.
File metadata
- Download URL: variant_normalizer-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae61dee0862a38ae923f2f9eb1008fe0e10497e35ae59ace7d8a5fa6c9ee5fa4 |
|
MD5 | b66f74162d2ae758dbbd389c2f3283eb |
|
BLAKE2b-256 | 6ab8bd9c2e8c1fbfa30a54575bca52a0d80cbb2ef4420aa92323e44be685d768 |