Skip to content
Ryan Wick edited this page Sep 2, 2015 · 27 revisions

Installation

Go to either the Bandage website or the GitHub releases page to download pre-built binaries for Mac, Windows or Linux. The Mac and Windows versions should come with all necessary libraries included.

The Linux version is available in two flavours: dynamically-linked, which does not contain the graphical code, and statically-linked, which does. The dynamically-linked version is preferable, as it will use native GUI components. It may work immediately on modern Linux distributions, or it may be necessary to install the Qt5 library. The statically-linked version of Bandage has fewer dependencies, but uses non-native GUI components.

It is also possible to build Bandage from source – the instructions are in the Bandage readme.

In-application help

Many items in Bandage have a help icon next to them: help text icon. Click these icons to read a description of that part of Bandage.

Load a graph

Before you can do anything else in Bandage, you must load an assembly graph. Do this by choosing 'Load graph' from the 'File' menu. If you need a graph to examine, a small sample graph is included in the Bandage binary zip files. You can also download a couple of other graphs here:

Small graphs should load quickly, though it may take some time for very large assembly graphs to load.

Draw the graph

After the graph is loaded, you can click the 'Draw graph' button to draw the graph to the screen. This step performs the graph layout, and the time it takes depends on the size and complexity of the graph.

For smaller graphs, such as a bacterial genome, drawing the entire graph is usually feasible. However, for a larger graph, such as a metagenome or eukaryote assembly, it may be necessary to reduce the graph scope before drawing the graph.

Controls

Note that on a Mac, the Command key is used instead of the Ctrl key in the below instructions.

Selection
  • Click on any node or edge to select it.
  • Holding Ctrl while clicking on nodes or edges adds them to the selection.
  • Click and drag to select large numbers of nodes and edges.
Moving nodes
  • Left click and drag on any node to move it. For short nodes, this will move the entire node. For long nodes, this will move the region of the node near the mouse cursor.
  • Right click and drag on any node to move it one piece at a time. This is useful for fine tuning the shape of a graph or for rotating short nodes.
  • Selected nodes are moved in their entirety when dragged. If multiple nodes are selected, they will all be moved together when dragged.
Mouse navigation
  • Ctrl+mouse wheel will zoom the view in to and out from the location of your mouse cursor.
  • Ctrl+click and drag with the left mouse button will pan the view.
  • Ctrl+click and drag with the right mouse button will rotate the view.
Keyboard navigation controls
  • It is first necessary to click in the viewport (or use tab until it is selected) so it will receive keyboard input.
  • Plus and minus keys will zoom in and out.
  • Arrow keys will pan the viewport horizontally and vertically.
  • Shift+plus and shift+minus will rotate the view clockwise and anti-clockwise.

Assembly tips

The structure of the graph is highly dependant on the k-mer size used for assembly. Small k-mers result in shorter contigs but with lots of connections, while large k-mers can result in longer contigs but with fewer connections.

If your graph consists of many separate disconnected subgraphs (i.e. there are many small groups of contigs that have no connections to the rest of the graph), then your k-mer size may be too large. Alternatively, if your graph is connected (i.e. all contigs are tied together in a single graph structure) but is very dense and tangled, then your k-mer size may be too small.

When assembling 100 bp reads in Velvet, a k-mer of 51 would be a good starting point, and then adjust up or down as needed. SPAdes conducts assembly multiple times using different k-mers, so you can look at the FASTG files for each assembly (in folders named like K21, K33, etc.) to find the best graph for viewing in Bandage.