IGVreport-nf: Efficient Generation of Interactive IGV HTML Reports for Genomic Regions of Interest in Human Genome (hg38)

public public 1yr ago Version: Version 1 0 bookmarks

IGVreport-nf

Description

Quickly generate IGV .html reports for a genomic region of interest in the human genome (hg38). Bcftools is used to subset a VCF to a region of interest, the subset VCF is then passed to IGV-reports, which generates a report consisting of a table of genomic sites or regions and associated IGV views for each site. The reports can be opened by any web browser as a static page.

Diagram

graph LR; VCF-->|bcftools view|SubsetVCF; SubsetVCF-->|IGVtools|HTMLreport; AlignmentBAM-->|IGVtools|HTMLreport;

User guide

This workflow uses containers for all steps and can run using Singularity or Docker. It requires Nextflow and either Singularity or Docker be installed. For instructions on installing Nextflow, see their documentation .

This workflow currently only generates reports for the human reference genome assembly, Hg38.

The workflow runs three processes:

  1. The provided VCF file is subset to a region of interest using Bcftools view
  2. The Subset VCF file is then indexed using Bcftools index
  3. The subset VCF and provided Bam file are used to generate the html report for the region of interest.

To start clone this repository:

git clone https://github.com/Sydney-Informatics-Hub/IGVreport-nf.git

From the IGVreport-nf directory, run the pipeline:

nextflow run main.nf --sample \ --bam \ --vcf \ --chr --start --stop

This will create a report in a directory titled ./Report . You can rename this directory at runtime using the flag --outDir . All runtime summary reports will be available in the ./runInfo directory.

Code Snippets

17
18
19
20
21
"""
bcftools view ${params.vcf} \
  -r ${params.chr}:${params.start}-${params.stop} \
  -Oz -o ${params.sample}_${params.chr}_${params.start}-${params.stop}.vcf.gz
"""
17
18
19
"""
bcftools index ${params.sample}_${params.chr}_${params.start}-${params.stop}.vcf.gz
"""
22
23
24
25
26
27
28
29
30
"""
create_report \
  ${params.sample}_${params.chr}_${params.start}-${params.stop}.vcf.gz \
  --genome hg38 \
  --info-columns SVTYPE SVLEN CHR2 \
  --flanking 10000 \
  --tracks ${params.sample}_${params.chr}_${params.start}-${params.stop}.vcf.gz ${params.bam} \
  --output ${params.sample}_${params.chr}_${params.start}-${params.stop}.html
"""
ShowHide 2 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/Sydney-Informatics-Hub/IGVreport-nf
Name: igvreport-nf
Version: Version 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: None
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...