Skip to content

Commit

Permalink
fix bug when parsing arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymcrae committed Aug 20, 2018
1 parent 1e3861b commit 9929d60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clinicalfilter/load_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,16 @@ def get_options():
args = parser.parse_args()

if args.pp_filter < 0.0 or args.pp_filter > 1:
argparse.ArgumentParser.error("--pp-dnm-threshold must be between 0 and 1")
parser.error("--pp-dnm-threshold must be between 0 and 1")

if args.child is not None:
if args.father is not None and args.dad_aff is None:
argparse.ArgumentParser.error("--dad-aff must also be used if --father is used")
parser.error("--dad-aff must also be used if --father is used")
if args.mother is not None and args.mom_aff is None:
argparse.ArgumentParser.error("--mom-aff must also be used if --mother is used")
parser.error("--mom-aff must also be used if --mother is used")

if args.sum_x_lr2_file is None:
argparse.ArgumentParser.error("--sum_x_lr2_file must be used")
parser.error("--sum_x_lr2_file must be used")

args.populations = args.maf_populations.split(',')

Expand Down

0 comments on commit 9929d60

Please sign in to comment.