ig-sw

July 14, 2016 ยท View on GitHub

Smith-Waterman alignment for immunoglobulin sequences.

Introduction

This is a C++ implementation of the vdjalign align-fastq command in ighutil. This implementation uses the Smith-Waterman (SW) alignment algorithm, a simple but effective way to align DNA sequences, as in ighutil.

Docker Hub Automated Build

Prerequisites

Running the alignment

Clone the repository and run scons from the ig-sw/src/ig_align/ directory.

To run the sw-alignment, run ./ig-sw with the appropriate arguments in the same directory or add a path to the executable.

Example

./ig-sw -p test_data/ query_file.fasta output_file.sam

Arguments

ig-sw uses the tclap command line interface.

Required
FlagDescription
(none)The path to the query file
(none)The path to the output file
-p --vdj-dirDirectory from which to read germline genes (ending with /)
Optional
FlagDescriptionDefault Value
-l --locusLocus to align reads against (options: IGH, IGK, IGL, DJ)IGH
-m --matchMatch score2
-u --mismatchMismatch score2
-o --gap-openGap opening penalty3
-e --gap-extendGap extension penalty1
-d --max-dropMax drop1000
-s --min-scoreMin score0
-b --bandwidthBandwidth150
-j --threadsNumber of threads1

Workflow

ig_align_main.cpp takes in a DNA sequence in FASTQ format, does alignment, and outputs a file in SAM format.

ig_align_main.cpp calls the ig_align_reads function of ig_align.c which heavily utilizes the klib library.