Skip to content

Commit

Permalink
fixing warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
lchorbadjiev committed Mar 4, 2020
1 parent d85bf36 commit 709847a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sgains/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ def __repr__(self):
f"F{self.flag}:Q{self.mapq}, POS: {self.chrom}:{self.start}"

def acceptable(self):
if self.cigar != f'{self.length}M':
print("mapping: not exact match:", self, self.cigar)

return self.flag == 0 and self.mapq > 30
result = self.flag == 0 and self.mapq > 30
if result:
if self.cigar != f'{self.length}M':
print("mapping: not exact match:", self, self.cigar)
return True
return False


class MappableRegion(object):
Expand Down

0 comments on commit 709847a

Please sign in to comment.