Skip to main content

HGVS variant description extractor

Project description

# HGVS variant description extractor

Unambiguous sequence variant descriptions are important in reporting the outcome of clinical diagnostic DNA tests. The standard nomenclature of the Human Genome Variation Society (HGVS) describes the observed variant sequence relative to a given reference sequence. We propose an efficient algorithm for the extraction of HGVS descriptions from two sequences with three main requirements in mind: minimizing the length of the resulting descriptions, minimizing the computation time, and keeping the unambiguous descriptions biologically meaningful.

This algorithm is able to compute the HGVS descriptions of complete chromosomes or other large DNA strings in a reasonable amount of computation time and its resulting descriptions are relatively small. Additional applications include updating of gene variant database contents and reference sequence liftovers.

>>> from extractor import describe_dna
>>> print describe_dna('TAACAATGGAAC', 'TAAACAATTGAA')

## Implementation

The core algorithm is implemented in C++ with a Python wrapper providing a developer friendly interface.

## Installation

### Python package

You need [SWIG]( installed. Then:

pip install description-extractor

### C++ library only

Run make.

Optionally set the __debug__ flag to trace the algorithm.

For direct use within a C/C++ environment just #include “extractor.h” and add to your project’s source files.

## Testing

There are some unit tests for the Python interface. After installing the Python package, run them using [pytest](

pip install pytest python develop py.test

Alternatively, use [tox]( to automatically run the tests on all supported versions of Python:

pip install tox tox

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for description-extractor, version 2.3.4
Filename, size File type Python version Upload date Hashes
Filename, size description_extractor-2.3.4-py2.7-linux-x86_64.egg (321.2 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size description-extractor-2.3.4.tar.gz (28.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page