| 1 |
#ifndef P7_CACHEDB_INCLUDED |
| 2 |
#define P7_CACHEDB_INCLUDED |
| 3 |
|
| 4 |
typedef struct { |
| 5 |
char *name; |
| 6 |
ESL_DSQ *dsq; |
| 7 |
int64_t n; |
| 8 |
int64_t idx; |
| 9 |
uint64_t db_key; |
| 10 |
char *desc; |
| 11 |
} HMMER_SEQ; |
| 12 |
|
| 13 |
typedef struct { |
| 14 |
uint32_t count; |
| 15 |
uint32_t K; |
| 16 |
HMMER_SEQ **list; |
| 17 |
} SEQ_DB; |
| 18 |
|
| 19 |
typedef struct { |
| 20 |
char *name; |
| 21 |
char *id; |
| 22 |
uint32_t db_cnt; |
| 23 |
SEQ_DB *db; |
| 24 |
|
| 25 |
ESL_ALPHABET *abc; |
| 26 |
|
| 27 |
uint32_t count; |
| 28 |
HMMER_SEQ *list; |
| 29 |
void *residue_mem; |
| 30 |
char *header_mem; |
| 31 |
|
| 32 |
uint64_t res_size; |
| 33 |
uint64_t hdr_size; |
| 34 |
} P7_SEQCACHE; |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
extern int p7_seqcache_Open(char *seqfile, P7_SEQCACHE **ret_cache, char *errbuf); |
| 39 |
extern void p7_seqcache_Close(P7_SEQCACHE *cache); |
| 40 |
|
| 41 |
#endif |
| 42 |
|