Skip to content

Commit

Permalink
Add the mate mapping quality tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Jul 21, 2021
1 parent 3ddd7b8 commit d8dd308
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bwamem.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ void mem_aln2sam(const mem_opt_t *opt, const bntseq_t *bns, kstring_t *str, bseq
kputsn("\tMD:Z:", 6, str); kputs((char*)(p->cigar + p->n_cigar), str);
}
if (m && m->n_cigar) { kputsn("\tMC:Z:", 6, str); add_cigar(opt, m, str, which); }
if (m) { kputsn("\tMQ:i:", 6, str); kputw(m->mapq, str);}
if (p->score >= 0) { kputsn("\tAS:i:", 6, str); kputw(p->score, str); }
if (p->sub >= 0) { kputsn("\tXS:i:", 6, str); kputw(p->sub, str); }
if (bwa_rg_id[0]) { kputsn("\tRG:Z:", 6, str); kputs(bwa_rg_id, str); }
Expand Down

0 comments on commit d8dd308

Please sign in to comment.