Skip to main content

script to generate amplicon coverage plot

Project description

amplicon_coverage_plot

DOI Build Status codecov

The script will generate an interactive barplot given amplicon info in bed/bedpe format and coverage information in cov/bam file.

Dependencies

Programming/Scripting languages

Python packages

Third party softwares/packages

Installation

Install by pip

pip install amplicov

Install from source

Clone the amplicon_coverage_plot repository.

git clone https://github.com/chienchi/amplicon_coverage_plot

Then change directory to amplicon_coverage_plot and install.

cd amplicon_coverage_plot
python setup.py install

If the installation was succesful, you should be able to type amplicon_coverage.py -h and get a help message on how to use the tool.

amplicov -h

Usage

usage: amplicov [-h] (--bed [FILE] | --bedpe [FILE])
                (--bam [FILE] | --cov [FILE]) [-o [PATH]] [-p [STR]] [--pp]
                [--version]

Script to parse amplicon region coverage and generate barplot in html

optional arguments:
  -h, --help            show this help message and exit
  --pp                  process proper paired only reads from bam file
                        (illumina)
  --version             show program's version number and exit

Amplicon Input (required, mutually exclusive):
  --bed [FILE]          amplicon bed file
  --bedpe [FILE]        amplicon bedpe file

Coverage Input (required, mutually exclusive):
  --bam [FILE]          bam file
  --cov [FILE]          coverage file [position coverage]

Output:
  -o [PATH], --outdir [PATH]
                        output directory
  -p [STR], --prefix [STR]
                        output prefix

Test

cd tests
./runTest.sh

Outputs

-- prefix_amplicon_coverage.txt

ID Whole_Amplicon Unique
nCoV-2019_1 217.74 53.18
nCoV-2019_2 1552.83 1235.50
nCoV-2019_3 3164.22 2831.73
nCoV-2019_4 2005.16 1658.00
etc...

Table Header Definition in the amplicon_coverage.txt

Screen Shot 2020-06-15 at 3 29 53 PM

-- prefix_amplicon_coverage.html

html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

amplicov-0.1.2-py3-none-any.whl (18.2 kB view hashes)

Uploaded Python 3

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