-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathIndex.h
45 lines (35 loc) · 1.13 KB
/
Index.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
/*
Authors:
Haoyu Cheng
*/
#ifndef __HASH_TABLE__
#define __HASH_TABLE__
#include "Schema.h"
typedef struct HashTable
{
long long hv;
int *locs;
} HashTable;
typedef struct
{
unsigned int *locs;
unsigned int* hashTable_order;
} Commpress_HashTable;
unsigned int hashVal(char *seq);
unsigned char *getRefGenome();
int Start_Load_Indexz(char *fileName);
Commpress_HashTable getHashTable();
//下面是一堆函数指针啊
void createIndex(char *fileName, char *indexName);
int Load_Index(int errThreshould, _rg_name_l **_ih_refGenName, bitmapper_bs_iter* msf_refChromeCont, char* indexName);
///void (*finalizeLoadingHashTable)();
///unsigned int *(*getCandidates)(int hv);
int Start_Load_Index(char *fileName);
bitmapper_bs_iter getRefGenomeLength();
bitmapper_bs_iter getRefGenomeLength_2bit();
int hashVal_EN(char *seq, unsigned int *N_site, unsigned int *hash_key);
void add_hashVal(char *seq, unsigned int *N_site, unsigned int *hash_key);
int Load_Methy_Index(int errThreshould, _rg_name_l **msf_ih_refGenName, bitmapper_bs_iter* msf_refChromeCont, char* indexName);
FILE* get_index_file();
#endif