Skip to content

Commit 2fb8abf

Browse files
committed
Properly determine whether deletions are inframe (1.8.5)
1 parent 3bfc3f4 commit 2fb8abf

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

artic/vcf_filter.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ def in_frame(v):
77
print("This code does not support multiple genotypes!")
88
raise SystemExit
99
ref = v.REF
10+
11+
if not v.ALT: # No ALT alleles (e.g. a deletion)
12+
if len(ref) % 3 == 0:
13+
return True
14+
return False
15+
1016
alt = v.ALT[0]
1117
bases = len(alt) - len(ref)
1218
if not bases:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "artic"
9-
version = "1.8.4"
9+
version = "1.8.5"
1010
authors = [
1111
{ name = "Nick Loman", email = "[email protected]" },
1212
]

0 commit comments

Comments
 (0)