50 SAM_FLAGS_PROPER_PAIR = 2,
51 SAM_FLAGS_UNMAPPED = 4,
52 SAM_FLAGS_MATE_UNMAPPED = 8,
53 SAM_FLAGS_REVERSE = 16,
54 SAM_FLAGS_MATE_REVERSE = 32,
55 SAM_FLAGS_READ_1 = 64,
56 SAM_FLAGS_READ_2 = 128,
57 SAM_FLAGS_SECONDARY = 256,
58 SAM_FLAGS_QC_FAILED = 512,
59 SAM_FLAGS_DUPLICATE = 1024
89 bool second_score_valid;
114 void write_formatted_string(
const char *fmt, ...);
117 void write_string(
const char *str,
bool tab =
true);
119 template <
typename T>
void write_int(T i,
bool tab =
true);
124 template <
typename T>
125 void write_tag(
const char *name, T value);
128 void output_header(
void);
130 void output_alignment(
const struct SamAlignment& aln);
137 uint32 generate_cigar_string(SamAlignment& sam_align,