iCopyDAV: Integrated platform for Copy number variations

March 6, 2018 · View on GitHub

Version -1 for CNV detection Pipeline

RD based CNV detection tool

Requirements

Make sure that these tools are added to your PATH variable

  • samtools (link)
  • bedtools (>=2.26) (link)
  • openMPI (Installation Guide)
  • R-packages - DNAcopy, ParDNAcopy, quantsmooth, GenomicAlignments, rtracklayer

Installation

Download the source code from https://github.com/vogetihrsh/icopydav, extract the zip file

unzip iCopyDAV.zip
cd iCopyDAV
make 

Please download annotations from http://bioinf.iiit.ac.in/icopydav/ and add the folder to working directory.

Usage

# CALCULATE OPTIMAL BIN/WINDOW SIZE
./calOptBinSize -c <config file> -i <input BAM>

# DATA PREPARATION
./prepareData -m <mappability file> -g <gc content file> --win <desired window size> --genome_file <Genome file> -o <Output file name prefix>

# PRETREATMENT STEP
./pretreatment -i <input BAM> -z <bed file containing bins> --mapfile < file contaning mappability values> -o <output prefix> --gcfile <file containing GC scores>

# SEGMENTATION
./runSegmentation -o <output prefix> <-t or -d or both>

# POSTPROCESSING AND CNV CALLING
./callCNV -o <output prefix> -z <bed file contaning bins> <genome flag (--hg18 or --hg19)>

# ANNOTATION 
./annotate -i <input bed file> -o <output prefix> <genome flag (--hg18 or --hg19)>

# PLOT
./plot -i <input bed file> -o <output file name> <genome flag (--hg18 or --hg19)>
./plot -i <input bed file> -d --start <start position> --end <end position> -o <output file name> <genome flag (--hg18 or --hg19)>



Note:

Pretreatment, runSegmentation, callCNV should have same value for the parameter -o.

calOptBinSize

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-cYes/STRINGConfig file contaning parameters to be used for calculations. Parameters similarity to those used in ReadDepth config file. For additional info, please refer to "config.txt" in the source directory.Required
-iYes/STRINGInput BAM File.Required
- -helpNo/-Prints usage statement. Should be exclusively used.Optional

prepareData

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-mYes/STRINGMappability score file available for 100 bpRequired
-gYes/STRINGGC content score file availabled for 100 bpRequired
--winYes/INTEGERDesired window size for CNV predictionsRequired
--genome_fileYes/STRINGA tab-separated genome file containing chromosome number and size of the chromosomeRequired
-oYes/STRINGOutput file name that is used as prefix for coordinate, GC content and mappability files generatedRequired

pretreatment

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-iYes/STRINGInput BAM File.Required
-oYes/STRINGOutput Prefix.Required
-zYes/STRINGBed file contanning bins.Required
--mapfileYes/STRINGFile contaning mappability values ([0,1]) of bins present in the file passed as value to -z.Required
-pYes/INTEGERDefault Value: 32. Number of processes to be created for parallelization.Optional
- -helpNo/-Prints usage statement. Should be exclusively used.Optional
-yNo/-When used Yoon et al. method for GC correction and mappability correction is applied to the dataOptional
--medianGCNo/-Use Median-based method (Yoon et al) for GC correctionOptional
--medianMapNo/-Use Median-based method (Yoon et al) for Mappability correctionOptional
--loessGCNo/-Use Loess method to correct GC-BiasOptional
--gcfileNo/-File containing GC content values ([0,1]) generated in prepareData, required when using LoessGC/medianGC optionsOptional

runSegmentation

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-oYes/STRINGOutput Prefix.Required
-pYes/INTEGERDefault Value: 32. Number of processes to be created for parallelization.Optional
-tNo/-When this flag is specified Total Variation Minimization algorithm is used for segmentation.Atleast one of -t and -d should be used.
-dNo/-When this flag is specified Circular Binary Segmentation algorithm is used for segmentation.Atleast one of -t and -d should be used.
- -helpNo/-Prints usage statement. Should be exclusively used.Optional

callCNV

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-oYes/STRINGOutput Prefix.Required
-zYes/STRINGBed file contanning bins.Required
--hg18No/-For hg18 genome. This flag will be used for getting the gap info (hg18_gap.bed) from the annotations directory.Not required when --hg19 or --genome is used.
--hg19No/-For hg19 genome. This flag will be used for getting the gap info (hg19_gap.bed) from the annotations directory.Not required when --hg18 or --genome is used.
--genomeNo/-For genomes other than hg18 and hg19. This flag will be used for getting the gap info (_gap.bed) from the annotations directory.Not required when --hg19 or --hg18 is used.
- -helpNo/-Prints usage statement. Should be exclusively used.Optional

annotate

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-iYes/STRINGInput bed file contaning regions that needed to be annotated.Required
-oYes/STRINGOutput prefix for the generated bed file.Required
--hg18No/-hg18 genome flag. When used checks for the files contaning gene info (hg18.bed), DGV annotations (hg18DGV.bed), location annotation (hg18LocInfo.bed and gap annotations (hg18_gap.bed) in the annotation directoryNot required when --hg19 or --genome is used.
--hg19No/-hg19 genome flag. When used checks for the files contaning gene info (hg19.bed), DGV annotations (hg19DGV.bed), location annotation (hg19LocInfo.bed and gap annotations (hg19_gap.bed) in the annotation directoryNot required when --hg18 or --genome is used
--genomeYes/STRINGAny genome other than hg18 and hg19 can be specified through this flag. It requires .bed, DGV.bed, _gap.bed and LocInfo.bed files to be present in annotation directory.Not required when --hg18 or --hg19 is used.
--annDirYes/STRINGDefault: "SOURCEDIR/annotations". Path to the annotation directory.Optional
--helpNo/-Prints usage statement. Should be exclusively used.Optional

plot

FLAGREQUIRES VALUE/TYPEDESCRIPTIONOPTIONAL/REQUIRED
-iYes/STRINGInput bed file containing CNV cooridnates for visualizationRequired
-oYes/STRINGOutput file name prefix for the image file generatedRequired
--hg18No/-For hg18 genome.Not requires when --hg19 is used
--hg19No/-For hg19 genome.Not required when --hg18 is used
-dYes/-User may use this parameter for visualiing CNVs within specific user-defined coordinatesOptional, required when start and end coordinates are used
--startYes/INTEGERStart coodinateOptional
--endYes/INTEGERStop coordinateOptional

Contact

For any queries drop a mail @ vogetisri.harsha@research.iiit.ac.in