MAINTENANCE OUTAGE: The University Wiki Service will undergo maintenance on September 26th, 2017, from 6 pm to 8 pm. During this 2 hour time period may be unavailable. Users are advised to save content locally that may be needed during this time and to otherwise save all edits as unsaved work may be lost. Please contact the UT Service Desk at 512-475-9400 for any questions.
The University Wiki Service has upgraded the Confluence Server software, from version 5.9.14 to 5.10.8. Please refer to the knowledge base article, KB0015891, for a high level summary of upgrade changes. Thank you!
Skip to end of metadata
Go to start of metadata

BreakDancer-1.1, released under GPLv3, is a Perl/Cpp package that provides genome-wide detection of structural variants from next generation paired-end sequencing reads. It includes two complementary programs.

BreakDancerMax predicts five types of structural variants: insertions, deletions, inversions, inter- and intra-chromosomal translocations from next-generation short paired-end sequencing reads using read pairs that are mapped with unexpected separation distances or orientation.

Installation Notes

Breakdancer requires sudo access due to installing the required perl modules.

Getting Breakdancer

sudo apt-get install subversion
svn co
cd breakdancer

Getting Samtools-0.1.6

tar xjf samtools-0.1.6.tar.bz2
cd samtools-0.1.6

Should you receive an error when making and are on an Ubuntu/Linux system try changing the following line in Makefile:

samtools:lib $(AOBJS)
                $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) $(LIBCURSES) -lz -L. -lbam


samtools:lib $(AOBJS)
                $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) $(LIBCURSES) -L. -lbam -lz

And running 'make' again.

It is now assumed that you are in the breakdancer directory, inside it you've placed a samtools-0.1.6 directory and have compiled the samtools directory

Alter Breakdancer's Makefile

Change the following line in Makefile:

        g++ -g -Wall -O2 -I/Users/kchen/samtools/samtools-0.1.6 BreakDancerMax.cpp AlnParser.cpp Poisson.cpp -o breakdancer-max -lm -lz -L/Users/kchen/samtools/samtools-0.1.6 -lbam


        g++ -g -Wall -O2 -I samtools-0.1.6/ BreakDancerMax.cpp AlnParser.cpp Poisson.cpp -o breakdancer_max -lm -L samtools-0.1.6/ -lbam -lz

Changing both the path of the -I and -L flag and also moving the -lz library flag after -lbam

Congrats! You've, hopefully, installed the CPP portion of Breakdancer. But there is also a Perl script that Breakdancer must run so we need to handle the prerequisites for that.

Prerequisites for

Change the shebang/header in the from:



#!/usr/bin/env perl

Install the required perl modules.

sudo cpan install Math::CDF
sudo cpan install Statistics::Descriptive
sudo cpan install GD::Graph
sudo cpan install GD::Graph::histogram

Running Breakdancer

For sanity just update you PATH environmental variable to include looking into the breakdancer directory for and breakdancer_max.

  • No labels