Skip to content

Commit

Permalink
Fix misc bugs
Browse files Browse the repository at this point in the history
 * Specify matplotlib as dependency
 * Skip mappings without NM tag
 * Git ignore pycache
  • Loading branch information
kbseah committed Apr 5, 2022
1 parent d206041 commit c28b94e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mnutils/__pycache__
1 change: 1 addition & 0 deletions env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ dependencies:
- samtools=1.10
- pysam=0.16.0.1
- biopython=1.77
- matplotlib>=3.1.1
1 change: 1 addition & 0 deletions mnutils/Posmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def read_bam(self, bamfile,
for read in bamiter:
if (not read.is_secondary and
not read.is_duplicate and
read.has_tag('NM') and
read.get_tag("NM") <= 1):
# TODO: Mismatches should actually be summed for each read PAIR,
# not for each read segment as is currently done here
Expand Down

0 comments on commit c28b94e

Please sign in to comment.