|
#define | BCF_HL_FLT 0 |
|
#define | BCF_HL_INFO 1 |
|
#define | BCF_HL_FMT 2 |
|
#define | BCF_HL_CTG 3 |
|
#define | BCF_HL_STR 4 |
|
#define | BCF_HL_GEN 5 |
|
#define | BCF_HT_FLAG 0 |
|
#define | BCF_HT_INT 1 |
|
#define | BCF_HT_REAL 2 |
|
#define | BCF_HT_STR 3 |
|
#define | BCF_VL_FIXED 0 |
|
#define | BCF_VL_VAR 1 |
|
#define | BCF_VL_A 2 |
|
#define | BCF_VL_G 3 |
|
#define | BCF_VL_R 4 |
|
#define | BCF_DT_ID 0 |
|
#define | BCF_DT_CTG 1 |
|
#define | BCF_DT_SAMPLE 2 |
|
#define | BCF_BT_NULL 0 |
|
#define | BCF_BT_INT8 1 |
|
#define | BCF_BT_INT16 2 |
|
#define | BCF_BT_INT32 3 |
|
#define | BCF_BT_FLOAT 5 |
|
#define | BCF_BT_CHAR 7 |
|
#define | VCF_REF 0 |
|
#define | VCF_SNP 1 |
|
#define | VCF_MNP 2 |
|
#define | VCF_INDEL 4 |
|
#define | VCF_OTHER 8 |
|
#define | BCF1_DIRTY_ID 1 |
|
#define | BCF1_DIRTY_ALS 2 |
|
#define | BCF1_DIRTY_FLT 4 |
|
#define | BCF1_DIRTY_INF 8 |
|
#define | BCF_ERR_CTG_UNDEF 1 |
|
#define | BCF_ERR_TAG_UNDEF 2 |
|
#define | BCF_ERR_NCOLS 4 |
|
#define | bcf_init1() bcf_init() |
|
#define | bcf_read1(fp, h, v) bcf_read((fp),(h),(v)) |
|
#define | vcf_read1(fp, h, v) vcf_read((fp),(h),(v)) |
|
#define | bcf_write1(fp, h, v) bcf_write((fp),(h),(v)) |
|
#define | vcf_write1(fp, h, v) vcf_write((fp),(h),(v)) |
|
#define | bcf_destroy1(v) bcf_destroy(v) |
|
#define | vcf_parse1(s, h, v) vcf_parse((s),(h),(v)) |
|
#define | bcf_clear1(v) bcf_clear(v) |
|
#define | vcf_format1(h, v, s) vcf_format((h),(v),(s)) |
|
#define | bcf_open(fn, mode) hts_open((fn), (mode)) |
|
#define | vcf_open(fn, mode) hts_open((fn), (mode)) |
|
#define | bcf_close(fp) hts_close(fp) |
|
#define | vcf_close(fp) hts_close(fp) |
|
#define | BCF_UN_STR 1 |
|
#define | BCF_UN_FLT 2 |
|
#define | BCF_UN_INFO 4 |
|
#define | BCF_UN_SHR (BCF_UN_STR|BCF_UN_FLT|BCF_UN_INFO) |
|
#define | BCF_UN_FMT 8 |
|
#define | BCF_UN_IND BCF_UN_FMT |
|
#define | BCF_UN_ALL (BCF_UN_SHR|BCF_UN_FMT) |
|
#define | bcf_hdr_nsamples(hdr) (hdr)->n[BCF_DT_SAMPLE] |
|
#define | bcf_update_info_int32(hdr, line, key, values, n) bcf_update_info((hdr),(line),(key),(values),(n),BCF_HT_INT) |
|
#define | bcf_update_info_float(hdr, line, key, values, n) bcf_update_info((hdr),(line),(key),(values),(n),BCF_HT_REAL) |
|
#define | bcf_update_info_flag(hdr, line, key, string, n) bcf_update_info((hdr),(line),(key),(string),(n),BCF_HT_FLAG) |
|
#define | bcf_update_info_string(hdr, line, key, string) bcf_update_info((hdr),(line),(key),(string),1,BCF_HT_STR) |
|
#define | bcf_update_format_int32(hdr, line, key, values, n) bcf_update_format((hdr),(line),(key),(values),(n),BCF_HT_INT) |
|
#define | bcf_update_format_float(hdr, line, key, values, n) bcf_update_format((hdr),(line),(key),(values),(n),BCF_HT_REAL) |
|
#define | bcf_update_format_char(hdr, line, key, values, n) bcf_update_format((hdr),(line),(key),(values),(n),BCF_HT_STR) |
|
#define | bcf_update_genotypes(hdr, line, gts, n) bcf_update_format((hdr),(line),"GT",(gts),(n),BCF_HT_INT) |
|
#define | bcf_gt_phased(idx) ((idx+1)<<1|1) |
|
#define | bcf_gt_unphased(idx) ((idx+1)<<1) |
|
#define | bcf_gt_missing 0 |
|
#define | bcf_gt_is_phased(idx) ((idx)&1) |
|
#define | bcf_gt_allele(val) (((val)>>1)-1) |
|
#define | bcf_alleles2gt(a, b) ((a)>(b)?((a)*((a)+1)/2+(b)):((b)*((b)+1)/2+(a))) |
|
#define | bcf_get_info_int32(hdr, line, tag, dst, ndst) bcf_get_info_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_INT) |
|
#define | bcf_get_info_float(hdr, line, tag, dst, ndst) bcf_get_info_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_REAL) |
|
#define | bcf_get_info_string(hdr, line, tag, dst, ndst) bcf_get_info_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_STR) |
|
#define | bcf_get_info_flag(hdr, line, tag, dst, ndst) bcf_get_info_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_FLAG) |
|
#define | bcf_get_format_int32(hdr, line, tag, dst, ndst) bcf_get_format_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_INT) |
|
#define | bcf_get_format_float(hdr, line, tag, dst, ndst) bcf_get_format_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_REAL) |
|
#define | bcf_get_format_char(hdr, line, tag, dst, ndst) bcf_get_format_values(hdr,line,tag,(void**)(dst),ndst,BCF_HT_STR) |
|
#define | bcf_get_genotypes(hdr, line, dst, ndst) bcf_get_format_values(hdr,line,"GT",(void**)(dst),ndst,BCF_HT_INT) |
|
#define | bcf_hdr_int2id(hdr, type, int_id) ((hdr)->id[type][int_id].key) |
|
#define | bcf_hdr_id2length(hdr, type, int_id) ((hdr)->id[BCF_DT_ID][int_id].val->info[type]>>8 & 0xf) |
|
#define | bcf_hdr_id2number(hdr, type, int_id) ((hdr)->id[BCF_DT_ID][int_id].val->info[type]>>12) |
|
#define | bcf_hdr_id2type(hdr, type, int_id) ((hdr)->id[BCF_DT_ID][int_id].val->info[type]>>4 & 0xf) |
|
#define | bcf_hdr_id2coltype(hdr, type, int_id) ((hdr)->id[BCF_DT_ID][int_id].val->info[type] & 0xf) |
|
#define | bcf_hdr_idinfo_exists(hdr, type, int_id) ((int_id<0 || bcf_hdr_id2coltype(hdr,type,int_id)==0xf) ? 0 : 1) |
|
#define | bcf_hdr_id2hrec(hdr, dict_type, col_type, int_id) ((hdr)->id[(dict_type)==BCF_DT_CTG?BCF_DT_CTG:BCF_DT_ID][int_id].val->hrec[(dict_type)==BCF_DT_CTG?0:(col_type)]) |
|
#define | bcf_itr_destroy(iter) hts_itr_destroy(iter) |
|
#define | bcf_itr_queryi(idx, tid, beg, end) hts_itr_query((idx), (tid), (beg), (end), bcf_readrec) |
|
#define | bcf_itr_querys(idx, hdr, s) hts_itr_querys((idx), (s), (hts_name2id_f)(bcf_hdr_name2id), (hdr), hts_itr_query, bcf_readrec) |
|
#define | bcf_itr_next(htsfp, itr, r) hts_itr_next((htsfp)->fp.bgzf, (itr), (r), 0) |
|
#define | bcf_index_load(fn) hts_idx_load(fn, HTS_FMT_CSI) |
|
#define | bcf_index_seqnames(idx, hdr, nptr) hts_idx_seqnames((idx),(nptr),(hts_id2name_f)(bcf_hdr_id2name),(hdr)) |
|
#define | bcf_int8_vector_end (INT8_MIN+1) |
|
#define | bcf_int16_vector_end (INT16_MIN+1) |
|
#define | bcf_int32_vector_end (INT32_MIN+1) |
|
#define | bcf_str_vector_end 0 |
|
#define | bcf_int8_missing INT8_MIN |
|
#define | bcf_int16_missing INT16_MIN |
|
#define | bcf_int32_missing INT32_MIN |
|
#define | bcf_str_missing 0x07 |
|
#define | bcf_float_set_vector_end(x) bcf_float_set(&(x),bcf_float_vector_end) |
|
#define | bcf_float_set_missing(x) bcf_float_set(&(x),bcf_float_missing) |
|
#define | BRANCH(type_t, missing, vector_end) |
|
|
bcf_hdr_t * | bcf_hdr_init (const char *mode) |
|
void | bcf_hdr_destroy (bcf_hdr_t *h) |
|
bcf1_t * | bcf_init (void) |
|
void | bcf_destroy (bcf1_t *v) |
|
void | bcf_empty (bcf1_t *v) |
|
void | bcf_clear (bcf1_t *v) |
|
bcf_hdr_t * | bcf_hdr_read (htsFile *fp) |
|
int | bcf_hdr_set_samples (bcf_hdr_t *hdr, const char *samples, int is_file) |
|
int | bcf_subset_format (const bcf_hdr_t *hdr, bcf1_t *rec) |
|
int | bcf_hdr_write (htsFile *fp, const bcf_hdr_t *h) |
|
int | vcf_parse (kstring_t *s, const bcf_hdr_t *h, bcf1_t *v) |
|
int | vcf_format (const bcf_hdr_t *h, const bcf1_t *v, kstring_t *s) |
|
int | bcf_read (htsFile *fp, const bcf_hdr_t *h, bcf1_t *v) |
|
int | bcf_unpack (bcf1_t *b, int which) |
|
bcf1_t * | bcf_dup (bcf1_t *src) |
|
int | bcf_write (htsFile *fp, const bcf_hdr_t *h, bcf1_t *v) |
|
bcf_hdr_t * | vcf_hdr_read (htsFile *fp) |
|
int | vcf_hdr_write (htsFile *fp, const bcf_hdr_t *h) |
|
int | vcf_read (htsFile *fp, const bcf_hdr_t *h, bcf1_t *v) |
|
int | vcf_write (htsFile *fp, const bcf_hdr_t *h, bcf1_t *v) |
|
int | bcf_readrec (BGZF *fp, void *null, void *v, int *tid, int *beg, int *end) |
|
bcf_hdr_t * | bcf_hdr_dup (const bcf_hdr_t *hdr) |
|
void | bcf_hdr_combine (bcf_hdr_t *dst, const bcf_hdr_t *src) |
|
int | bcf_hdr_add_sample (bcf_hdr_t *hdr, const char *sample) |
|
int | bcf_hdr_set (bcf_hdr_t *hdr, const char *fname) |
|
char * | bcf_hdr_fmt_text (const bcf_hdr_t *hdr, int is_bcf, int *len) |
|
int | bcf_hdr_append (bcf_hdr_t *h, const char *line) |
|
int | bcf_hdr_printf (bcf_hdr_t *h, const char *format,...) |
|
const char * | bcf_hdr_get_version (const bcf_hdr_t *hdr) |
|
void | bcf_hdr_set_version (bcf_hdr_t *hdr, const char *version) |
|
void | bcf_hdr_remove (bcf_hdr_t *h, int type, const char *key) |
|
bcf_hdr_t * | bcf_hdr_subset (const bcf_hdr_t *h0, int n, char *const *samples, int *imap) |
|
const char ** | bcf_hdr_seqnames (const bcf_hdr_t *h, int *nseqs) |
|
bcf_hrec_t * | bcf_hdr_parse_line (const bcf_hdr_t *h, const char *line, int *len) |
|
void | bcf_hrec_format (const bcf_hrec_t *hrec, kstring_t *str) |
|
int | bcf_hdr_add_hrec (bcf_hdr_t *hdr, bcf_hrec_t *hrec) |
|
bcf_hrec_t * | bcf_hdr_get_hrec (const bcf_hdr_t *hdr, int type, const char *id) |
|
bcf_hrec_t * | bcf_hrec_dup (bcf_hrec_t *hrec) |
|
void | bcf_hrec_add_key (bcf_hrec_t *hrec, const char *str, int len) |
|
void | bcf_hrec_set_val (bcf_hrec_t *hrec, int i, const char *str, int len, int is_quoted) |
|
int | bcf_hrec_find_key (bcf_hrec_t *hrec, const char *key) |
|
void | bcf_hrec_destroy (bcf_hrec_t *hrec) |
|
int | bcf_subset (const bcf_hdr_t *h, bcf1_t *v, int n, int *imap) |
|
int | bcf_translate (const bcf_hdr_t *dst_hdr, bcf_hdr_t *src_hdr, bcf1_t *src_line) |
|
int | bcf_get_variant_types (bcf1_t *rec) |
|
int | bcf_get_variant_type (bcf1_t *rec, int ith_allele) |
|
int | bcf_is_snp (bcf1_t *v) |
|
int | bcf_update_filter (const bcf_hdr_t *hdr, bcf1_t *line, int *flt_ids, int n) |
|
int | bcf_add_filter (const bcf_hdr_t *hdr, bcf1_t *line, int flt_id) |
|
int | bcf_remove_filter (const bcf_hdr_t *hdr, bcf1_t *line, int flt_id, int pass) |
|
int | bcf_has_filter (const bcf_hdr_t *hdr, bcf1_t *line, char *filter) |
|
int | bcf_update_alleles (const bcf_hdr_t *hdr, bcf1_t *line, const char **alleles, int nals) |
|
int | bcf_update_alleles_str (const bcf_hdr_t *hdr, bcf1_t *line, const char *alleles_string) |
|
int | bcf_update_id (const bcf_hdr_t *hdr, bcf1_t *line, const char *id) |
|
int | bcf_update_info (const bcf_hdr_t *hdr, bcf1_t *line, const char *key, const void *values, int n, int type) |
|
int | bcf_update_format_string (const bcf_hdr_t *hdr, bcf1_t *line, const char *key, const char **values, int n) |
|
int | bcf_update_format (const bcf_hdr_t *hdr, bcf1_t *line, const char *key, const void *values, int n, int type) |
|
bcf_fmt_t * | bcf_get_fmt (const bcf_hdr_t *hdr, bcf1_t *line, const char *key) |
|
bcf_info_t * | bcf_get_info (const bcf_hdr_t *hdr, bcf1_t *line, const char *key) |
|
int | bcf_get_info_values (const bcf_hdr_t *hdr, bcf1_t *line, const char *tag, void **dst, int *ndst, int type) |
|
int | bcf_get_format_string (const bcf_hdr_t *hdr, bcf1_t *line, const char *tag, char ***dst, int *ndst) |
|
int | bcf_get_format_values (const bcf_hdr_t *hdr, bcf1_t *line, const char *tag, void **dst, int *ndst, int type) |
|
int | bcf_hdr_id2int (const bcf_hdr_t *hdr, int type, const char *id) |
|
void | bcf_fmt_array (kstring_t *s, int n, int type, void *data) |
|
uint8_t * | bcf_fmt_sized_array (kstring_t *s, uint8_t *ptr) |
|
void | bcf_enc_vchar (kstring_t *s, int l, const char *a) |
|
void | bcf_enc_vint (kstring_t *s, int n, int32_t *a, int wsize) |
|
void | bcf_enc_vfloat (kstring_t *s, int n, float *a) |
|
int | bcf_index_build (const char *fn, int min_shift) |
|