Skip to content

Commit

Permalink
Merge pull request #4 from gtsambos/isnone-bugfix
Browse files Browse the repository at this point in the history
Fix for a small typo preventing NoneType arguments being parsed correctly.
  • Loading branch information
tomsasani authored Feb 23, 2024
2 parents 5c3d1b4 + 7354dae commit 19e5251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ihd/run_ihd_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19e5251

Please sign in to comment.