Skip to content

Commit

Permalink
fix: allow floats for DP
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyWesthead committed Jul 22, 2024
1 parent cfcf692 commit 31b9a98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gnomonicus/gnomonicus_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ def parse_grumpy_evidence(evidence: grumpy.VCFRow) -> dict:
elif key == "DP":
# Single value expected here too (most of the time)
if len(value) == 1:
item = int(value[0])
try:
item = int(value[0])
except ValueError:
item = float(value[0])
else:
item = [int(v) for v in value]
else:
Expand Down

0 comments on commit 31b9a98

Please sign in to comment.