Skip to content

Commit

Permalink
use pi aux tag too to filter split reads
Browse files Browse the repository at this point in the history
  • Loading branch information
hiruna534 committed Dec 27, 2024
1 parent 822f852 commit b97877c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reform.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def run(args):
with pysam.AlignmentFile(args.bam, "rb", check_sq=False) as bam:
for sam_record in bam:
len_seq = len(sam_record.get_forward_sequence()) - kmer_length + 1 # to get the number of kmers
if sam_record.has_tag("sp"):
if sam_record.has_tag("sp") or sam_record.has_tag("pi"):
count_split_reads += 1
continue
if sam_record.has_tag("dx") and int(sam_record.get_tag("dx")) == 1:
Expand Down

0 comments on commit b97877c

Please sign in to comment.