Skip to main content

Multi-sample coverage browser

Project description

covviz

Coverage visualization; a companion viewer for indexcov results.

Here we use indexcov to quickly estimate the coverage across samples then find regions of large, coverage-based anomalies. The aim is to highlight regions of significant (passing the user's z-score threshold) and sustained (beyond user specified distance) deviation from the majority of samples. Significance is determined using z-scores (--zthreshold) for all samples at all points using median absolute deviation, but in order to be highlighted, points must be significant consecutively throughout a user specified distance (--distancethreshold).

Usage

Install nextflow:

curl -s https://get.nextflow.io | bash

Full nextflow installation instructions are available at: https://www.nextflow.io/

To simplify prerequisite software installations and software version tracking, we strongly recommend running covviz using Docker or Singularity. Docker installation instructions for your operating system are available at: https://docs.docker.com/install/

Then, with Docker or Singularity we run:

nextflow run brwnj/covviz -latest -profile docker \
    --indexes 'data/indexes/*.crai' \
    --fai data/g1k_v37_decoy.fa.fai \
    --gff data/Homo_sapiens.GRCh37.82.gff3.gz

Which gives us ./results/covviz_report.html.

Required arguments

  • --indexes
    • quoted file path with wildcard ('*.crai') to cram or bam indexes
  • --fai
    • file path to .fai reference index
  • --gff
    • file path to gff matching genome build of --indexes

Options

  • --outdir
    • output directory for results
    • default: "./results"
  • --sexchroms
    • sex chromosomes as they are in --indexes
    • default: "X,Y"
  • --exclude
    • regular expression of chromosomes to skip
    • default: "^GL|^hs|^chrEBV$|M$|MT$|^NC|random$|Un|^HLA\-|_alt$|hap\d+$"
  • --zthreshold
    • a sample must greater than this many standard deviations in order to be found significant
    • default: 3.5
  • --distancethreshold
    • consecutive significant points must span this distance in order to pass this filter
    • default: 150000
  • --slop
    • leading and trailing segments added to significant regions to make them more visible
    • default: 500000
  • --project
    • can be used to name your indexcov to something more meaningful
    • default: "NF"

Report

Interactive example

See: https://brwnj.github.io/covviz/

Scaled chromosome coverage

Significant regions will be displayed in color atop a gray region which represents the upper and lower bounds of a given point minus any values deemed significant.

significant_regions

Proportions covered

proportional_coverage

The metadata table will be displayed below the plots.

Interaction

Clicking on plot traces highlights the line and searches the metadata. Double-clicking de-selects lines, resets the plot, and de-selects samples from the table. Clicking on the gene track launches a search for the gene's respective Gene Card. In cases where genes overlap, multiple windows/tabs will be opened.

License

covviz is free and unrestricted for non-commercial use. For commercial use, please contact [bpedersen@base2genomics.com].

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

covviz-1.0.3.tar.gz (35.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

covviz-1.0.3-py3.7.egg (35.8 kB view details)

Uploaded Egg

covviz-1.0.3-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file covviz-1.0.3.tar.gz.

File metadata

  • Download URL: covviz-1.0.3.tar.gz
  • Upload date:
  • Size: 35.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for covviz-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f8c99acb2b5aae8c28aaf9b53e02adb3db3563fb85c12e7eeae3d206b5b40c7f
MD5 1b58a837397c1b9791b498ca12823099
BLAKE2b-256 b842e3005d2656809685d14d6bdaca334b1a170e230f1ed616207d69072cb37e

See more details on using hashes here.

File details

Details for the file covviz-1.0.3-py3.7.egg.

File metadata

  • Download URL: covviz-1.0.3-py3.7.egg
  • Upload date:
  • Size: 35.8 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for covviz-1.0.3-py3.7.egg
Algorithm Hash digest
SHA256 ec626ceeefb3bf6a2de6bac40e4be583045fadaf9a2a06a74d48a29779755a9f
MD5 e5ff82330335209c1c4f9d26a9809104
BLAKE2b-256 9db8aeca3e9581a6425bb90bae4eadf87a47a14d54fee316673699b7e1024452

See more details on using hashes here.

File details

Details for the file covviz-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: covviz-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for covviz-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee935bda9c9750807e1da166fe8ca63565c95cf81c3c005a1ea255d1bcb5f93e
MD5 dfd2134175287e68f7ed6f864f5c0358
BLAKE2b-256 70537470b60e2ec103ce2f77e8818aaa549c0b7ae8117aaa404b22263e3fd373

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page