Skip to main content
http://mavis.bcgsc.ca/docs/latest/_static/acronym.svg

PyPi Travis ReadTheDocs

About

MAVIS is python command-line tool for the post-processing of structural variant calls. The general MAVIS pipeline consists of six main stages

Getting Help

All steps in the MAVIS pipeline are called following the main mavis entry point. The usage menu can be viewed by running without any arguments, or by giving the -h/–help option

mavis -h

Help sub-menus can be found by giving the pipeline step followed by no arguments or the -h options

mavis cluster -h

Common problems and questions are addressed on the wiki. If you have a question or issue that is not answered there (or already a github issue) please submit a github issue to our github page or contact us by email at mavis@bcgsc.ca

Install Instructions

There are 3 major steps to setting up and installing MAVIS.

1. Install Aligner

In addition to the python package dependencies, MAVIS also requires an aligner to be installed. Currently the only aligners supported are blat and bwa mem. For MAVIS to run successfully the aligner must be installed and accessible on the path. If you have a non-standard install you may find it useful to edit the PATH environment variable. For example

export PATH=/path/to/directory/containing/blat/binary:$PATH

blat is the default aligner. To configure MAVIS to use bwa mem as a default instead, use the MAVIS environment variables. Make sure to specify BOTH of the variables below to change the default aligner.

export MAVIS_ALIGNER='bwa mem'
export MAVIS_ALIGNER_REFERENCE=/path/to/mem/fasta/ref/file

After this has been installed MAVIS itself can be installed through pip

2. Install MAVIS

Install using pip

The easiest way to install MAVIS is through the python package manager, pip. If you do not have python3 installed it can be found here

Ensuring you have a recent version of pip and setuptools will improve the install experience. Older versions of pip and setuptools may have issues with obtaining some of the mavis python dependencies

pip install --upgrade pip setuptools

or (for Anaconda users)

conda update pip setuptools

If this is not a clean/new python install it may be useful to set up mavis in a virtual python environment

Then install mavis itself

pip install mavis

This will install mavis and its python dependencies.

Install using Buildout

Alternatively you can use the bootstrap/buildout to install mavis into bin/mavis

git clone https://github.com/bcgsc/mavis.git
cd mavis
pip install zc.buildout
python bootstrap.py
bin/buildout

This will install mavis and its python dependencies into eggs inside the cloned mavis directory which can be used by simply running bin/mavis

3. Build or Download Reference Files

After MAVIS is installed the reference files must be generated (or downloaded) before it can be run. A simple bash script to download the hg19 reference files and generate a MAVIS environment file is provided under mavis/tools for convenience.

cd /path/to/where/you/want/to/put/the/files
wget https://raw.githubusercontent.com/bcgsc/mavis/master/tools/get_hg19_reference_files.sh
bash get_hg19_reference_files.sh
source reference_inputs/hg19_env.sh

Once the above 3 steps are complete MAVIS is ready to be run. See the MAVIS tutorial to learn about running MAVIS.

Build the Sphinx Documentation

pip install .[docs]
sphinx-build docs/source/ html

Deploy to PyPi

Install m2r to ensure the README is converted nicely

pip install m2r

Install to build the egg

python setup.py install

Build the other distribution files

python setup.py sdist

Use twine to upload

twine upload -r pypi dist/*

Citation

If you use MAVIS as a part of your project please cite

Reisle,C. et al. (2018) MAVIS: Merging, Annotation, Validation, and Illustration of Structural variants. Bioinformatics.

Metadata

Release files for mavis 2.2.3

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

Source distribution (sdist)

Source distribution for mavis 2.2.3
File Size Uploaded Provenance Actions
mavis-2.2.3.tar.gz 2.1 MB Without provenance Details for mavis-2.2.3.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for mavis 2.2.3
File Interpreter ABI Platform Actions
mavis-2.2.3-py3.6.egg Legacy Egg format - - Details for mavis-2.2.3-py3.6.egg
mavis-2.2.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for mavis-2.2.3-py2.py3-none-any.whl

Total release size: 3.3 MB

Release files / mavis-2.2.3.tar.gz

Download URL mavis-2.2.3.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
f1c6e4ca110c9d77bb91673cda8dfd3a8949bc954b751f289e447530de4d697c
BLAKE2b-256 checksum
How to use checksums
9d6edfb9317f1e896acd700520ec9b708da920b67d7c2b6b86a35bada6133f71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

Release files / mavis-2.2.3-py3.6.egg

Download URL mavis-2.2.3-py3.6.egg
Size 831.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
55c591d6826d5bbbf8a8168b07020a27b1ea59f6d016c0b125583f351cbea1f6
BLAKE2b-256 checksum
How to use checksums
5bcc4ccef88e987319582f17fde3157ea4b4b04a1c8e03ed848baab3f089bc4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

Release files / mavis-2.2.3-py2.py3-none-any.whl

Download URL mavis-2.2.3-py2.py3-none-any.whl
Size 344.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b846d9cf18f063ed54d98f28b6dfd2741a498ab6c21384645899f4a85e514e67
BLAKE2b-256 checksum
How to use checksums
5b71ed8b90cb19099c4afb2bb4a4dade43d0da77601b31a07991da97c7a16953
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.0

Security for mavis 2.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.3 This release

3 release files No provenance

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