r868: use soft clip for ALT hits
This commit is contained in:
parent
9af36064e8
commit
7426a750ec
2
bwamem.c
2
bwamem.c
|
|
@ -830,7 +830,7 @@ void mem_aln2sam(const mem_opt_t *opt, const bntseq_t *bns, kstring_t *str, bseq
|
|||
if (p->n_cigar) { // aligned
|
||||
for (i = 0; i < p->n_cigar; ++i) {
|
||||
int c = p->cigar[i]&0xf;
|
||||
if (!(opt->flag&MEM_F_SOFTCLIP) && (c == 3 || c == 4))
|
||||
if (!(opt->flag&MEM_F_SOFTCLIP) && !p->is_alt && (c == 3 || c == 4))
|
||||
c = which? 4 : 3; // use hard clipping for supplementary alignments
|
||||
kputw(p->cigar[i]>>4, str); kputc("MIDSH"[c], str);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue