Skip to content

Commit

Permalink
[wip] process soft-clipped reads
Browse files Browse the repository at this point in the history
  • Loading branch information
DrYak committed Jun 5, 2024
1 parent 739b8a5 commit 2975672
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/paired_end_read_merger
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ def fuse_reads(argv):
if prev is not None:
if prev.qname == read.qname:
#if (read.pos > 0 and ( ('D' in read.cigarstring or 'D' in prev.cigarstring) and not 'S' in read.cigarstring and not 'S' in prev.cigarstring) ):
if (read.pos > 0 and ( not 'S' in read.cigarstring and not 'S' in prev.cigarstring) ): # for properly aligned, skipping unaligned, skipping softclipping
#if (read.pos > 0 and ( not 'S' in read.cigarstring and not 'S' in prev.cigarstring) ): # for properly aligned, skipping unaligned, skipping softclipping
if read.pos > 0 : # for properly aligned, skipping unaligned
fused = read_fusion(prev, read, reference, samfile.header)
i = i + 1
cl = query_len(fused.cigarstring)
Expand Down

0 comments on commit 2975672

Please sign in to comment.