Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/combat-tb/tbvcfreport

Generate an interactive HTML-based report from M.tb SnpEff annotated VCF(s)
https://github.com/combat-tb/tbvcfreport

combat-tb-neodb galaxy-project neo4j snpeff tuberculosis variant-annotations vcf vcf-files

Last synced: 4 months ago
JSON representation

Generate an interactive HTML-based report from M.tb SnpEff annotated VCF(s)

Awesome Lists containing this project

README

        

# **tbvcfreport**

![tbvcfreport build status](https://github.com/COMBAT-TB/tbvcfreport/actions/workflows/tbvcfreport.yaml/badge.svg)
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat)](http://bioconda.github.io/recipes/tbvcfreport/README.html)

Generate an interactive HTML-based report from *M.tb* SnpEff annotated VCF(s) with links to the [COMBAT-TB-eXplorer](https://explorer.sanbi.ac.za/).

![test-report-img](img/test-report.png)

## Usage

**Prerequisites:**

- [SnpEff](http://snpeff.sourceforge.net/SnpEff_manual.html) annotated *M.tuberculosis* VCF file(s).

**Optional:**
- A [COMBAT-TB-NeoDB](https://github.com/COMBAT-TB/combat-tb-neodb) instance, `tbvcfreport` defaults to [neodb.sanbi.ac.za](https://neodb.sanbi.ac.za).
- See [documentation](https://github.com/COMBAT-TB/combat-tb-neodb) if you want a local installation and `export DATABASE_URI=localhost` for `tbvcfreport` to use your local instance.

### Installation

#### Using `pip`

```sh
$ pip install -i https://test.pypi.org/simple/ tbvcfreport
...
```

#### Using `conda`

With an activated [Bioconda](https://bioconda.github.io/) channel:

```sh
$ conda install tbvcfreport
...
```

#### From source

```sh
$ git clone https://github.com/COMBAT-TB/tbvcfreport.git
...
$ cd tbvcfreport
$ virtualenv envname
$ source envname/bin/activate
$ pip install -r requirements.txt
$ pip install -e .
```

### Run `tbvcfreport`

```sh
$ tbvcfreport --help
Usage: tbvcfreport [OPTIONS] COMMAND [ARGS]...

Generate an HTML-based VCF report from SnpEff annotated VCF file(s).

Options:
--help Show this message and exit.

Commands:
generate Generate an interactive HTML-based VCF report.

```

```sh
$ tbvcfreport generate --help
Usage: tbvcfreport generate [OPTIONS] VCF_DIR

Generate an interactive HTML-based VCF report.

Options:
-t, --tbprofiler-report FILENAME
TBProfiler json report.
-f, --filter-udi / -nf, --no-filter-udi
Filter upstream, downstream and intergenic
variants. [default: True]
--help Show this message and exit.

```

```sh
$ tbvcfreport generate VCF_DIR/
Processing...
```

This will generate a `{vcf-file-name}.html` file in the current working directory (`pwd`).

## In Galaxy

We have also added `tbvcfreport` to the [Galaxy](https://github.com/galaxyproject) [Tool Shed](https://toolshed.g2.bx.psu.edu/repository?repository_id=47a4512ab5a77049).

Kindly see [`this repository`](https://toolshed.g2.bx.psu.edu/repository?repository_id=47a4512ab5a77049) for the latest revision.

![Galaxy-tbvcfreport](img/tbvcfreportgalaxy.png)