31 #ifndef _CRAM_SAMTOOLS_H_
32 #define _CRAM_SAMTOOLS_H_
35 #define bam_blk_size(b) ((b)->l_data)
36 #define bam_set_blk_size(b,v) ((b)->data_len = (v))
38 #define bam_ref(b) (b)->core.tid
39 #define bam_pos(b) (b)->core.pos
40 #define bam_mate_pos(b) (b)->core.mpos
41 #define bam_mate_ref(b) (b)->core.mtid
42 #define bam_ins_size(b) (b)->core.isize
43 #define bam_seq_len(b) (b)->core.l_qseq
44 #define bam_cigar_len(b) (b)->core.n_cigar
45 #define bam_flag(b) (b)->core.flag
46 #define bam_bin(b) (b)->core.bin
47 #define bam_map_qual(b) (b)->core.qual
48 #define bam_name_len(b) (b)->core.l_qname
49 #define bam_name(b) bam_get_qname((b))
50 #define bam_qual(b) bam_get_qual((b))
51 #define bam_seq(b) bam_get_seq((b))
52 #define bam_cigar(b) bam_get_cigar((b))
53 #define bam_aux(b) bam_get_aux((b))
55 #define bam_dup(b) bam_copy1(bam_init1(), (b))
57 #define bam_free(b) bam_destroy1((b))
59 #define bam_reg2bin(beg,end) hts_reg2bin((beg),(end),14,5)
83 const char *qname,
size_t qname_len,
89 uint32_t ncigar,
const uint32_t *cigar,
#define BAM_CREF_SKIP
Definition: sam.h:63
#define BAM_CINS
Definition: sam.h:61
#define BAM_CDEL
Definition: sam.h:62
Definition: sam_header.h:183
#define BAM_CPAD
Definition: sam.h:66
#define BAM_CEQUAL
Definition: sam.h:67
#define BAM_CHARD_CLIP
Definition: sam.h:65
#define BAM_CSOFT_CLIP
Definition: sam.h:64
#define BAM_CDIFF
Definition: sam.h:68
#define BAM_CMATCH
Definition: sam.h:60