Skip to main content

Human mitochondrial variants annotation using HmtVar.

Project description

HmtNote

https://img.shields.io/pypi/v/hmtnote.svg https://travis-ci.com/robertopreste/HmtNote.svg?token=zzk3yyGKDnWjk4pFXFuz&branch=master https://circleci.com/gh/robertopreste/HmtNote.svg?style=svg&circle-token=b910c3491e8df21fee34293ace05a35a116759c7 https://codecov.io/gh/robertopreste/HmtNote/branch/master/graph/badge.svg Documentation Status Updates

Human mitochondrial variants annotation using HmtVar.

Features

HmtNote is a bioinformatics tool that can be used to annotate human mitochondrial variants from a VCF, using data available on HmtVar.

Annotations are grouped into basic, cross-reference, variability and predictions, depending on the type of information they provide.

Basic

Basic information about the variant; they include:

  • Locus: Locus to which the variant belongs

  • AaChange: Aminoacidic change determined

  • Pathogenicity: Pathogenicity predicted by HmtVar

  • Disease Score: Disease score calculated by HmtVar

Cross-reference

Cross-reference information about the variant; they include:

  • Clinvar: Clinvar ID of the variant

  • dbSNP: dbSNP ID of the variant

  • OMIM: OMIM ID of the variant

  • MitomapAssociatedDiseases: Diseases associated to the variant according to Mitomap

  • MitomapSomaticMutations: Diseases associated to the variant according to Mitomap Somatic Mutations

Variability

Variability and allele frequency data about the variant; they include:

  • NtVarH: Nucleotide variability of the position in healthy individuals

  • NtVarP: Nucleotide variability of the position in patient individuals

  • AaVarH: Aminoacid variability of the position in healthy individuals

  • AaVarP: Aminoacid variability of the position in patient individuals

  • AlleleFreqH: Allele frequency of the variant in healthy individuals overall

  • AlleleFreqP: Allele frequency of the variant in patient individuals overall

  • AlleleFreqH_AF: Allele frequency of the variant in healthy individuals from Africa

  • AlleleFreqP_AF: Allele frequency of the variant in patient individuals from Africa

  • AlleleFreqH_AM: Allele frequency of the variant in healthy individuals from America

  • AlleleFreqP_AM: Allele frequency of the variant in patient individuals from America

  • AlleleFreqH_AS: Allele frequency of the variant in healthy individuals from Asia

  • AlleleFreqP_AS: Allele frequency of the variant in patient individuals from Asia

  • AlleleFreqH_EU: Allele frequency of the variant in healthy individuals from Europe

  • AlleleFreqP_EU: Allele frequency of the variant in patient individuals from Europe

  • AlleleFreqH_OC: Allele frequency of the variant in healthy individuals from Oceania

  • AlleleFreqP_OC: Allele frequency of the variant in patient individuals from Oceania

Predictions

Pathogenicity prediction information of the variant from external resources; they include:

  • MutPred_Prediction: Pathogenicity prediction offered by MutPred

  • MutPred_Probability: Confidence of the pathogenicity prediction offered by MutPred

  • Panther_Prediction: Pathogenicity prediction offered by Panther

  • Panther_Probability: Confidence of the pathogenicity prediction offered by Panther

  • PhDSNP_Prediction: Pathogenicity prediction offered by PhD SNP

  • PhDSNP_Probability: Confidence of the pathogenicity prediction offered by PhD SNP

  • SNPsGO_Prediction: Pathogenicity prediction offered by SNPs & GO

  • SNPsGO_Probability: Confidence of the pathogenicity prediction offered by SNPs & GO

  • Polyphen2HumDiv_Prediction: Pathogenicity prediction offered by Polyphen2 HumDiv

  • Polyphen2HumDiv_Probability: Confidence of the pathogenicity prediction offered by Polyphen2 HumDiv

  • Polyphen2HumVar_Prediction: Pathogenicity prediction offered by Polyphen2 HumVar

  • Polyphen2HumVar_Probability: Confidence of the pathogenicity prediction offered by Polyphen2 HumVar

Usage

Command Line Interface

HmtNote can be used as a command line tool, by simply providing the original VCF and the filename where the annotated VCF will be saved:

hmtnote input_vcf.vcf annotated_vcf.vcf

By default, HmtNote will annotate the VCF using all four groups of annotations (basic, cross-reference, variability and predictions). If desired, you can specify which kind of annotation you want, using respectively --basic, --crossref, --variab and --predict:

hmtnote input_vcf.vcf annotated_basic_vcf.vcf --basic
hmtnote input_vcf.vcf annotated_crossreferences_vcf.vcf --crossref
hmtnote input_vcf.vcf annotated_variability_vcf.vcf --variability
hmtnote input_vcf.vcf annotated_predictions_vcf.vcf --predict

Python Module

HmtNote can also be imported in a Python script and its function annotate_vcf() can be used to annotated a given VCF:

from hmtnote import annotate_vcf
annotate_vcf("input_vcf.vcf", "annotated_vcf.vcf")

By default, annotate_vcf() will annotate the VCF using all four groups of annotations (basic, cross-reference, variability and predictions). If desired, you can specify which kind of annotation you want, using respectively the basic=True, crossref=True, variab=True, predict=True arguments:

annotate_vcf("input_vcf.vcf", "annotated_basic_vcf.vcf", basic=True)
annotate_vcf("input_vcf.vcf", "annotated_crossreferences_vcf.vcf", crossref=True)
annotate_vcf("input_vcf.vcf", "annotated_variability_vcf.vcf", variab=True)
annotate_vcf("input_vcf.vcf", "annotated_predictions_vcf.vcf", predict=True)

Installation

PLEASE NOTE: HmtNote only supports Python 3!

The preferred installation method for HmtNote is using pip in a conda environment:

$ conda install requests
$ conda install -c bioconda cyvcf2
$ pip install hmtnote

If you have issues, please refer to the Installation section of the Documentation.

Credits

This package was created with Cookiecutter and the cc-pypackage project template.

History

0.1.0 (2019-03-03)

  • First release on PyPI.

0.1.1 (2019-03-04)

  • Clean installation requirements for conda;

  • Update documentation.

0.1.2 (2019-03-15)

  • Classes and methods are protected where needed;

  • Code style is clean.

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

hmtnote-0.1.2.tar.gz (60.7 kB view details)

Uploaded Source

Built Distribution

hmtnote-0.1.2-py2.py3-none-any.whl (10.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file hmtnote-0.1.2.tar.gz.

File metadata

  • Download URL: hmtnote-0.1.2.tar.gz
  • Upload date:
  • Size: 60.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for hmtnote-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5e7c89235f7c871c031124e29993a6a80005eea7afc525ec4afccbdade31243f
MD5 5a8686e0097f28276eaaa7b456d44b30
BLAKE2b-256 f4eb6604748f4553af9d2eeb8c2d1a13bb726d066480af8d62def1cafc242b76

See more details on using hashes here.

File details

Details for the file hmtnote-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: hmtnote-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.6

File hashes

Hashes for hmtnote-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9ab18cb963ab8becee2d56f3bc3822b867d795c1cb2aba05e632b33a220b8749
MD5 75e6edb393e6a2c59d040cf4944eb43c
BLAKE2b-256 2f36951be9f9594925ca4ace470ddb1f3563f658d7f3280c862e95e3e5b58730

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