From ab8f4358c21c9159bdc49d10601ee7f98d411b2a Mon Sep 17 00:00:00 2001 From: zlskidmore Date: Mon, 1 Jun 2026 12:32:34 -0500 Subject: [PATCH] update scripte to handle missing values --- depth_filter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depth_filter.py b/depth_filter.py index a39713f..059abde 100644 --- a/depth_filter.py +++ b/depth_filter.py @@ -85,7 +85,7 @@ def getFormatField(sample_name, field_name): filter=False for samp in args.sample_names.split(","): depth = getFormatField(samp,args.site_depth_field) - if(depth=="NA"): + if(depth in ("NA", ".")): if na_err: print("WARNING: One or more sites lack the {} field. Those are being treated as zero and filtered".format(args.site_depth_field)) na_err=False