Skip to main content

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

Release files for hgvs-dataproviders-rest 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hgvs-dataproviders-rest 0.0.2
File Size Uploaded
hgvs_dataproviders_rest-0.0.2.tar.gz 32.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hgvs-dataproviders-rest 0.0.2
File Interpreter ABI Platform
hgvs_dataproviders_rest-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 40.9 kB

Release files / hgvs_dataproviders_rest-0.0.2.tar.gz

Download URL hgvs_dataproviders_rest-0.0.2.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
1bae81c86ded86991726786e69e323ddb179c12d28ebd2191a500f752f1402e0
BLAKE2b-256 checksum
How to use checksums
e919a8192c1c5cd1a16610e366062a881a9ac2fcf6f0d489153a22bbeae7eae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / hgvs_dataproviders_rest-0.0.2-py3-none-any.whl

Download URL hgvs_dataproviders_rest-0.0.2-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d50265549e7af6f7134f0f78d164ef85074d963bcd8204b2d9f84464adea473
BLAKE2b-256 checksum
How to use checksums
a22462c048d1dfbb3463496db9834ee4c2437dc1bbde39a02185cd00f20505a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page