Skip to content

Commit

Permalink
Apply cutoff to asm length
Browse files Browse the repository at this point in the history
  • Loading branch information
veghp committed Dec 10, 2024
1 parent bedc2d4 commit 483ecf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ediacara/Comparator.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,8 @@ def interpret_asm(self):
self.len_asm = len(self.asm)

self.asm_ref_len_diff = self.len_asm - self.len_ref
length_band = 50 # bp, smaller errors should be picked up by coverage, VCF etc
if abs(self.asm_ref_len_diff) > length_band:
length_band = self.diff_cutoff # bp
if abs(self.asm_ref_len_diff) >= length_band:
self.has_errors = True
self.has_large_diff = True
self.wrong_length = True
Expand Down

0 comments on commit 483ecf4

Please sign in to comment.