Tracks

Tracks show annotations below the alignments: VCF, BCF, BED, GFF3, GTF, bigBed, bigWig and GW_TRACK files.

Alignments with a feature track and ideogram

Opening tracks

Drag-and-drop a file onto the window, or use Main menu → Open file. Online file can also fetch annotation tracks from UCSC.

For a VCF/BCF, GW asks whether to load it as an annotation track, as tiled images for reviewing variants, or both.

Working with tracks

  • Click a feature for a popup with its fields. VCF/BCF, GFF/GTF and bigBed records are shown as a table; a VCF record lists INFO fields and per-sample FORMAT values
  • Drag the line above the tracks to resize the track area
  • Click a track’s name label to rename it. Point at the label for buttons to close (x) or hide (eye) the track; show it again from Hide in the display options, or with unhide
  • Tick Expand tracks in the display options to draw overlapping features on separate rows

Main menu → Tracks lists every track: set its height, move it up or down, hide it or close it.

The track manager

Tracks to load at every startup are set in Settings → Tracks.

Feature labels

By default a feature is labelled with its ID (VCF/BCF), gene name (GFF3/GTF) or name column (bigBed). To show other fields, open Main menu → Tracks and click Labels on the track’s row, then tick the fields to show. The label lists them in the order they were ticked; Default clears the choice.

Track Fields offered
VCF/BCF ID, TYPE, REF, ALT, QUAL, FILTER, and every INFO and FORMAT field declared in the header. FORMAT values are taken from the first sample
GFF3/GTF The attributes of the features in view. Any other attribute name can be typed in
bigBed The columns named in the file’s schema

With one field the label is the value alone; with several, each value is shown as KEY=value. Fields missing from a record are left out.

The track-labels command does the same, taking a track index or name and a comma-separated list:

track-labels 0 INFO:SVTYPE,INFO:SVLEN,FORMAT:SU
track-labels genes gene_name,gene_biotype
track-labels 0 auto        # back to the default label
track-labels 0             # list the fields the track offers

To set the fields for every track of a format, use --track-labels at launch, or the track_label_parser_rules option in Settings. Formats are separated by ;:

gw hg38 -b your.bam --track svs.vcf.gz --track genes.gtf.gz \
   --track-labels "VCF:INFO:SVTYPE,INFO:SVLEN;GTF:gene_name,gene_biotype"

Genotypes

A VCF/BCF track with samples draws a genotype row per sample beneath its features. Each bar is one haplotype: a heterozygous variant has one bar, a homozygous variant a second bar stacked on top. Click a bar to highlight its variant.

From the command line

gw hg19 -r chr1 -b HG002.bwa.bam --track test.gff3.gz

The load track, hide, track-height and expand-tracks commands do the same from the command bar.

Ideograms

Many reference genomes come with a preset ideogram for matching genome-tags (e.g. hg19, hg38, t2t). Click the chromosome name beside the ideogram to jump to another chromosome. To manage ideograms manually, use the command bar:

load ideogram hg19
remove ideogram

Set a custom ideogram for a genome-tag in the [tracks] section of .gw.ini:

[tracks]
hg38_ideogram=path_to_ideogram.bed

Any BED file works as an ideogram; multiple ideograms stack. Colour records with #gw header lines (ARGB):

#gw LTR5 255,255,0,0
chr1    10000   20000

This site uses Just the Docs, a documentation theme for Jekyll.