igvtools

The igvtools utility provides a set of tools for pre-processing data files.  These include:

  • toTDF
    Converts a sorted data input file to a binary tiled data (.tdf) file. 
    Used to preprocess large datasets for improved IGV performance.
    Supported input file formats: .cn, .gct, .igv, .res, .snp, and .wig
    Note: This tool was previously known as "Tile"
  • count
    Computes average alignment or feature density for over a specified window size across the genome and outputs a binary tiled data .tdf file, text .wig file, or both depending on inputs.
    Used to create a track that can be displayed in IGV, for example as a bar chart.
    Supported input file formats: .aligned, .bam, .bed, .psl, .pslx, and .sam
  • index
    Creates an index file for an ASCII alignment or feature file.
    Index files are required for loading alignment files into IGV, and can significantly improve performance for large feature files.
    Supported input file formats: .aligned, .bed, .psl, .sam, and .vcf (v3.2)

To sort and index .bam files, refer to Samtools or the Picard.SortSam module on GenePattern.

  • sort
    Sorts the input file by start position. 
    Used to prepare data files for tools that required sorted input files.
    Supported input file formats: .aligned, .bed, .cn, .igv, .psl, .sam, and .vcf

To sort and index .bam files, refer to Samtools or the Picard.SortSam module on GenePattern.

From IGV: igvtools is accessed by selecting Tools>Run igvtools.

Command line: The igvtools commands can also be run from the command line.  To install, download the igvtools zip file from the Downloads page.  On Windows, enter the commands at an MS-DOS prompt (select Start>Run and type: cmd). On Mac, enter the commands in a terminal window (select Applications>Utilities>Terminal).