Skip to content

Commit

Permalink
Also filter out secondary alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marghoob Mohiyuddin committed Mar 10, 2015
1 parent 7278089 commit 5110329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion breakseq2/breakseq_pre.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def add_options(main_parser):

def is_good_candidate(aln, min_soft_clip, min_soft_clip_mapq, min_soft_clip_mate_mapq, bad_map_max_soft_clip,
bad_map_min_mapq, bad_map_min_nm, bad_map_min_mate_mapq):
if aln.is_duplicate: return False
if aln.is_duplicate or aln.is_secondary: return False
if aln.is_unmapped: return True
# some tweaking may be required to ensure the reads in a pair are used consistently
if aln.cigar is None: return False
Expand Down

0 comments on commit 5110329

Please sign in to comment.