@@ -0,0 +1,2193 @@
+%0Afrom argparse import ArgumentParser%0A%0A%0Adef parse_string(option, opt, value, parser):%0A    setattr(parser.values, option.dest, value.split(','))%0A%0A%0Adef model_input_parser(usage):%0A    parser = ArgumentParser(usage)%0A%0A    parser.add_argument(%22-d%22, %22--dwi%22, dest='dwi', action=%22append%22,%0A                        help=%22DWI files (enter one or more)%22)%0A%0A    parser.add_argument(%22-l%22, %22--bval%22, dest=%22bval%22, action=%22append%22,%0A                        help=%22B-value files (enter one or more)%22)%0A%0A    parser.add_argument(%22-c%22, %22--bvec%22, dest=%22bvec%22, action=%22append%22,%0A                        help=%22B-vector files (enter one or more)%22)%0A%0A    parser.add_argument(%22-o%22, %22--out_dir%22, dest=%22out_dir%22, action=%22store%22,%0A                        help=%22%22%22Full path to directory for files to be saved%0A                            (will be created if it doesn't exist)%22)%22%22%22)%0A%0A    parser.add_argument(%22-m%22, %22--mask%22, dest=%22mask%22, action=%22store%22,%0A                        default=None, help=%22Mask file%22)%0A%0A    parser.add_argument('-b', '--b0_threshold', dest=%22b0_threshold%22,%0A                        action=%22store%22, help=%22b0 threshold%22, default=0)%0A%0A    return parser%0A%0A%0Adef model_predict_input_parser(usage):%0A    parser = ArgumentParser(usage)%0A%0A    parser.add_argument(%22-p%22, %22--params%22, dest=%22params%22, action=%22store%22,%0A                        help=%22A file containing model params%22)%0A%0A    parser.add_argument(%22-l%22, %22--bval%22, dest=%22bval%22, action=%22append%22,%0A                        help=%22B-value files (enter one or more)%22)%0A%0A    parser.add_argument(%22-c%22, %22--bvec%22, dest=%22bvec%22, action=%22append%22,%0A                        help=%22B-vector files (enter one or more)%22)%0A%0A    parser.add_argument(%22-o%22, %22--out_dir%22, dest=%22out_dir%22, action=%22store%22,%0A                        help=%22%22%22Full path to directory for files to be saved%0A                            (will be created if it doesn't exist)%22)%22%22%22)%0A%0A    parser.add_argument(%0A        %22-s%22, %22--S0_file%22, dest=%22S0_file%22, action=%22store%22,%0A        help=%22File containing S0 measurements to use in prediction%22)%0A%0A    parser.add_argument('-b', '--b0_threshold', dest=%22b0_threshold%22,%0A                        help=%22b0 threshold (default: 0)%22,%0A                        action=%22store%22, default=0)%0A    return parser%0A

Add the utils bin module.