Skip to content

armintoepfer/haploclique

master
Switch branches/tags
Code
This branch is 115 commits behind cbg-ethz:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 

HaploClique

***

Dr. Armin Töpfer, armintoepfer.com

*** We present a novel method to reconstruct the structure of a viral quasispecies from NGS data. Our approach can be used to: - reconstruct local error-corrected haplotypes and estimate their abundance - assemble full-length viral haplotypes - detect large deletions and insertions from paired-end data.

######Reference implementation of: Armin Töpfer, Tobias Marschall, Rowena A. Bull, Fabio Luciani, Alexander Schönhuth, and Niko Beerenwinkel.
Viral quasispecies assembly via maximal clique finding
PLOS Computational Biology, 2014.

######Overview

INSTALL

######Dependencies Download ConsensusFixer and InDelFixer and export its parent directory as $SAF enviroment variable.
HaploClique depends on boost, gnu parallel, and cmake. You can install them with a package manager of your choice.

######Ubuntu:

apt-get install libncurses5-dev cmake libboost-all-dev git build-essential zlib1g-dev parallel

######OSX 10.8.x: Please XCode and its command line tools, and with macports:

port install cmake boost parallel

######Windows: HaploClique has not been tested on Windows. The scripts depend on the bash shell, awk, and sed.

######Installation routine: If you want to install HaploClique to a non-standard directory, change it with cmake -DCMAKE_INSTALL_PREFIX=<prefix-path> ..

git clone https://github.com/armintoepfer/haploclique
cd haploclique
sh install-additional-software.sh
mkdir build
cd build
cmake ..
make
make install

USAGE

Please use HaploClique in an empty directory.
Please create an index for your alignment samtools index alignment.bam

Error correction

For error correction, HaploClique takes a BAM alignment and the reference as input:
haploclique-assembly -r ../reference.fasta -i ../alignment.bam

######All command-line options:

USAGE:     haploclique-assembly options...

OPTIONS:
   -h      Show this message
   -H      Show extended help
   -r      Path to the reference genome (required)
   -i      Path to the alignment in BAM format (required)

#####Quasispecies assembly of long-range haplotypes For quasispecies assembly, HaploClique has to be executed iteratively. Currently, this procedure cannot be automated to handle any input alignment. Manual assembly can be performed by calling the same command until number of haplotypes has converged:

haploclique-assembly -r ../reference.fasta -i ../alignment.bam
haploclique-assembly -r ../reference.fasta -i ../alignment.bam
haploclique-assembly -r ../reference.fasta -i ../alignment.bam

#####Structural variation For the prediction of large insertion and deletions, please only use alignments in which all reads are paired-end and they are not allowed to overlap:
haploclique-assembly -r ../reference.fasta -i ../alignment.bam -l
The detected indels are saved as indels.vcf.

###Ultra-deep next-generation sequencing data workflow

HaploClique workflow

Contributions

Armin Töpfer
Tobias Marschall

###Contact

Armin Töpfer
armin.toepfer (at) gmail.com
http://www.armintoepfer.com

About

Viral quasispecies assembly via maximal clique finding. A method to reconstruct viral haplotypes and detect large insertions and deletions from NGS data.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 90.4%
  • Python 4.3%
  • Shell 3.9%
  • CMake 1.1%
  • C 0.3%