-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathutils.h
executable file
·52 lines (38 loc) · 1.01 KB
/
utils.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
#include <zlib.h>
#include <stdio.h>
#include <stdlib.h>
#include "kstring.h"
#include "khash.h"
#include "kseq.h"
#include "ksort.h"
typedef struct{
char *fs;
char *rs;
int fl;
int rl;
char *fn;
char *rn;
FILE *fh;
FILE *rh;
} Map;
KSEQ_INIT(gzFile, gzread)
KHASH_MAP_INIT_INT(int64, int64_t *)
void kh_int64_destroy(khash_t(int64) *h);
KHASH_MAP_INIT_STR(int, int)
void kh_int_destroy(khash_t(int) *h);
KHASH_MAP_INIT_INT(char, char*)
void kh_char_destroy(khash_t(char) *h);
KHASH_MAP_INIT_STR(double, double)
void kh_double_destroy(khash_t(double) *h);
KHASH_MAP_INIT_STR(reg, char *)
void kh_reg_destroy(khash_t(reg) *h);
KHASH_MAP_INIT_STR(reg32, int)
void kh_reg32_destroy(khash_t(reg32) *h);
KHASH_MAP_INIT_STR(kreg, kstring_t)
void kh_kreg_destroy(khash_t(kreg) *h);
KHASH_SET_INIT_STR(set)
void kh_set_destroy(khash_t(set) *h);
void print_kseq(kseq_t *s, FILE *file);
void rev_com(kstring_t *ks);
void rev (kstring_t *ks);
int get_target_column(kstring_t *kt, char *sample );