NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions
tabix.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include "htslib/tbx.h"
#include "htslib/sam.h"
#include "htslib/vcf.h"
#include "htslib/kseq.h"
#include "htslib/bgzf.h"
#include "htslib/hts.h"

Go to the source code of this file.

Classes

struct  args_t
 

Macros

#define IS_GFF   (1<<0)
 
#define IS_BED   (1<<1)
 
#define IS_SAM   (1<<2)
 
#define IS_VCF   (1<<3)
 
#define IS_BCF   (1<<4)
 
#define IS_BAM   (1<<5)
 
#define IS_TXT   (IS_GFF|IS_BED|IS_SAM|IS_VCF)
 
#define PRINT_HEADER   1
 
#define HEADER_ONLY   2
 

Functions

int file_type (const char *fname)
 
int reheader_file (const char *fname, const char *header, int ftype, tbx_conf_t *conf)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

#define HEADER_ONLY   2

Definition at line 54 of file tabix.c.

#define IS_BAM   (1<<5)

Definition at line 37 of file tabix.c.

#define IS_BCF   (1<<4)

Definition at line 36 of file tabix.c.

#define IS_BED   (1<<1)

Definition at line 33 of file tabix.c.

#define IS_GFF   (1<<0)

Definition at line 32 of file tabix.c.

#define IS_SAM   (1<<2)

Definition at line 34 of file tabix.c.

#define IS_TXT   (IS_GFF|IS_BED|IS_SAM|IS_VCF)

Definition at line 38 of file tabix.c.

#define IS_VCF   (1<<3)

Definition at line 35 of file tabix.c.

#define PRINT_HEADER   1

Definition at line 53 of file tabix.c.

Function Documentation

int file_type ( const char *  fname)

Definition at line 40 of file tabix.c.

int main ( int  argc,
char *  argv[] 
)

Definition at line 255 of file tabix.c.

int reheader_file ( const char *  fname,
const char *  header,
int  ftype,
tbx_conf_t conf 
)

Definition at line 159 of file tabix.c.