Skip to content

Commit

Permalink
revert min_mapq
Browse files Browse the repository at this point in the history
  • Loading branch information
nservant committed Feb 1, 2021
1 parent ca16bb0 commit eca3bac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## v1.3.0dev

* Change min_mapq behavior by removing pairs only when the two mates have a mapq<min_mapq
* Add HiCExplorer distance decay quality control
* Add HiCExplorer TADs calling
* Add insulation score TADs calling
Expand Down
2 changes: 1 addition & 1 deletion bin/mergeSAM.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def sam_flag(read1, read2, hr1, hr2):
## both mapped
elif r1.is_unmapped == False and r2.is_unmapped == False:
## quality
if mapq != None and (r1.mapping_quality < int(mapq) and r2.mapping_quality < int(mapq)):
if mapq != None and (r1.mapping_quality < int(mapq) or r2.mapping_quality < int(mapq)):
lowq_pairs_counter += 1
continue

Expand Down

0 comments on commit eca3bac

Please sign in to comment.