Skip to content

Latest commit

 

History

History
106 lines (70 loc) · 8.34 KB

README.md

File metadata and controls

106 lines (70 loc) · 8.34 KB

BandageBandage

Table of Contents

Intro

Bandage is a GUI program that allows users to interact with the assembly graphs made by de novo assemblers such as Velvet, SPAdes, MEGAHIT and others.

De novo assembly graphs contain not only assembled contigs but also the connections between those contigs, which were previously not easily accessible. Bandage visualises assembly graphs, with connections, using graph layout algorithms. Nodes in the drawn graph, which represent contigs, can be automatically labelled with their ID, length or depth. Users can interact with the graph by moving, labelling and colouring nodes. Sequence information can also be extracted directly from the graph viewer. By displaying connections between contigs, Bandage opens up new possibilities for analysing and improving de novo assemblies that are not possible by looking at contigs alone.

More information and download links are on the Bandage website: rrwick.github.io/Bandage

Help

Bandage documentation is available on the Bandage GitHub wiki.

Bandage help tips are also built into the program. Throughout the UI, you will find these icons next to controls and settings: help text icon. Click them to see a description of that element of Bandage.

Pre-built binaries

Compiled 64-bit binaries for Ubuntu Linux, CentOS, OS X and Windows are available in the GitHub 'Releases' section and from the Bandage website.

If you download and run the Mac binary, you may receive a warning stating that Bandage 'can't be opened because it is from an unidentified developer.' Right click on the file and select 'Open' to override this warning.

The Linux binaries comes in two varieties: dynamically-linked and statically-linked. The dynamically-linked binary is preferable, but it has more dependencies (like Qt 5). If you experience problems with the dynamically-linked binary, please try the statically-linked version instead.

Building from source

If the compiled binaries do not work for you, the instructions below should help you build Bandage on most common OSs. If you are having difficulties building Bandage for your OS, feel free to contact me (Ryan) at [email protected] and I'll do my best to help you out!

Ubuntu

The following instructions successfully build Bandage on a fresh installation of Ubuntu 14.04:

  1. Ensure the package lists are up-to-date: sudo apt-get update
  2. Install prerequisite packages: sudo apt-get install build-essential git qtbase5-dev libqt5svg5-dev
  3. Download the Bandage code from GitHub: git clone https://github.com/rrwick/Bandage.git
  4. Open a terminal in the Bandage directory.
  5. Set the environment variable to specify that you will be using Qt 5, not Qt 4: export QT_SELECT=5
  6. Run qmake to generate a Makefile: qmake
  7. Build the program: make
  8. Bandage should now be an executable file.
  9. Optionally, copy the program into /usr/local/bin: sudo make install. The Bandage build directory can then be deleted.

Other Linux distributions

If your Linux distribution is sufficiently similar to Ubuntu (e.g. Linux Mint), I recommend trying the Ubuntu build instructions above. Otherwise, try the 'Using Qt Creator' instructions below.

Mac

The following instructions successfully build Bandage on OS X 10.8 and later:

  1. Install Xcode, along with the Xcode Command Line Tools. If you can run the clang command from the terminal, you should be good to continue.
  2. Install Qt 5. This is most easily done using Homebrew: brew.sh. Install the Qt 5 package with this command: brew install qt5.
  3. Download the Bandage code from GitHub: git clone https://github.com/rrwick/Bandage.git
  4. Open a terminal in the Bandage directory.
  5. Run qmake to generate a Makefile. The location of the qmake command may vary, depending on how Qt was installed. If you used Homebrew, it should be here: /usr/local/opt/qt5/bin/qmake.
  6. Build the program: make
  7. Bandage should now be an application bundle.
  8. Optionally, copy the Bandage application bundle into the 'Applications' folder and delete the Bandage build directory.

Using Qt Creator

For Windows and some Linux distributions, the easiest way to build Bandage from source is by using Qt Creator, the Qt IDE. I successfully used this procedure has been used on Windows and on CentOS 6.7. It should also work for Ubuntu Linux and OS X.

  1. Set up a compiler.
  • For Windows, you can use the Microsoft Visual C++ compiler by installing Visual Studio. Alternatively, you can skip this step and the Qt installation will provide the MinGW compiler.
  • For CentOS, this can be done quickly using the yum package manager: yum install gcc-c++
  • Look here for more information on Qt supported compilers.
  1. Install the Qt SDK: www.qt.io/download-open-source. The disk space required can be reduced by unticking the iOS and Android options in the Qt installer.
  2. Download the Bandage code from GitHub:
  1. Open the Qt Creator program and load the Bandage.pro file which is in the Bandage directory. Since this is the first time the project has been loaded, it will ask you to configure the project. The defaults should be okay, so click 'Configure Project'.
  2. Change to the release build configuration by clicking where it says 'Debug' in the bottom left area of Qt Creator and select 'Release'.
  3. Build and run Bandage by clicking the green arrow in the bottom left area of Qt Creator. Bandage should open when the build has finished.
  4. You will find the executable file in a new folder that begins with 'build-Bandage-Desktop'.

Contributing

New contributors are welcome! If you're interested or have ideas, please contact me (Ryan) at [email protected].

Citation

If you use Bandage in your research, please cite the following publication:

Wick R.R., Schultz M.B., Zobel J. & Holt K.E. (2015). Bandage: interactive visualisation of de novo genome assemblies. Bioinformatics, 31(20), 3350-3352.

Credits

Bandage makes use of the OGDF library for performing graph layout algorithms. My thanks goes out to the OGDF developers for their excellent work!

I also thank Rayan Chikhi and Elmar Pruesse for their contributions to the code.

License

GNU General Public License, version 3