Skip to content

Commit

Permalink
Remove multi-mapping reads
Browse files Browse the repository at this point in the history
  • Loading branch information
akikuno committed Mar 25, 2024
1 parent 9d55830 commit d00bea8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/DAJIN2/core/preprocess/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ def to_sam(
query_seq = QUERY_SEQ.upper()
query_qual = QUERY_QUAL

# Skip multi-mapping reads
if hit.mapq == 0:
continue

# Report flag
if hit.is_primary:
flag = 0 if hit.strand == 1 else 16
Expand Down

0 comments on commit d00bea8

Please sign in to comment.