Skip to main content

Variant annotator for MToolBox.

Project description

mtoolnote

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.

Variant annotator for MToolBox.

Features

mtoolnote can annotate mitochondrial variants from:

  • human genomes, using data stored in a local database derived from HmtVar;

  • non-human genomes, using data from BioMart.
    • Currently, only the following species are supported: oaries, ptroglodytes, scerevisiae

      ecaballus, fcatus, cfamiliaris, pabelii, ggallus, mmulatta, rnorvegicus, btaurus, oanatinus, sscrofa, nleucogenys, chircus, mmusculus, tguttata, tnigroviridis, mgallopavo, mdomestica, drerio

Usage

Once installed, mtoolnote offers a CLI command and a Python function to annotate both human and non-human VCF files.

Human mitochondrial variant annotation

Using the CLI:

$ mtoolnote INPUT_VCF OUTPUT_VCF

where INPUT_VCF and OUTPUT_VCF represent file paths. Use the --csv flag option to create an annotated CSV file in addition to the VCF output.

Using the Python module:

import mtoolnote
mtoolnote.annotate("input.vcf", "output.vcf")

Use the csv=True option to create an annotated CSV file in addition to the VCF output.

Non-human mitochondrial variant annotation

Using the CLI:

$ mtoolnote INPUT_VCF OUTPUT_VCF SPECIES

where SPECIES indicates the sample species, one of oaries, ptroglodytes, scerevisiae, ecaballus, fcatus, cfamiliaris, pabelii, ggallus, mmulatta, rnorvegicus, btaurus, oanatinus, sscrofa, nleucogenys, chircus, mmusculus, tguttata, tnigroviridis, mgallopavo, mdomestica, drerio. Use the --csv flag option to create an annotated CSV file in addition to the VCF output.

Using the Python module:

import mtoolnote
mtoolnote.annotate("input.vcf", "output_vcf", "species")

Use the csv=True option to create an annotated CSV file in addition to the VCF output.

Installation

After cloning this repo, cd in it and install mtoolnote using:

$ python setup.py install
# in case this does not work:
$ pip install -r requirements.txt
$ pip install .

or in development mode:

$ pip install -r requirements_dev.txt
$ pip install -e .

Testing

After installation, run all tests with:

$ pytest

or the full suite (tests using python3.6, python3.7, flake8) with:

$ tox

Credits

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

History

0.1.0 (2019-08-27)

  • First development release.

0.1.1 (2019-09-02)

  • Add option to create csv from annotated vcf file.

0.1.2 (2019-09-17)

  • Fix requirements;

  • Relocate local database for human annotation.

0.1.3 (2019-09-25)

  • Add multi-threading processing for non-human annotations (fix #1).

0.1.4 (2019-11-30)

  • Add haplogroup-specific allele frequencies to final annotations (fix #4);

  • Add external predictors to final annotations (fix #5).

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

mtoolnote-0.1.4.tar.gz (8.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mtoolnote-0.1.4-py2.py3-none-any.whl (8.0 MB view details)

Uploaded Python 2Python 3

File details

Details for the file mtoolnote-0.1.4.tar.gz.

File metadata

  • Download URL: mtoolnote-0.1.4.tar.gz
  • Upload date:
  • Size: 8.0 MB
  • 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.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9

File hashes

Hashes for mtoolnote-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3a819bd4a4d9abe559c8243d09f79af7613773d03bedba2c8334c4e60f8f4fcd
MD5 e088da5470348f434381ab1f2797c53c
BLAKE2b-256 ff67553031c98b0803b484a5b30a3bbd2441e02b0c904e6fad355b58b3c1f14c

See more details on using hashes here.

File details

Details for the file mtoolnote-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: mtoolnote-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.0 MB
  • 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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.9

File hashes

Hashes for mtoolnote-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ee82c4e70452191a26a4408aa8612b2e56c15aa12aa7e4607beb7002a414fc83
MD5 7f594478df4351bfd36166b37ba102c2
BLAKE2b-256 60ffcf45da0c6e9a312c3c52f57a3a4f7ba8960bbab4d7d33b19dbbe3638b6c9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page