Skip to content

Commit 4f4df7b

Browse files
committed
Bug fix, DP can be float
1 parent e07daa4 commit 4f4df7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/clockwork/gvcf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def _vcf_record_pass_index(record, require_minos_pass=True, min_frs=0.9, min_dp=
231231

232232
if geno_index > 0 and len(alt) != len(record.REF) and alt[0] != record.REF[0]:
233233
return None
234-
elif int(record.FORMAT["DP"]) < min_dp:
234+
elif float(record.FORMAT["DP"]) < min_dp:
235235
return None
236236
elif record.INFO["CALLER"] == "minos":
237237
if (require_minos_pass and record.FILTER != {"PASS"}) or float(

0 commit comments

Comments
 (0)