-
Notifications
You must be signed in to change notification settings - Fork 1
/
map.h
62 lines (52 loc) · 1.52 KB
/
map.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
53
54
55
56
57
58
59
60
61
62
#define _GNU_SOURCE
#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "bwt.h"
#ifndef _map_HEADER_
#define _map_HEADER_
typedef struct alnstack_t alnstack_t;
typedef struct aln_t aln_t;
typedef struct align_t align_t;
typedef struct seed_t seed_t;
struct seed_t {
size_t beg;
size_t end;
range_t range;
size_t * sa;
int aligned;
};
struct aln_t {
int score;
size_t refpos;
char * refseq;
size_t read_beg;
size_t read_end;
double qual;
};
struct align_t {
size_t refpos;
size_t span;
int minscore;
seed_t * seed;
};
struct alnstack_t {
size_t pos;
size_t max;
ssize_t seen[50];
aln_t aln[];
};
alnstack_t * mapread (wstack_t *, const char *, const index_t, const int, const size_t, const int);
alnstack_t * remap_with_skip_seeds (wstack_t *, const alnstack_t *, const char *, const index_t, const int, const size_t);
void extend_L1L2 (const char *, const int, const index_t, seed_t *, seed_t *);
seed_t * filter_longest_mem (wstack_t *);
alnstack_t * alnstack_new (size_t max);
void align (align_t , const char*, char *, size_t , int *, alnstack_t **);
alnstack_t * attempt_mask_bypass (wstack_t *, const char *, const index_t);
wstack_t * mem_seeds (const char *, const index_t, const size_t);
wstack_t * skip_seeds (const char *, const index_t, const size_t, const size_t);
#endif