From 7354dae98ebb76cb642a829b31e530f715d753f8 Mon Sep 17 00:00:00 2001 From: GEORGIA TSAMBOS Date: Fri, 23 Feb 2024 11:31:14 +1100 Subject: [PATCH] Fix for a small typo preventing NoneType arguments being parsed correctly. --- ihd/run_ihd_scan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihd/run_ihd_scan.py b/ihd/run_ihd_scan.py index 49c32b3..29ccddf 100644 --- a/ihd/run_ihd_scan.py +++ b/ihd/run_ihd_scan.py @@ -101,7 +101,7 @@ def main(args): replace_dict = config_dict["genotypes"] geno_asint = geno.replace(replace_dict).replace({1: np.nan}) - if args.adj_region != "None": + if args.adj_region is not None: chrom = args.adj_region.split(":")[0] start, end = list(map(float, args.adj_region.split(":")[1].split("-"))) # find markers within this region