Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Dec 16, 2024
1 parent d200e12 commit e3e93ad
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bwapy/libbwapy.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ cdef class BwaAln:
rec.cigarstring = cigar

# # tags
# attrs = dict()
# if seq.type != BWA_TYPE_NO_MATCH:
# attrs["MD"] = bwa_cal_md1(seq.n_cigar, seq.cigar, seq.len, seq.pos,
# seq.rseq if seq.strand else seq.seq, self._index._bns.l_pac,
# self._pacseq, kstr, &nm)
# rec.set_tags(list(attrs.items()))
if seq.type != BWA_TYPE_NO_MATCH:
attrs = dict()
attrs["MD"] = bwa_cal_md1(seq.n_cigar, seq.cigar, seq.len, seq.pos,
seq.rseq if seq.strand else seq.seq, self._index._bns.l_pac,
self._pacseq, kstr, &nm)
rec.set_tags(list(attrs.items()))
# # TODO:the custom bwa tags: XT, NM, XN, SM, AM, X0, X1, XM, XO, XG, XA, HN

return rec
Expand Down

0 comments on commit e3e93ad

Please sign in to comment.