The interface

Everything in GW can be done with the mouse: menus, panels and popups sit on top of the plot. The command bar and the command line are optional shortcuts to the same actions.

GW window with numbered interface regions

  Part What it does
1 Main menu Open and close files, the Tracks and Tools panels, Settings and Help
2 Quick display options Switch plot elements on or off; sort, hide and link reads
3 Region box Shows the locus in view. Click it, type a locus or feature name and press Enter to go there
4 Region buttons + adds a copy of the region as a new column; x closes the region
5 Scale bar and reference Drag along the scale bar to zoom to a selection. Bases are drawn when zoomed in
6 Coverage Read depth; the number on the left is the maximum. Click for per-base counts
7 Alignments One row of reads per level. Click a read for its details
8 Scrollbar Scroll through the read rows when they do not all fit
9 Tracks Annotation tracks. Click a feature for its details; drag the line above to resize
10 Ideogram Position on the chromosome. Click the chromosome name to pick another
11 Command bar Shows the position under the pointer; press / to type a command

File-name labels (for example demo1.bam) can be clicked to rename them.

Moving around

  • Drag left or right to pan; scroll to zoom at the pointer
  • Drag on the scale bar (5) to zoom to the selected interval
  • Type a locus (chr1:1-20000) or a feature name in the region box (3)
  • Arrow keys pan and zoom — see Hotkeys

Add regions with the + button (4) to view several loci side-by-side. Several alignment files stack vertically.

Drag the line between two regions to make one column wider. Drag the line between two alignment files to make one pane taller. The data keeps its scale: a wider column shows more bases around the same centre, and a taller pane shows more rows of reads at the same height. Double-click a line to make the sizes equal again. The region-width and bam-height commands set them exactly.

Two regions side by side

The button at the top-left (1).

The main menu

Item Purpose
Open file Local file opens a file browser; Online file browses online genomes, data catalogues and UCSC tables
Close file Choose loaded files to close
Undo, Redo Undo the last change, or put it back
Tracks The track manager: reorder, resize and close alignments and tracks
Variants The Variants panel — shown once a variant file is open for review
Tools The Tools panel: count, filter, find, markers, save and sort
Command bar Show or hide the command bar
Output Text output from tools and commands
Settings The settings dialog
Help Help and the hotkey list

Files can also be dropped onto the window.

The file browser

Open file → Local file opens GW’s file browser.

  • Shortcuts along the top jump to Home, Desktop, Documents and the folder GW downloads to. The path buttons below them go to any parent folder; # lets you type a path
  • Folders are marked with a folder icon. Double-click a folder to enter it, or a file to open it. Ctrl-click and Shift-click select several files
  • Only the file types GW recognises are listed, including two-part extensions such as .vcf.gz and .bed.gz. Tick All files to list everything, or pick a single type from the list beside it
  • Files and folders whose name starts with a dot are hidden; tick Hidden files to show them
  • A path or URL can be typed in the box at the bottom

If you open a file whose name GW does not recognise, it asks what kind of file it is — alignments, VCF, BCF, BED, GFF3, GTF, bigWig, bigBed, PAF or a reference FASTA — and reads it as that type for the rest of the session.

Quick display options

The second button (2) holds switches for what is drawn.

The display options menu

  • Tick boxes — alignments, coverage, indels, mismatches, edges, soft-clips, base modifications, the cursor line, template-length y-axis, expanded tracks, log2 coverage and amino-acid translation
  • Sort — group reads by strand, haplotype, pair orientation, first-in-pair strand, read order, or the supplementary, duplicate or split-read status
  • Hide — duplicates, secondary or supplementary reads, MAPQ 0 reads; Clear filters removes them. Alignment files and tracks are listed below: ticked ones are hidden
  • Link — draw lines between reads of a structural variant, or all read pairs
  • Refresh — reset the view, including filters

Tools panel

Main menu → Tools. Each section opens to a small form. The D button docks the panel to the side of the window.

The Tools panel

Section Purpose
Count Count reads in view, optionally matching an expression; copy the table as TSV
Filter Build and apply read filters
Find read Highlight reads by name
Introns Toggle the splice-junction track
Markers & ROI Add, visit and clear markers and regions of interest
Save Save a PNG, SVG or PDF image, the visible alignments (BAM/SAM), or the session
Sort Group reads (strand, haplotype, pair orientation and more) and sort by the base at a position

Tracks panel

Main menu → Tracks lists every loaded file. Move files up or down, set panel heights, show a BAM header, switch on the intron track, hide a file with the eye button, or close it.

The track manager

Popups

Click a read to open its popup: SAM fields, tags, and the sequence around the clicked base. The buttons in the title bar go to the mate, add the mate as a new region, find the read’s other alignments, or copy the record as SAM. Popups can be moved and stay open while you browse.

Read popup with the sequence around the clicked base

Click the coverage for per-base counts, or a track feature for its fields.

Coverage popup

Command bar

The command bar (11) runs along the bottom of the window. Press / or click it to type; a list of every command appears and narrows as you type (ticks mark switches that are on). Hide the bar from Main menu → Command bar; output appears in Main menu → Output.

The command bar with its command list

↑ / ↓ step through command history. See Commands for the full list.

Choosing a reference genome

When GW starts without a reference, a Reference genome chooser opens: pick a configured or online genome, filter the list, or open a local FASTA.

If you have used GW before, a Previous session… button sits next to Online genomes. It shows the genome, files and region of your last session, and Open reopens them. GW saves the session when it closes, unless nothing was open, so closing the chooser without choosing keeps the previous session for next time. A session restores the view you left: the tiled page or the variant open in the alignment view, the selected variant file, hidden files and tracks, and track heights you set by dragging or with track-height.

The reference genome chooser

Starting with gw --wait opens an empty window with no chooser, for when GW is driven by another program.


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