Skip to content

Commit 73c38a0

Browse files
committed
Added a wrokaround for a corner case.
1 parent e623bc5 commit 73c38a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TCSfilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def ListParser(infile_name, minqual, mincov):
3535
covs = sorted(list(map(int, covs)))
3636
if tcov <= mincov: # Discard positions with less than mincov
3737
pass
38-
elif int(lines.split()[12]) >= tcov//2: # Discard pos with many gaps
38+
elif int(lines.split()[12]) >= tcov//2 or lines.split()[2] == "-": # Discard pos with many gaps
3939
pass
4040
elif covs[-2] <= (ceil(tcov * 0.2)): # Discard low freq second variant
4141
pass

0 commit comments

Comments
 (0)