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

Metadata

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 Provenance Actions
hgvs_dataproviders_rest-0.0.2.tar.gz 32.3 kB Without provenance Details for hgvs_dataproviders_rest-0.0.2.tar.gz

Built distribution (wheel)

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

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

Security for hgvs-dataproviders-rest 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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