Skip to content

Commit

Permalink
indel block bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sridhar Iyengar committed Apr 13, 2020
1 parent e9a936a commit 97e92c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cb_sniffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def count_barcodes(self, bam_fil, bar, indel, mapq=0, baseq=0):
barUcodes['{}'.format(q_name)].append(qstring)

# barcode without mutations
if indel > 0 and self.alt == '-':
if indel > 0:

# print('{}:{}:{}:{}:{}:{}'.format(read.indel, read.alignment.get_tag('CB'),read.alignment.cigarstring,
# read.query_position,self.alt,pileupcolumn.pos))
Expand Down Expand Up @@ -167,7 +167,7 @@ def count_barcodes(self, bam_fil, bar, indel, mapq=0, baseq=0):
# print(ustring)
# print('{}\t{}\t{}'.format(ref_tag, refU_tag, 'ref'))
else:

#print(indel,read.query_position,read.alignment.query_sequence[read.query_position])
if read.alignment.query_sequence[read.query_position] != self.alt:
ref_tag = read.alignment.get_tag('CB')
# UB
Expand Down

0 comments on commit 97e92c8

Please sign in to comment.