+
+ /*
+ else {
+ // if only one mate can be aligned, mask it as unaligned and put an additional tag Z0:A:!
+ char exclamation = '!';
+ if (!(b->core.flag & 0x0004)) {
+ b->core.flag |= 0x0004;
+ bam_aux_append(b, "Z0", 'A', bam_aux_type2size('A'), (uint8_t*)&exclamation);
+ }
+ if (!(b2->core.flag & 0x0004)) {
+ b2->core.flag |= 0x0004;
+ bam_aux_append(b2, "Z0", 'A', bam_aux_type2size('A'), (uint8_t*)&exclamation);
+ }
+ }
+ */
+
+ samwrite(out, b);
+ samwrite(out, b2);