59 #include "io_lib_config.h"
71 #define KS_INITIALIZER {0,0,0}
74 #define KS_INIT(ks) ((ks)->l = 0, (ks)->m = 0, (ks)->s = NULL)
77 #define KS_FREE(ks) do { if ((ks)->s) free((ks)->s); } while(0)
334 char *ID_key,
char *ID_value);
349 char *ID_key,
char *ID_value);
#define KHASH_MAP_INIT_INT(name, khval_t)
Definition: khash.h:583
struct SAM_hdr_item_s * next
Definition: sam_header.h:135
SAM_hdr_tag * tag
Definition: sam_header.h:153
struct SAM_hdr_tag_s * next
Definition: sam_header.h:114
int npg
Number of @PG lines.
Definition: sam_header.h:201
SAM_hdr_type * ty
Definition: sam_header.h:161
uint32_t len
Definition: sam_header.h:144
SAM_SQ * ref
Array of parsed @SQ lines.
Definition: sam_header.h:192
SAM_hdr_tag * tag
Definition: sam_header.h:162
int npg_end
Number of terminating @PG lines.
Definition: sam_header.h:202
Definition: string_alloc.h:52
char * name
Definition: sam_header.h:151
int name_len
Definition: sam_header.h:163
int npg_end_alloc
Size of pg_end field.
Definition: sam_header.h:203
Definition: sam_header.h:183
SAM_hdr_tag * tag
Definition: sam_header.h:146
Definition: sam_header.h:113
#define KHASH_MAP_INIT_STR(name, khval_t)
Definition: khash.h:614
char * str
Definition: sam_header.h:115
int prev_id
Definition: sam_header.h:165
int nrg
Number of @RG lines.
Definition: sam_header.h:196
SAM_PG * pg
Array of parsed @PG lines.
Definition: sam_header.h:204
Definition: sam_header.h:159
Definition: sam_header.h:150
pool_alloc_t * type_pool
Pool of SAM_hdr_type structs.
Definition: sam_header.h:187
kstring_t text
concatenated text, indexed by SAM_hdr_tag
Definition: sam_header.h:184
SAM_hdr_tag * tag
Definition: sam_header.h:137
SAM_hdr_type * ty
Definition: sam_header.h:152
pool_alloc_t * tag_pool
Pool of SAM_hdr_tag structs.
Definition: sam_header.h:188
int len
Definition: sam_header.h:116
char * name
Definition: sam_header.h:160
Definition: sam_header.h:142
#define khash_t(name)
Definition: khash.h:422
Definition: sam_header.h:134
int order
Definition: sam_header.h:138
SAM_RG * rg
Array of parsed @RG lines.
Definition: sam_header.h:197
char * name
Definition: sam_header.h:143
int * pg_end
@PG chain termination IDs
Definition: sam_header.h:206
int name_len
Definition: sam_header.h:154
int id
Definition: sam_header.h:164
Definition: pooled_alloc.h:43
struct SAM_hdr_item_s * prev
Definition: sam_header.h:136
int id
Definition: sam_header.h:155
string_alloc_t * str_pool
Pool of SAM_hdr_tag->str strings.
Definition: sam_header.h:186
SAM_hdr_type * ty
Definition: sam_header.h:145
int nref
Number of @SQ lines.
Definition: sam_header.h:191