A Python client for the Clinical Variant Ark
Project description
pyark
pyark is a python client to the Clinical Variant Ark (CVA) REST API https://github.com/genomicsengland/clinical_variant_ark. pyark primary aim is to facilitate access to CVA knowledge base hiding the complexity using the REST API. Also by integrating with major Python data analysis libraries it aims at enabling an analytical framework on CVA.
Getting Started
Prerequisites
pyark works with python 2.7 up to python 3.6.
Installing
Install with pip:
pip install clinical-variant-ark
You will need a CVA server up and running and you will need credentials with the right authorisation permissions.
Initialise the client:
from pyark.cva_client import CvaClient
cva = CvaClient(url_base="https://your.cva", user="you", password="your_secret")
cases_client = cva.cases()
pedigrees_client = cva.pedigrees()
entities_client = cva.entities()
variants_client = cva.variants()
report_events_client = cva.report_events()
transactions_client = cva.transactions()
Query CVA's knowledge base:
cases_client.count()
Check the version of the client you are using:
import pyark
print("pyark version {}".format(pyark.VERSION))
See the documentation for further usage at https://genomicsengland.github.io/pyark/.
Running the tests
Set the following environment variables:
export CVA_URL_BASE="https://your.cva"
export CVA_USER="you"
export CVA_PASSWORD="your_secret"
Then run unit tests:
python -m unittest discover
These tests rely on a working CVA server with some data in it.
Versioning
We use semantic versioning. The major and minor versions are aligned with the CVA backend versioning.
Authors
- Pablo Riesgo Ferreiro priesgo
- Kevin Savage kevinpetersavage
- William Bellamy squinker
See also the list of contributors who participated in this project.
License
This project is licensed under the Apache v2.0 license - see the LICENSE.md file for details
Acknowledgments
- Genomics England bioinformatics team as an infinite source of requirements
- Katherine Smith and Augusto Rendon for spending their time playing with pyark!
- Antonio Rueda Martin for listening to us
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
Hashes for clinical-variant-ark-4.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84bff6cadac11e4664fe02eaef6a5848c0d805093f8cc548639487083abfef0c |
|
MD5 | 919643d3cbb745ad87cfd1df194f2970 |
|
BLAKE2b-256 | 927d8383c2286c891bdf206cf82df6a0c2d62e68cc00d765bca45cf4062c5525 |