-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathsearch_binary_bkgrnd.h
More file actions
executable file
·48 lines (37 loc) · 992 Bytes
/
search_binary_bkgrnd.h
File metadata and controls
executable file
·48 lines (37 loc) · 992 Bytes
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
//
// search_binary_bkgrnd.h
// VVP_C
//
// Created by steven on 8/11/15.
// Copyright (c) 2015 yandell lab. All rights reserved.
//
#ifndef __VVP_C__search_binary_bkgrnd__
#define __VVP_C__search_binary_bkgrnd__
#include "vvp_headers.h"
struct chr_offsets {
char chr[3];
//char * chr;
uint64_t byte_start;
uint64_t byte_end;
int n_entries;
UT_hash_handle hh;
};
struct var_info {
char var_type;
int length;
int nhet;
int nhom;
int nhemi;
int nocall;
uint64_t bit_offset;
};
struct m_var_info {
struct var_info ** vi;
int nv;
};
unsigned char * load_bin_db(sds file_prefix, int * n_background);
unsigned char * load_bit_db(sds file_prefix);
struct chr_offsets * load_offsets(sds file_prefix);
struct m_var_info * search_binary_bkgrnd(char * chr, size_t pos, unsigned char * mm_bin, struct chr_offsets * chro);
void destroy_chr_offsets(struct chr_offsets * chro);
#endif /* defined(__VVP_C__search_binary_bkgrnd__) */