34 #ifndef ALGO_BLAST_CORE__GREEDY_ALIGN__H
35 #define ALGO_BLAST_CORE__GREEDY_ALIGN__H
47 #define GREEDY_MAX_COST_FRACTION 2
50 #define GREEDY_MAX_COST 1000
134 Int4 match_cost,
Int4 mismatch_cost,
135 Int4* seq1_align_len,
Int4* seq2_align_len,
167 Int4 match_cost,
Int4 mismatch_cost,
168 Int4 in_gap_open,
Int4 in_gap_extend,
169 Int4* seq1_align_len,
Int4* seq2_align_len,
#define NCBI_XBLAST_EXPORT
NULL operations for other cases.
Definitions of structures used for saving traceback information.
struct SGreedySeed SGreedySeed
Structure for locating high-scoring seeds for greedy alignment.
struct SMBSpace SMBSpace
Space structure for greedy alignment algorithm.
struct SGreedyOffset SGreedyOffset
Bookkeeping structure for greedy alignment.
void MBSpaceFree(SMBSpace *sp)
Free the space structure.
Int4 BLAST_AffineGreedyAlign(const Uint1 *seq1, Int4 len1, const Uint1 *seq2, Int4 len2, Boolean reverse, Int4 xdrop_threshold, Int4 match_cost, Int4 mismatch_cost, Int4 in_gap_open, Int4 in_gap_extend, Int4 *seq1_align_len, Int4 *seq2_align_len, SGreedyAlignMem *aux_data, GapPrelimEditBlock *edit_block, Uint1 rem, Boolean *fence_hit, SGreedySeed *seed)
Perform the greedy extension algorithm with affine gap penalties.
Int4 BLAST_GreedyAlign(const Uint1 *seq1, Int4 len1, const Uint1 *seq2, Int4 len2, Boolean reverse, Int4 xdrop_threshold, Int4 match_cost, Int4 mismatch_cost, Int4 *seq1_align_len, Int4 *seq2_align_len, SGreedyAlignMem *aux_data, GapPrelimEditBlock *edit_block, Uint1 rem, Boolean *fence_hit, SGreedySeed *seed)
Perform the greedy extension algorithm with non-affine gap penalties.
SMBSpace * MBSpaceNew(int num_space_arrays)
Allocate a space structure for greedy alignment At least num_space_arrays will be allocated,...
struct SGreedyAlignMem SGreedyAlignMem
All auxiliary memory needed for the greedy extension algorithm.
uint8_t Uint1
1-byte (8-bit) unsigned integer
int32_t Int4
4-byte (32-bit) signed integer
Type and macro definitions from C toolkit that are not defined in C++ toolkit.
Uint1 Boolean
bool replacment for C
Preliminary version of GapEditBlock, used directly by the low- level dynamic programming routines.
All auxiliary memory needed for the greedy extension algorithm.
SGreedyOffset ** last_seq2_off_affine
Like last_seq2_off but for affine searches.
Int4 * max_score
array of maximum scores
SMBSpace * space
local memory pool for SGreedyOffset structs
Int4 max_dist
max distance to search
Int4 * diag_bounds
bounds on ranges of diagonals
Int4 ** last_seq2_off
2-D array of distances
Bookkeeping structure for greedy alignment.
Int4 delete_off
Best offset for a path ending in a deletion.
Int4 insert_off
Best offset for a path ending in an insertion.
Int4 match_off
Best offset for a path ending in a match.
Structure for locating high-scoring seeds for greedy alignment.
Int4 start_q
query offset of start of run of matches
Int4 match_length
length of run of matches
Int4 start_s
subject offset of start of run of matches
Space structure for greedy alignment algorithm.
struct SMBSpace * next
pointer to next structure in list
Int4 space_allocated
number of structures allocated
Int4 space_used
number of structures actually in use
SGreedyOffset * space_array
array of bookkeeping structures