Skip to content

Commit daec46b

Browse files
committed
Check the fields only
1 parent 0c08f22 commit daec46b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/pyard-reduce-csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def is_3field(allele: str) -> bool:
4949

5050

5151
def is_2field(allele: str) -> bool:
52+
if '*' in allele:
53+
allele = allele.split('*')[1]
5254
fields = allele.split(':')
5355
# Check to see the 2 fields are digits to distinguish from MAC.
5456
return len(fields) == 2 and fields[0].isdigit() and fields[1].isdigit()

0 commit comments

Comments
 (0)