Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
tbx.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdio.h>
#include <assert.h>
#include "htslib/tbx.h"
#include "htslib/bgzf.h"
#include "htslib/khash.h"

Classes

struct  tbx_intv_t
 

Functions

int tbx_name2id (tbx_t *tbx, const char *ss)
 
int tbx_parse1 (const tbx_conf_t *conf, int len, char *line, tbx_intv_t *intv)
 
int tbx_readrec (BGZF *fp, void *tbxv, void *sv, int *tid, int *beg, int *end)
 
void tbx_set_meta (tbx_t *tbx)
 
tbx_ttbx_index (BGZF *fp, int min_shift, const tbx_conf_t *conf)
 
void tbx_destroy (tbx_t *tbx)
 
int tbx_index_build (const char *fn, int min_shift, const tbx_conf_t *conf)
 
tbx_ttbx_index_load (const char *fn)
 
const char ** tbx_seqnames (tbx_t *tbx, int *n)
 

Variables

tbx_conf_t tbx_conf_gff = { 0, 1, 4, 5, '#', 0 }
 
tbx_conf_t tbx_conf_bed = { TBX_UCSC, 1, 2, 3, '#', 0 }
 
tbx_conf_t tbx_conf_psltbl = { TBX_UCSC, 15, 17, 18, '#', 0 }
 
tbx_conf_t tbx_conf_sam = { TBX_SAM, 3, 4, 0, '@', 0 }
 
tbx_conf_t tbx_conf_vcf = { TBX_VCF, 1, 2, 0, '#', 0 }
 

Function Documentation

void tbx_destroy ( tbx_t tbx)
tbx_t* tbx_index ( BGZF fp,
int  min_shift,
const tbx_conf_t conf 
)
int tbx_index_build ( const char *  fn,
int  min_shift,
const tbx_conf_t conf 
)
tbx_t* tbx_index_load ( const char *  fn)
int tbx_name2id ( tbx_t tbx,
const char *  ss 
)
int tbx_parse1 ( const tbx_conf_t conf,
int  len,
char *  line,
tbx_intv_t intv 
)
int tbx_readrec ( BGZF fp,
void *  tbxv,
void *  sv,
int *  tid,
int *  beg,
int *  end 
)
const char** tbx_seqnames ( tbx_t tbx,
int *  n 
)
void tbx_set_meta ( tbx_t tbx)

Variable Documentation

tbx_conf_t tbx_conf_bed = { TBX_UCSC, 1, 2, 3, '#', 0 }
tbx_conf_t tbx_conf_gff = { 0, 1, 4, 5, '#', 0 }
tbx_conf_t tbx_conf_psltbl = { TBX_UCSC, 15, 17, 18, '#', 0 }
tbx_conf_t tbx_conf_sam = { TBX_SAM, 3, 4, 0, '@', 0 }
tbx_conf_t tbx_conf_vcf = { TBX_VCF, 1, 2, 0, '#', 0 }