Skip to main content

normalize effects from variant annotation tools (snpEff, VEP)

Project description

Given multiple snpEff or VEP or BCFTools consequence annotations for a single variant, get an orderable python object for each annotation.

Build Status

This is to provide a consistent interface to different variant annotations such as from snpEff ANN field and the VEP CSQ field. and the BCFTools consequence field

This will be used in gemini but should also be of general utility.

Design

There is an effect base-class and then a sub-class for snpEff, one for VEP, and one for BCFT

Effect objects are orderable (via __le__ ) and should have an __eq__ method so that we can use functools.total_ordering to provide the other comparison operators.

Given 2 effects objects, a and b: a < b == True iff the severity of b is greater than a.

We will have a classmethod: `Effect.top_severity([eff1, ... effn]) that will return the single highest serverity if that exists or a list of the ties for highest

Rules for severity:

Given 2 annotations, a and b a is more severe than b if:

  1. b is a pseudogene and a is not
  2. a is coding and b is not
  3. a has higher severity than b ( see below)
  4. polyphen, then sift
  5. ??? transcript length? (we dont have access to this).

severity

Severity is based on the impacts from VEP and the impacts from snpEff. We reduce from the 4 categories HIGH, MEDIUM, LOW, MODIFIER to 3 by renaming MEDIUM to MED and renaming MODIFIER to LOW.

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

geneimpacts-0.3.7.tar.gz (40.9 kB view details)

Uploaded Source

File details

Details for the file geneimpacts-0.3.7.tar.gz.

File metadata

  • Download URL: geneimpacts-0.3.7.tar.gz
  • Upload date:
  • Size: 40.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for geneimpacts-0.3.7.tar.gz
Algorithm Hash digest
SHA256 059f52960d2bf60f20ed18836b39284ff8f3b6b24edcffe9fa069175b1b32e2c
MD5 53511ee3ef7fa2c1e9b82ca5d2a82191
BLAKE2b-256 7c818c6df08068439a8f084fbb6533b9c7e2aad2556d54889e9ec519b98a571e

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