Debian Codegraph @

hmmer/src/cachedb.h

raw symbols SCIP
1 #ifndef P7_CACHEDB_INCLUDED
2 #define P7_CACHEDB_INCLUDED
3
4 typedef struct {
5 char *name; /* name; ("\0" if no name) */
6 ESL_DSQ *dsq; /* digitized sequence [1..n] */
7 int64_t n; /* length of dsq */
8 int64_t idx; /* ctr for this seq */
9 uint64_t db_key; /* flag for included databases */
10 char *desc; /* description */
11 } HMMER_SEQ;
12
13 typedef struct {
14 uint32_t count; /* number of entries */
15 uint32_t K; /* original number of entries */
16 HMMER_SEQ **list; /* list of sequences [0 .. count-1] */
17 } SEQ_DB;
18
19 typedef struct {
20 char *name; /* name of the seq database */
21 char *id; /* unique identifier string */
22 uint32_t db_cnt; /* number of sub databases */
23 SEQ_DB *db; /* list of databases [0 .. db_cnt-1] */
24
25 ESL_ALPHABET *abc; /* alphabet for database */
26
27 uint32_t count; /* total number of sequences */
28 HMMER_SEQ *list; /* complete list of sequences (count) */
29 void *residue_mem; /* memory holding the residues */
30 char *header_mem; /* memory holding the header strings */
31
32 uint64_t res_size; /* size of residue memory allocation */
33 uint64_t hdr_size; /* size of header memory allocation */
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 /*P7_CACHEDB_INCLUDED*/
42