Skip to main content

hgvs dataproviders based on UTA and SeqRepo REST Interfaces

Project description

hgvs-dataproviders-rest

Rest interface for UTA and SeqRepo, which combined make up an hgvs data provider.

The uta and seqrepo databases are used by hgvs to perform many of its sequence manipulation functions. The hgvs library includes tools to normalize, validate, and map sequence variants (among other functionalities). In order for hgvs to access info needed for such work, it uses the uta data provider to fetch transcripts and sequences.

This package includes a REST api (restapi.py) for uta that stands between hgvs and uta/seqrepo databases, along with a data provider for hgvs (restclient.py) that acts as its client.

Installing the Rest Interface Locally

Install docker.

$ docker pull biocommons/uta-rest:uta-rest
$ docker volume create --name=uta-rest
$ docker run -p 8000:8000 biocommons/uta-rest:uta-rest

Or without docker:

$ make devready
$ source venv/bin/activate
$ uvicorn restapi:app

Using with hgvs

Simply pass the result of utarest's connect() function as an argument into any hgvs tool, e.g. Assembly Mapper.

>>> import hgvs_dataproviders_rest
>>> import hgvs.assemblymapper
>>> hdp = hgvs_dataproviders_rest.connect()

>>> am = hgvs.assemblymapper.AssemblyMapper(hdp,
...     assembly_name='GRCh37', alt_aln_method='splign',
...     replace_reference=True)

Instead of calling connect() from hgvs.dataproviders.uta, you are using .hgvs_dataproviders_rest. Both implement the hgvs data providers interface.

Using with hgvs (2.0+)

A second version of hgvs is planned, which allows for selecting a data provider out of several supported options: uta, hgvs_dataproviders_rest, cdot, and possibly a future Ensembl interface implementation. See utaclients for more info on each data provider.

Developer Installation

$ make devready
$ source venv/bin/activate
$ uvicorn restapi:app --reload

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

hgvs_dataproviders_rest-0.0.2.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

hgvs_dataproviders_rest-0.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file hgvs_dataproviders_rest-0.0.2.tar.gz.

File metadata

File hashes

Hashes for hgvs_dataproviders_rest-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1bae81c86ded86991726786e69e323ddb179c12d28ebd2191a500f752f1402e0
MD5 4dcb65583d84934ce56317dc2827088f
BLAKE2b-256 e919a8192c1c5cd1a16610e366062a881a9ac2fcf6f0d489153a22bbeae7eae6

See more details on using hashes here.

File details

Details for the file hgvs_dataproviders_rest-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for hgvs_dataproviders_rest-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6d50265549e7af6f7134f0f78d164ef85074d963bcd8204b2d9f84464adea473
MD5 76ad8d8001624e511fa48073af704b92
BLAKE2b-256 a22462c048d1dfbb3463496db9834ee4c2437dc1bbde39a02185cd00f20505a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page