-
Notifications
You must be signed in to change notification settings - Fork 0
/
parasuite.h
52 lines (41 loc) · 1.3 KB
/
parasuite.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* parasuite.h
*
* Created on: 20.08.2014
* Author: akloetgen
*/
#ifndef PARASUITE_H_
#define PARASUITE_H_
#include "bwt.h"
#include "bwtaln.h"
typedef struct { // recursion stack
u_int32_t info; // score<<21 | i
u_int32_t n_mm:8, n_gapo:8, n_gape:8, state:2, n_seed_mm:6;
u_int32_t n_ins:16, n_del:16;
int last_diff_pos;
double ep_p_val;
bwtint_t k, l; // (k,l) is the SA region of [i,n-1]
} gap_entry_t_parasuite;
typedef struct {
int n_entries, m_entries;
gap_entry_t_parasuite *stack;
} gap_stack1_t_parasuite;
typedef struct {
int n_stacks, n_entries;
int best;
gap_stack1_t_parasuite *stacks;
} gap_stack_t_parasuite;
#ifdef __cplusplus
extern "C" {
#endif
gap_stack_t_parasuite *gap_init_stack2_parasuite(int max_score);
gap_stack_t_parasuite *gap_init_stack_parasuite(int max_mm, int max_gapo, int max_gape, const gap_opt_t *opt);
void gap_destroy_stack_parasuite(gap_stack_t_parasuite *stack);
bwt_aln1_t *bwt_match_gap_parasuite(bwt_t *const bwt, int len, const ubyte_t *seq, bwt_width_t *w,
bwt_width_t *seed_w, const gap_opt_t *opt, int *_n_aln, gap_stack_t_parasuite *stack);
// DELETE????
void bwa_aln2seq_ep(int n_aln, const bwt_aln1_t *aln, bwa_seq_t *s);
#ifdef __cplusplus
}
#endif
#endif /* BWTGAPEP_H_ */