Skip to content

Commit

Permalink
Fix for a small typo preventing NoneType arguments being parsed corre…
Browse files Browse the repository at this point in the history
…ctly.
  • Loading branch information
gtsambos committed Feb 23, 2024
1 parent d376670 commit 7354dae
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 7354dae

Please sign in to comment.