SW#
All Files Functions Variables Typedefs Macros
Functions
reconstruct.h File Reference

Reconstruction functions header. More...

#include "chain.h"
#include "scorer.h"
#include "thread.h"
Include dependency graph for reconstruct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void nwReconstruct (char **path, int *pathLen, int *outScore, Chain *query, int queryFrontGap, int queryBackGap, Chain *target, int targetFrontGap, int targetBackGap, Scorer *scorer, int score, int *cards, int cardsLen, Thread *thread)
 Needleman-Wunsch reconstruction implementation. More...
 

Detailed Description

Reconstruction functions header.

Function Documentation

void nwReconstruct ( char **  path,
int *  pathLen,
int *  outScore,
Chain query,
int  queryFrontGap,
int  queryBackGap,
Chain target,
int  targetFrontGap,
int  targetBackGap,
Scorer scorer,
int  score,
int *  cards,
int  cardsLen,
Thread thread 
)

Needleman-Wunsch reconstruction implementation.

If the score is provided function uses Ukkonen's banded optimization. Function also utilizes Hirschberg's algorithm and therefore is linear in memory. QueryFrontGap and targetFrontGap arguments can't both be not equal to 0. QueryBackGap and targetBackGap arguments can't both be not equal to 0. For path format see Alignment. If needed function utilzes provided CUDA cards.

Parameters
pathoutput path
pathLenoutput path length
outScoreoutput score
queryquery chain
queryFrontGapif not equal to 0, force that path starts in MOVE_UP
queryBackGapif not equal to 0, force that path ends in MOVE_UP
targettarget chain
targetFrontGapif not equal to 0, force that path starts in MOVE_LEFT
targetBackGapif not equal to 0, force that path ends in MOVE_LEFT
scorerscorer object used for alignment
scoreinput alignment score if known, otherwise NO_SCORE
cardscuda cards index array
cardsLencuda cards index array length
threadthread on which the function will be executed, if NULL function is executed on the current thread