Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

VEGAWES package

This is an R package that implements VEGAWES, a segmentation algorithm based on Mumford and Shah variational model, for copy number segmentation on Whole Exome Sequencing data. The package and the source code can be downloaded here.

To install the package on R:
Load the library:
  • Hg19 Reference Genome: (
  • Genome Analysis Tool Kit (GATK) jar
Input files required:
  • Paired Tumor-Normal BAM files
  • Exome Interval List (Included in the package under /inst/extdata as "targets.interval_list" )
  • GC Content Data (Included in the package under /data as "GCContent.<chromosome>.RData". Please note that this data is generated for the provided exome list. For new exome lists, GC content will have to be regenerated. Script to create these files in .txt format is in /inst/extdata/ - Requires samtools.)

In addition, "parameters.txt" must be modified to include all the required paths. See Examples below and VEGAWES.pdf under /inst/doc for further details.

The file "parameters.txt" contains the following information:

* Path to the working directory
* Reference genome file path
* Path to the GATK jar
* List of exons filepath to run GATK
* Name of the sample (to create an output folder under the working directory to save GATK results and the segmentation results)
* Normal input BAM file path
* Tumor input BAM file path
* Path to the GC Content Data folder

Example of "parameters.txt":

Run the pipeline

To run the pipeline, the user needs to run the runVEGAWES function giving atleast two parameters - "parameters.txt" and the list of chromosomes to be analyzed (Note: Please provide the chromosome numerically as 1, 2, etc, and not with characters like in "chr1"). In addition, Java must be in the current path to run GATK.

This function first runs GATK to compute average read counts from the BAM files, normalizes the counts based on GC Content, computes log-ratio values for each exome, and finally runs VEGAWES segmentation on the required chromosomes. The average read counts and other output files are stored in a new output directory named after the sample-name.

The function can be called in the following way:

runVEGAWES( "parameters.txt", chr.list = c(1:22) )

The segmentation results for each chromosome are stored in the output directory as "Segmentation.<chromosome>.txt".

Please refer to the VEGAWES.pdf under /inst/doc for further details and descriptions.

Copyright © [2015] QCRI a member of Qatar Foundation. All Rights Reserved;


An R package to perform vartiational copy number segmentation on Whole Exome Sequencing data



No releases published


No packages published