Skip to main content

A Structural Variant Post-Processing Package

Project description

.. image::


.. role:: raw-html-m2r(raw)
:format: html

.. image::
:alt: PyPi

.. image::
:alt: Travis

.. image::
:alt: ReadTheDocs



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

* convert
* `cluster <>`_
* `validate <>`_
* `annotate <>`_
* `pairing <>`_
* `summary <>`_

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

.. code-block::

mavis -h

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

.. code-block::

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 ` <>`_

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

.. code-block:: bash

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.

.. code-block:: bash

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

.. code-block:: bash

pip install --upgrade pip setuptools

or (for Anaconda users)

.. code-block:: bash

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

.. code-block:: bash

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

.. code-block:: bash

git clone
cd mavis
pip install zc.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.

.. code-block:: bash

cd /path/to/where/you/want/to/put/the/files
source reference_inputs/

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

.. code-block::

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

Deploy to PyPi

Install m2r to ensure the README is converted nicely

.. code-block:: bash

pip install m2r

Install to build the egg

.. code-block:: bash

python install

Build the other distribution files

.. code-block:: bash

python sdist

Use twine to upload

.. code-block:: bash

twine upload -r pypi dist/*


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. <>`_

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

mavis-2.2.0.tar.gz (2.1 MB view hashes)

Uploaded Source

Built Distribution

mavis-2.2.0-py3.6.egg (829.4 kB view hashes)

Uploaded Source

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