Skip to main content

viral_verify

https://img.shields.io/pypi/v/viral_verify.svg https://img.shields.io/travis/peterk87/viral_verify.svg Documentation Status

viralVerify rewrite/refactor for PyPI packaging and distribution, maintainability and clarity.

NOTE: BLAST+ search option has been removed. Results output table will be different than the original viralVerify. Naive Bayes classifier training script has not been ported yet.

Features

  • Gene prediction with Prodigal in metagenomic mode

  • HMMer3 hmmsearch for protein domains in predicted genes

  • Naive Bayes classification of contigs as viral/not viral based on HMMer3 results

  • Output of detailed contig classification results table in CSV format

  • Output of contigs based on classification into separate FASTA files

Requirements

An HMMer3 HMM database is required. For example, the latest version of Pfam-A HMM:

NOTE: Please extract any compressed HMM DB ($ gunzip Pfam-A.hmm.gz)

Software dependencies:

Python dependencies:

Installation

Conda

It’s recommended that you use Conda to install the required software (Prodigal and HMMer3) and Python dependencies.

$ conda env create -f environment.yml

Pip

If you have Prodigal and HMMer3 installed in your $PATH, and Python 3.6 or greater, you can use pip to install viral_verify:

$ pip install viral_verify

Usage

$ viral_verify --help
Usage: viral_verify [OPTIONS]

  HMM and Naive Bayes classification of contig sequences as either viral,
  plasmid or chromosomal.

  Requires Prodigal for gene prediction and hmmsearch from HMMer3 for
  searching for Pfam HMM profiles.

Options:
  -i, --input-fasta PATH          Input fasta file  [required]
  -o, --outdir PATH               Output directory  [required]
  -H, --hmm-db PATH               Path to Pfam-A HMM database  [required]
  -t, --threads INTEGER           Number of threads (default=16)
  -p, --output-plasmids-separately
                                  Output predicted plasmids separately?
  --prefix TEXT                   Output file prefix (default: None)
  --uncertainty-threshold FLOAT   Uncertainty threshold (Natural log
                                  probability) (default=3.0)

  --naive-bayes-classifier-table PATH
                                  Table of protein domain frequencies to use
                                  for Naive Bayes classification (default="/ho
                                  me/pkruczkiewicz/repos/viral_verify/viral_ve
                                  rify/data/classifier_table.txt")

  -v, --verbose                   Logging verbosity
  --version                       Show the version and exit.
  --help                          Show this message and exit.

Credits

The original source code, design and conception can be found at viralVerify. This is merely a rewrite for easier packaging via PyPI, adding some CI with Travis-CI and organizing the code for maintainability and clarity.

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.1 (2020-06-04)

  • Fix PyPI release (include classifier_table.txt in package)

0.1.0 (2020-06-03)

  • First release on PyPI.

Metadata

Release files for viral-verify 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for viral-verify 0.1.1
File Size Uploaded
viral_verify-0.1.1.tar.gz 173.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for viral-verify 0.1.1
File Interpreter ABI Platform
viral_verify-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 346.7 kB

Release files / viral_verify-0.1.1.tar.gz

Download URL viral_verify-0.1.1.tar.gz
Size 173.8 kB
Tags Source
SHA-256 checksum
How to use checksums
48c7d5afb62b1b53353c301fffb6b2c753353b2f0f2cd11d71991bac310d758f
BLAKE2b-256 checksum
How to use checksums
ee23a30499af4ffd4862633bf2f87622e7f9ee1698b549c3d75f05d4807c98c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release files / viral_verify-0.1.1-py2.py3-none-any.whl

Download URL viral_verify-0.1.1-py2.py3-none-any.whl
Size 172.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2f3a8022f8cf097075e31a355a8cd3d31e3a3a518f1de5810ad4093f30dbd504
BLAKE2b-256 checksum
How to use checksums
459bd5ae0ee252dd47fa6c372c949a4a5cf3e88124fb84fd9f6a0307272e1248
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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