Skip to content

Commit f95f86d

Browse files
committed
Added a check to skip putative SNPs in regions with too many gaps.
1 parent 5bbc8be commit f95f86d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

TCSfilter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ def ListParser(TCS,minqual,mincov):
4040
tcov = int(line[2][:5])
4141
covs = line[2][5:].strip().split()
4242
covs = sorted(list(map(int, covs)))
43-
if tcov <= mincov: #Discard positions with less then mincov
43+
if tcov <= mincov: #Discard positions with less than mincov
4444
pass
45+
elif int(lines.split()[12]) >= tcov/2: #Discard positions with many gaps
46+
pass
4547
elif covs[-2] <= (ceil(tcov*0.2)): #Discard insufficient second variant
4648
pass
4749
else:

0 commit comments

Comments
 (0)