|
NVBIO
|
#include <zlib.h>#include <ctype.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <fcntl.h>#include <errno.h>#include <sys/stat.h>#include "htslib/bgzf.h"#include "htslib/hts.h"#include "cram/cram.h"#include "htslib/hfile.h"#include "version.h"#include "htslib/kseq.h"#include "htslib/khash.h"#include "htslib/ksort.h"Go to the source code of this file.
Classes | |
| struct | bins_t |
| struct | __hts_idx_t |
Macros | |
| #define | KS_BGZF 1 |
| #define | HTS_MIN_MARKER_DIST 0x10000 |
| #define | META_BIN(idx) ((idx)->n_bins + 1) |
| #define | pair64_lt(a, b) ((a).u < (b).u) |
Functions | |
| const char * | hts_version () |
| htsFile * | hts_open (const char *fn, const char *mode) |
| int | hts_close (htsFile *fp) |
| int | hts_set_threads (htsFile *fp, int n) |
| int | hts_set_fai_filename (htsFile *fp, const char *fn_aux) |
| BGZF * | hts_get_bgzfp (htsFile *fp) |
| int | hts_useek (htsFile *fp, long uoffset, int where) |
| long | hts_utell (htsFile *fp) |
| int | hts_getline (htsFile *fp, int delimiter, kstring_t *str) |
| char ** | hts_readlist (const char *string, int is_file, int *_n) |
| char ** | hts_readlines (const char *fn, int *_n) |
| int | hts_file_type (const char *fname) |
| typedef | khash_t (bin) |
| hts_idx_t * | hts_idx_init (int n, int fmt, uint64_t offset0, int min_shift, int n_lvls) |
| void | hts_idx_finish (hts_idx_t *idx, uint64_t final_offset) |
| int | hts_idx_push (hts_idx_t *idx, int tid, int beg, int end, uint64_t offset, int is_mapped) |
| void | hts_idx_destroy (hts_idx_t *idx) |
| void | hts_idx_save (const hts_idx_t *idx, const char *fn, int fmt) |
| hts_idx_t * | hts_idx_load_local (const char *fn, int fmt) |
| void | hts_idx_set_meta (hts_idx_t *idx, int l_meta, uint8_t *meta, int is_copy) |
| uint8_t * | hts_idx_get_meta (hts_idx_t *idx, int *l_meta) |
| const char ** | hts_idx_seqnames (const hts_idx_t *idx, int *n, hts_id2name_f getid, void *hdr) |
| int | hts_idx_get_stat (const hts_idx_t *idx, int tid, uint64_t *mapped, uint64_t *unmapped) |
| uint64_t | hts_idx_get_n_no_coor (const hts_idx_t *idx) |
| hts_itr_t * | hts_itr_query (const hts_idx_t *idx, int tid, int beg, int end, hts_readrec_func *readrec) |
| void | hts_itr_destroy (hts_itr_t *iter) |
| const char * | hts_parse_reg (const char *s, int *beg, int *end) |
| hts_itr_t * | hts_itr_querys (const hts_idx_t *idx, const char *reg, hts_name2id_f getid, void *hdr, hts_itr_query_func *itr_query, hts_readrec_func *readrec) |
| int | hts_itr_next (BGZF *fp, hts_itr_t *iter, void *r, void *data) |
| char * | hts_idx_getfn (const char *fn, const char *ext) |
| hts_idx_t * | hts_idx_load (const char *fn, int fmt) |
Variables | |
| int | hts_verbose = 3 |
| const unsigned char | seq_nt16_table [256] |
| const char | seq_nt16_str [] = "=ACMGRSVTWYHKDBN" |
| lidx_t | |
| int hts_close | ( | htsFile * | fp) |
| const char** hts_idx_seqnames | ( | const hts_idx_t * | idx, |
| int * | n, | ||
| hts_id2name_f | getid, | ||
| void * | hdr | ||
| ) |
| hts_itr_t* hts_itr_query | ( | const hts_idx_t * | idx, |
| int | tid, | ||
| int | beg, | ||
| int | end, | ||
| hts_readrec_func * | readrec | ||
| ) |
| hts_itr_t* hts_itr_querys | ( | const hts_idx_t * | idx, |
| const char * | reg, | ||
| hts_name2id_f | getid, | ||
| void * | hdr, | ||
| hts_itr_query_func * | itr_query, | ||
| hts_readrec_func * | readrec | ||
| ) |
| char** hts_readlist | ( | const char * | fn, |
| int | is_file, | ||
| int * | _n | ||
| ) |
| int hts_set_threads | ( | htsFile * | fp, |
| int | n | ||
| ) |
| const char* hts_version | ( | void | ) |
| const char seq_nt16_str[] = "=ACMGRSVTWYHKDBN" |
| const unsigned char seq_nt16_table[256] |
Table for converting a nucleotide character to the 4-bit encoding.
1.8.4