[ -n "$VIASH_PAR_INPUT" ] && ViashError Bad arguments for option \'--input\': \'$VIASH_PAR_INPUT\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_INPUT="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --input. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--input=*)
[ -n "$VIASH_PAR_INPUT" ] && ViashError Bad arguments for option \'--input=*\': \'$VIASH_PAR_INPUT\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_INPUT=$(ViashRemoveFlags "$1")
shift 1
;;
--input_bai)
[ -n "$VIASH_PAR_INPUT_BAI" ] && ViashError Bad arguments for option \'--input_bai\': \'$VIASH_PAR_INPUT_BAI\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_INPUT_BAI="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --input_bai. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--input_bai=*)
[ -n "$VIASH_PAR_INPUT_BAI" ] && ViashError Bad arguments for option \'--input_bai=*\': \'$VIASH_PAR_INPUT_BAI\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_INPUT_BAI=$(ViashRemoveFlags "$1")
shift 1
;;
--ref)
[ -n "$VIASH_PAR_REF" ] && ViashError Bad arguments for option \'--ref\': \'$VIASH_PAR_REF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_REF="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --ref. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--ref=*)
[ -n "$VIASH_PAR_REF" ] && ViashError Bad arguments for option \'--ref=*\': \'$VIASH_PAR_REF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_REF=$(ViashRemoveFlags "$1")
shift 1
;;
-f)
[ -n "$VIASH_PAR_REF" ] && ViashError Bad arguments for option \'-f\': \'$VIASH_PAR_REF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_REF="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -f. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--out)
[ -n "$VIASH_PAR_OUT" ] && ViashError Bad arguments for option \'--out\': \'$VIASH_PAR_OUT\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_OUT="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --out. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--out=*)
[ -n "$VIASH_PAR_OUT" ] && ViashError Bad arguments for option \'--out=*\': \'$VIASH_PAR_OUT\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_OUT=$(ViashRemoveFlags "$1")
shift 1
;;
-o)
[ -n "$VIASH_PAR_OUT" ] && ViashError Bad arguments for option \'-o\': \'$VIASH_PAR_OUT\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_OUT="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -o. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--region)
[ -n "$VIASH_PAR_REGION" ] && ViashError Bad arguments for option \'--region\': \'$VIASH_PAR_REGION\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_REGION="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --region. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--region=*)
[ -n "$VIASH_PAR_REGION" ] && ViashError Bad arguments for option \'--region=*\': \'$VIASH_PAR_REGION\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_REGION=$(ViashRemoveFlags "$1")
shift 1
;;
-r)
[ -n "$VIASH_PAR_REGION" ] && ViashError Bad arguments for option \'-r\': \'$VIASH_PAR_REGION\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_REGION="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -r. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--bed)
[ -n "$VIASH_PAR_BED" ] && ViashError Bad arguments for option \'--bed\': \'$VIASH_PAR_BED\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_BED="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --bed. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--bed=*)
[ -n "$VIASH_PAR_BED" ] && ViashError Bad arguments for option \'--bed=*\': \'$VIASH_PAR_BED\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_BED=$(ViashRemoveFlags "$1")
shift 1
;;
-l)
[ -n "$VIASH_PAR_BED" ] && ViashError Bad arguments for option \'-l\': \'$VIASH_PAR_BED\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_BED="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -l. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_bq)
[ -n "$VIASH_PAR_MIN_BQ" ] && ViashError Bad arguments for option \'--min_bq\': \'$VIASH_PAR_MIN_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_BQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --min_bq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_bq=*)
[ -n "$VIASH_PAR_MIN_BQ" ] && ViashError Bad arguments for option \'--min_bq=*\': \'$VIASH_PAR_MIN_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_BQ=$(ViashRemoveFlags "$1")
shift 1
;;
-q)
[ -n "$VIASH_PAR_MIN_BQ" ] && ViashError Bad arguments for option \'-q\': \'$VIASH_PAR_MIN_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_BQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -q. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_alt_bq)
[ -n "$VIASH_PAR_MIN_ALT_BQ" ] && ViashError Bad arguments for option \'--min_alt_bq\': \'$VIASH_PAR_MIN_ALT_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_ALT_BQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --min_alt_bq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_alt_bq=*)
[ -n "$VIASH_PAR_MIN_ALT_BQ" ] && ViashError Bad arguments for option \'--min_alt_bq=*\': \'$VIASH_PAR_MIN_ALT_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_ALT_BQ=$(ViashRemoveFlags "$1")
shift 1
;;
-Q)
[ -n "$VIASH_PAR_MIN_ALT_BQ" ] && ViashError Bad arguments for option \'-Q\': \'$VIASH_PAR_MIN_ALT_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_ALT_BQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -Q. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--def_alt_bq)
[ -n "$VIASH_PAR_DEF_ALT_BQ" ] && ViashError Bad arguments for option \'--def_alt_bq\': \'$VIASH_PAR_DEF_ALT_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_ALT_BQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --def_alt_bq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--def_alt_bq=*)
[ -n "$VIASH_PAR_DEF_ALT_BQ" ] && ViashError Bad arguments for option \'--def_alt_bq=*\': \'$VIASH_PAR_DEF_ALT_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_ALT_BQ=$(ViashRemoveFlags "$1")
shift 1
;;
-R)
[ -n "$VIASH_PAR_DEF_ALT_BQ" ] && ViashError Bad arguments for option \'-R\': \'$VIASH_PAR_DEF_ALT_BQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_ALT_BQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -R. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_jq)
[ -n "$VIASH_PAR_MIN_JQ" ] && ViashError Bad arguments for option \'--min_jq\': \'$VIASH_PAR_MIN_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_JQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --min_jq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_jq=*)
[ -n "$VIASH_PAR_MIN_JQ" ] && ViashError Bad arguments for option \'--min_jq=*\': \'$VIASH_PAR_MIN_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_JQ=$(ViashRemoveFlags "$1")
shift 1
;;
-j)
[ -n "$VIASH_PAR_MIN_JQ" ] && ViashError Bad arguments for option \'-j\': \'$VIASH_PAR_MIN_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_JQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -j. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_alt_jq)
[ -n "$VIASH_PAR_MIN_ALT_JQ" ] && ViashError Bad arguments for option \'--min_alt_jq\': \'$VIASH_PAR_MIN_ALT_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_ALT_JQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --min_alt_jq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_alt_jq=*)
[ -n "$VIASH_PAR_MIN_ALT_JQ" ] && ViashError Bad arguments for option \'--min_alt_jq=*\': \'$VIASH_PAR_MIN_ALT_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_ALT_JQ=$(ViashRemoveFlags "$1")
shift 1
;;
-J)
[ -n "$VIASH_PAR_MIN_ALT_JQ" ] && ViashError Bad arguments for option \'-J\': \'$VIASH_PAR_MIN_ALT_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_ALT_JQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -J. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--def_alt_jq)
[ -n "$VIASH_PAR_DEF_ALT_JQ" ] && ViashError Bad arguments for option \'--def_alt_jq\': \'$VIASH_PAR_DEF_ALT_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_ALT_JQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --def_alt_jq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--def_alt_jq=*)
[ -n "$VIASH_PAR_DEF_ALT_JQ" ] && ViashError Bad arguments for option \'--def_alt_jq=*\': \'$VIASH_PAR_DEF_ALT_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_ALT_JQ=$(ViashRemoveFlags "$1")
shift 1
;;
-K)
[ -n "$VIASH_PAR_DEF_ALT_JQ" ] && ViashError Bad arguments for option \'-K\': \'$VIASH_PAR_DEF_ALT_JQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_ALT_JQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -K. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--no_baq)
[ -n "$VIASH_PAR_NO_BAQ" ] && ViashError Bad arguments for option \'--no_baq\': \'$VIASH_PAR_NO_BAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_BAQ=true
shift 1
;;
-B)
[ -n "$VIASH_PAR_NO_BAQ" ] && ViashError Bad arguments for option \'-B\': \'$VIASH_PAR_NO_BAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_BAQ=true
shift 1
;;
--no_idaq)
[ -n "$VIASH_PAR_NO_IDAQ" ] && ViashError Bad arguments for option \'--no_idaq\': \'$VIASH_PAR_NO_IDAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_IDAQ=true
shift 1
;;
-A)
[ -n "$VIASH_PAR_NO_IDAQ" ] && ViashError Bad arguments for option \'-A\': \'$VIASH_PAR_NO_IDAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_IDAQ=true
shift 1
;;
--del_baq)
[ -n "$VIASH_PAR_DEL_BAQ" ] && ViashError Bad arguments for option \'--del_baq\': \'$VIASH_PAR_DEL_BAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEL_BAQ=true
shift 1
;;
-D)
[ -n "$VIASH_PAR_DEL_BAQ" ] && ViashError Bad arguments for option \'-D\': \'$VIASH_PAR_DEL_BAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEL_BAQ=true
shift 1
;;
--no_ext_baq)
[ -n "$VIASH_PAR_NO_EXT_BAQ" ] && ViashError Bad arguments for option \'--no_ext_baq\': \'$VIASH_PAR_NO_EXT_BAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_EXT_BAQ=true
shift 1
;;
-e)
[ -n "$VIASH_PAR_NO_EXT_BAQ" ] && ViashError Bad arguments for option \'-e\': \'$VIASH_PAR_NO_EXT_BAQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_EXT_BAQ=true
shift 1
;;
--min_mq)
[ -n "$VIASH_PAR_MIN_MQ" ] && ViashError Bad arguments for option \'--min_mq\': \'$VIASH_PAR_MIN_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_MQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --min_mq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_mq=*)
[ -n "$VIASH_PAR_MIN_MQ" ] && ViashError Bad arguments for option \'--min_mq=*\': \'$VIASH_PAR_MIN_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_MQ=$(ViashRemoveFlags "$1")
shift 1
;;
-m)
[ -n "$VIASH_PAR_MIN_MQ" ] && ViashError Bad arguments for option \'-m\': \'$VIASH_PAR_MIN_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_MQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -m. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--max_mq)
[ -n "$VIASH_PAR_MAX_MQ" ] && ViashError Bad arguments for option \'--max_mq\': \'$VIASH_PAR_MAX_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MAX_MQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --max_mq. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--max_mq=*)
[ -n "$VIASH_PAR_MAX_MQ" ] && ViashError Bad arguments for option \'--max_mq=*\': \'$VIASH_PAR_MAX_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MAX_MQ=$(ViashRemoveFlags "$1")
shift 1
;;
-M)
[ -n "$VIASH_PAR_MAX_MQ" ] && ViashError Bad arguments for option \'-M\': \'$VIASH_PAR_MAX_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MAX_MQ="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -M. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--no_mq)
[ -n "$VIASH_PAR_NO_MQ" ] && ViashError Bad arguments for option \'--no_mq\': \'$VIASH_PAR_NO_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_MQ=true
shift 1
;;
-N)
[ -n "$VIASH_PAR_NO_MQ" ] && ViashError Bad arguments for option \'-N\': \'$VIASH_PAR_NO_MQ\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_MQ=true
shift 1
;;
--call_indels)
[ -n "$VIASH_PAR_CALL_INDELS" ] && ViashError Bad arguments for option \'--call_indels\': \'$VIASH_PAR_CALL_INDELS\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_CALL_INDELS=true
shift 1
;;
--only_indels)
[ -n "$VIASH_PAR_ONLY_INDELS" ] && ViashError Bad arguments for option \'--only_indels\': \'$VIASH_PAR_ONLY_INDELS\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_ONLY_INDELS=true
shift 1
;;
--src_qual)
[ -n "$VIASH_PAR_SRC_QUAL" ] && ViashError Bad arguments for option \'--src_qual\': \'$VIASH_PAR_SRC_QUAL\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_SRC_QUAL=true
shift 1
;;
-s)
[ -n "$VIASH_PAR_SRC_QUAL" ] && ViashError Bad arguments for option \'-s\': \'$VIASH_PAR_SRC_QUAL\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_SRC_QUAL=true
shift 1
;;
--ign_vcf)
[ -n "$VIASH_PAR_IGN_VCF" ] && ViashError Bad arguments for option \'--ign_vcf\': \'$VIASH_PAR_IGN_VCF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_IGN_VCF="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --ign_vcf. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--ign_vcf=*)
[ -n "$VIASH_PAR_IGN_VCF" ] && ViashError Bad arguments for option \'--ign_vcf=*\': \'$VIASH_PAR_IGN_VCF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_IGN_VCF=$(ViashRemoveFlags "$1")
shift 1
;;
-S)
[ -n "$VIASH_PAR_IGN_VCF" ] && ViashError Bad arguments for option \'-S\': \'$VIASH_PAR_IGN_VCF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_IGN_VCF="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -S. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--def_nm_q)
[ -n "$VIASH_PAR_DEF_NM_Q" ] && ViashError Bad arguments for option \'--def_nm_q\': \'$VIASH_PAR_DEF_NM_Q\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_NM_Q="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --def_nm_q. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--def_nm_q=*)
[ -n "$VIASH_PAR_DEF_NM_Q" ] && ViashError Bad arguments for option \'--def_nm_q=*\': \'$VIASH_PAR_DEF_NM_Q\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_NM_Q=$(ViashRemoveFlags "$1")
shift 1
;;
-T)
[ -n "$VIASH_PAR_DEF_NM_Q" ] && ViashError Bad arguments for option \'-T\': \'$VIASH_PAR_DEF_NM_Q\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_DEF_NM_Q="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -T. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--sig)
[ -n "$VIASH_PAR_SIG" ] && ViashError Bad arguments for option \'--sig\': \'$VIASH_PAR_SIG\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_SIG="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --sig. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--sig=*)
[ -n "$VIASH_PAR_SIG" ] && ViashError Bad arguments for option \'--sig=*\': \'$VIASH_PAR_SIG\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_SIG=$(ViashRemoveFlags "$1")
shift 1
;;
-a)
[ -n "$VIASH_PAR_SIG" ] && ViashError Bad arguments for option \'-a\': \'$VIASH_PAR_SIG\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_SIG="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -a. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--bonf)
[ -n "$VIASH_PAR_BONF" ] && ViashError Bad arguments for option \'--bonf\': \'$VIASH_PAR_BONF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_BONF="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --bonf. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--bonf=*)
[ -n "$VIASH_PAR_BONF" ] && ViashError Bad arguments for option \'--bonf=*\': \'$VIASH_PAR_BONF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_BONF=$(ViashRemoveFlags "$1")
shift 1
;;
-b)
[ -n "$VIASH_PAR_BONF" ] && ViashError Bad arguments for option \'-b\': \'$VIASH_PAR_BONF\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_BONF="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -b. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_cov)
[ -n "$VIASH_PAR_MIN_COV" ] && ViashError Bad arguments for option \'--min_cov\': \'$VIASH_PAR_MIN_COV\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_COV="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --min_cov. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--min_cov=*)
[ -n "$VIASH_PAR_MIN_COV" ] && ViashError Bad arguments for option \'--min_cov=*\': \'$VIASH_PAR_MIN_COV\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_COV=$(ViashRemoveFlags "$1")
shift 1
;;
-C)
[ -n "$VIASH_PAR_MIN_COV" ] && ViashError Bad arguments for option \'-C\': \'$VIASH_PAR_MIN_COV\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MIN_COV="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -C. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--max_depth)
[ -n "$VIASH_PAR_MAX_DEPTH" ] && ViashError Bad arguments for option \'--max_depth\': \'$VIASH_PAR_MAX_DEPTH\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MAX_DEPTH="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to --max_depth. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--max_depth=*)
[ -n "$VIASH_PAR_MAX_DEPTH" ] && ViashError Bad arguments for option \'--max_depth=*\': \'$VIASH_PAR_MAX_DEPTH\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MAX_DEPTH=$(ViashRemoveFlags "$1")
shift 1
;;
-d)
[ -n "$VIASH_PAR_MAX_DEPTH" ] && ViashError Bad arguments for option \'-d\': \'$VIASH_PAR_MAX_DEPTH\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_MAX_DEPTH="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to -d. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
--illumina_13)
[ -n "$VIASH_PAR_ILLUMINA_13" ] && ViashError Bad arguments for option \'--illumina_13\': \'$VIASH_PAR_ILLUMINA_13\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_ILLUMINA_13=true
shift 1
;;
--use_orphan)
[ -n "$VIASH_PAR_USE_ORPHAN" ] && ViashError Bad arguments for option \'--use_orphan\': \'$VIASH_PAR_USE_ORPHAN\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_USE_ORPHAN=true
shift 1
;;
--plp_summary_only)
[ -n "$VIASH_PAR_PLP_SUMMARY_ONLY" ] && ViashError Bad arguments for option \'--plp_summary_only\': \'$VIASH_PAR_PLP_SUMMARY_ONLY\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_PLP_SUMMARY_ONLY=true
shift 1
;;
--no_default_filter)
[ -n "$VIASH_PAR_NO_DEFAULT_FILTER" ] && ViashError Bad arguments for option \'--no_default_filter\': \'$VIASH_PAR_NO_DEFAULT_FILTER\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_NO_DEFAULT_FILTER=true
shift 1
;;
--force_overwrite)
[ -n "$VIASH_PAR_FORCE_OVERWRITE" ] && ViashError Bad arguments for option \'--force_overwrite\': \'$VIASH_PAR_FORCE_OVERWRITE\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_FORCE_OVERWRITE=true
shift 1
;;
--verbose)
[ -n "$VIASH_PAR_VERBOSE" ] && ViashError Bad arguments for option \'--verbose\': \'$VIASH_PAR_VERBOSE\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_PAR_VERBOSE=true
shift 1
;;
--debug)
[ -n "$VIASH_PAR_DEBUG" ] && ViashError Bad arguments for option \'--debug\': \'$VIASH_PAR_DEBUG\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
[ -n "$VIASH_META_CPUS" ] && ViashError Bad arguments for option \'---cpus\': \'$VIASH_META_CPUS\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_META_CPUS="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to ---cpus. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
---cpus=*)
[ -n "$VIASH_META_CPUS" ] && ViashError Bad arguments for option \'---cpus=*\': \'$VIASH_META_CPUS\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_META_CPUS=$(ViashRemoveFlags "$1")
shift 1
;;
---memory)
[ -n "$VIASH_META_MEMORY" ] && ViashError Bad arguments for option \'---memory\': \'$VIASH_META_MEMORY\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_META_MEMORY="$2"
[ $# -lt 2 ] && ViashError Not enough arguments passed to ---memory. Use "--help" to get more information on the parameters. && exit 1
shift 2
;;
---memory=*)
[ -n "$VIASH_META_MEMORY" ] && ViashError Bad arguments for option \'---memory=*\': \'$VIASH_META_MEMORY\' \& \'$2\' - you should provide exactly one argument for this option. && exit 1
VIASH_META_MEMORY=$(ViashRemoveFlags "$1")
shift 1
;;
*) # positional arg or unknown option
# since the positional args will be eval'd, can we always quote, instead of using ViashQuote
[[ $1 == -* ]] && ViashWarning $1 looks like a parameter but is not a defined parameter and will instead be treated as a positional argument. Use "--help" to get more information on the parameters.
shift # past argument
;;
esac
done
# parse positional parameters
eval set -- $VIASH_POSITIONAL_ARGS
if [ "$VIASH_ENGINE_ID" == "native" ] ; then
VIASH_ENGINE_TYPE='native'
elif [ "$VIASH_ENGINE_ID" == "docker" ] ; then
VIASH_ENGINE_TYPE='docker'
else
ViashError "Engine '$VIASH_ENGINE_ID' is not recognized. Options are: docker, native."
# The following code has been auto-generated by Viash.
$( if [ ! -z ${VIASH_PAR_INPUT+x} ]; then echo "${VIASH_PAR_INPUT}" | sed "s#'#'\"'\"'#g;s#.*#par_input='&'#" ; else echo "# par_input="; fi )
$( if [ ! -z ${VIASH_PAR_INPUT_BAI+x} ]; then echo "${VIASH_PAR_INPUT_BAI}" | sed "s#'#'\"'\"'#g;s#.*#par_input_bai='&'#" ; else echo "# par_input_bai="; fi )
$( if [ ! -z ${VIASH_PAR_REF+x} ]; then echo "${VIASH_PAR_REF}" | sed "s#'#'\"'\"'#g;s#.*#par_ref='&'#" ; else echo "# par_ref="; fi )
$( if [ ! -z ${VIASH_PAR_OUT+x} ]; then echo "${VIASH_PAR_OUT}" | sed "s#'#'\"'\"'#g;s#.*#par_out='&'#" ; else echo "# par_out="; fi )
$( if [ ! -z ${VIASH_PAR_REGION+x} ]; then echo "${VIASH_PAR_REGION}" | sed "s#'#'\"'\"'#g;s#.*#par_region='&'#" ; else echo "# par_region="; fi )
$( if [ ! -z ${VIASH_PAR_BED+x} ]; then echo "${VIASH_PAR_BED}" | sed "s#'#'\"'\"'#g;s#.*#par_bed='&'#" ; else echo "# par_bed="; fi )
$( if [ ! -z ${VIASH_PAR_MIN_BQ+x} ]; then echo "${VIASH_PAR_MIN_BQ}" | sed "s#'#'\"'\"'#g;s#.*#par_min_bq='&'#" ; else echo "# par_min_bq="; fi )
$( if [ ! -z ${VIASH_PAR_MIN_ALT_BQ+x} ]; then echo "${VIASH_PAR_MIN_ALT_BQ}" | sed "s#'#'\"'\"'#g;s#.*#par_min_alt_bq='&'#" ; else echo "# par_min_alt_bq="; fi )
$( if [ ! -z ${VIASH_PAR_DEF_ALT_BQ+x} ]; then echo "${VIASH_PAR_DEF_ALT_BQ}" | sed "s#'#'\"'\"'#g;s#.*#par_def_alt_bq='&'#" ; else echo "# par_def_alt_bq="; fi )
$( if [ ! -z ${VIASH_PAR_MIN_JQ+x} ]; then echo "${VIASH_PAR_MIN_JQ}" | sed "s#'#'\"'\"'#g;s#.*#par_min_jq='&'#" ; else echo "# par_min_jq="; fi )
$( if [ ! -z ${VIASH_PAR_MIN_ALT_JQ+x} ]; then echo "${VIASH_PAR_MIN_ALT_JQ}" | sed "s#'#'\"'\"'#g;s#.*#par_min_alt_jq='&'#" ; else echo "# par_min_alt_jq="; fi )
$( if [ ! -z ${VIASH_PAR_DEF_ALT_JQ+x} ]; then echo "${VIASH_PAR_DEF_ALT_JQ}" | sed "s#'#'\"'\"'#g;s#.*#par_def_alt_jq='&'#" ; else echo "# par_def_alt_jq="; fi )
$( if [ ! -z ${VIASH_PAR_NO_BAQ+x} ]; then echo "${VIASH_PAR_NO_BAQ}" | sed "s#'#'\"'\"'#g;s#.*#par_no_baq='&'#" ; else echo "# par_no_baq="; fi )
$( if [ ! -z ${VIASH_PAR_NO_IDAQ+x} ]; then echo "${VIASH_PAR_NO_IDAQ}" | sed "s#'#'\"'\"'#g;s#.*#par_no_idaq='&'#" ; else echo "# par_no_idaq="; fi )
$( if [ ! -z ${VIASH_PAR_DEL_BAQ+x} ]; then echo "${VIASH_PAR_DEL_BAQ}" | sed "s#'#'\"'\"'#g;s#.*#par_del_baq='&'#" ; else echo "# par_del_baq="; fi )
$( if [ ! -z ${VIASH_PAR_NO_EXT_BAQ+x} ]; then echo "${VIASH_PAR_NO_EXT_BAQ}" | sed "s#'#'\"'\"'#g;s#.*#par_no_ext_baq='&'#" ; else echo "# par_no_ext_baq="; fi )
$( if [ ! -z ${VIASH_PAR_MIN_MQ+x} ]; then echo "${VIASH_PAR_MIN_MQ}" | sed "s#'#'\"'\"'#g;s#.*#par_min_mq='&'#" ; else echo "# par_min_mq="; fi )
$( if [ ! -z ${VIASH_PAR_MAX_MQ+x} ]; then echo "${VIASH_PAR_MAX_MQ}" | sed "s#'#'\"'\"'#g;s#.*#par_max_mq='&'#" ; else echo "# par_max_mq="; fi )
$( if [ ! -z ${VIASH_PAR_NO_MQ+x} ]; then echo "${VIASH_PAR_NO_MQ}" | sed "s#'#'\"'\"'#g;s#.*#par_no_mq='&'#" ; else echo "# par_no_mq="; fi )
$( if [ ! -z ${VIASH_PAR_CALL_INDELS+x} ]; then echo "${VIASH_PAR_CALL_INDELS}" | sed "s#'#'\"'\"'#g;s#.*#par_call_indels='&'#" ; else echo "# par_call_indels="; fi )
$( if [ ! -z ${VIASH_PAR_ONLY_INDELS+x} ]; then echo "${VIASH_PAR_ONLY_INDELS}" | sed "s#'#'\"'\"'#g;s#.*#par_only_indels='&'#" ; else echo "# par_only_indels="; fi )
$( if [ ! -z ${VIASH_PAR_SRC_QUAL+x} ]; then echo "${VIASH_PAR_SRC_QUAL}" | sed "s#'#'\"'\"'#g;s#.*#par_src_qual='&'#" ; else echo "# par_src_qual="; fi )
$( if [ ! -z ${VIASH_PAR_IGN_VCF+x} ]; then echo "${VIASH_PAR_IGN_VCF}" | sed "s#'#'\"'\"'#g;s#.*#par_ign_vcf='&'#" ; else echo "# par_ign_vcf="; fi )
$( if [ ! -z ${VIASH_PAR_DEF_NM_Q+x} ]; then echo "${VIASH_PAR_DEF_NM_Q}" | sed "s#'#'\"'\"'#g;s#.*#par_def_nm_q='&'#" ; else echo "# par_def_nm_q="; fi )
$( if [ ! -z ${VIASH_PAR_SIG+x} ]; then echo "${VIASH_PAR_SIG}" | sed "s#'#'\"'\"'#g;s#.*#par_sig='&'#" ; else echo "# par_sig="; fi )
$( if [ ! -z ${VIASH_PAR_BONF+x} ]; then echo "${VIASH_PAR_BONF}" | sed "s#'#'\"'\"'#g;s#.*#par_bonf='&'#" ; else echo "# par_bonf="; fi )
$( if [ ! -z ${VIASH_PAR_MIN_COV+x} ]; then echo "${VIASH_PAR_MIN_COV}" | sed "s#'#'\"'\"'#g;s#.*#par_min_cov='&'#" ; else echo "# par_min_cov="; fi )
$( if [ ! -z ${VIASH_PAR_MAX_DEPTH+x} ]; then echo "${VIASH_PAR_MAX_DEPTH}" | sed "s#'#'\"'\"'#g;s#.*#par_max_depth='&'#" ; else echo "# par_max_depth="; fi )
$( if [ ! -z ${VIASH_PAR_ILLUMINA_13+x} ]; then echo "${VIASH_PAR_ILLUMINA_13}" | sed "s#'#'\"'\"'#g;s#.*#par_illumina_13='&'#" ; else echo "# par_illumina_13="; fi )
$( if [ ! -z ${VIASH_PAR_USE_ORPHAN+x} ]; then echo "${VIASH_PAR_USE_ORPHAN}" | sed "s#'#'\"'\"'#g;s#.*#par_use_orphan='&'#" ; else echo "# par_use_orphan="; fi )
$( if [ ! -z ${VIASH_PAR_PLP_SUMMARY_ONLY+x} ]; then echo "${VIASH_PAR_PLP_SUMMARY_ONLY}" | sed "s#'#'\"'\"'#g;s#.*#par_plp_summary_only='&'#" ; else echo "# par_plp_summary_only="; fi )
$( if [ ! -z ${VIASH_PAR_NO_DEFAULT_FILTER+x} ]; then echo "${VIASH_PAR_NO_DEFAULT_FILTER}" | sed "s#'#'\"'\"'#g;s#.*#par_no_default_filter='&'#" ; else echo "# par_no_default_filter="; fi )
$( if [ ! -z ${VIASH_PAR_FORCE_OVERWRITE+x} ]; then echo "${VIASH_PAR_FORCE_OVERWRITE}" | sed "s#'#'\"'\"'#g;s#.*#par_force_overwrite='&'#" ; else echo "# par_force_overwrite="; fi )
$( if [ ! -z ${VIASH_PAR_VERBOSE+x} ]; then echo "${VIASH_PAR_VERBOSE}" | sed "s#'#'\"'\"'#g;s#.*#par_verbose='&'#" ; else echo "# par_verbose="; fi )
$( if [ ! -z ${VIASH_PAR_DEBUG+x} ]; then echo "${VIASH_PAR_DEBUG}" | sed "s#'#'\"'\"'#g;s#.*#par_debug='&'#" ; else echo "# par_debug="; fi )
$( if [ ! -z ${VIASH_META_NAME+x} ]; then echo "${VIASH_META_NAME}" | sed "s#'#'\"'\"'#g;s#.*#meta_name='&'#" ; else echo "# meta_name="; fi )
$( if [ ! -z ${VIASH_META_FUNCTIONALITY_NAME+x} ]; then echo "${VIASH_META_FUNCTIONALITY_NAME}" | sed "s#'#'\"'\"'#g;s#.*#meta_functionality_name='&'#" ; else echo "# meta_functionality_name="; fi )
$( if [ ! -z ${VIASH_META_RESOURCES_DIR+x} ]; then echo "${VIASH_META_RESOURCES_DIR}" | sed "s#'#'\"'\"'#g;s#.*#meta_resources_dir='&'#" ; else echo "# meta_resources_dir="; fi )
$( if [ ! -z ${VIASH_META_EXECUTABLE+x} ]; then echo "${VIASH_META_EXECUTABLE}" | sed "s#'#'\"'\"'#g;s#.*#meta_executable='&'#" ; else echo "# meta_executable="; fi )
$( if [ ! -z ${VIASH_META_CONFIG+x} ]; then echo "${VIASH_META_CONFIG}" | sed "s#'#'\"'\"'#g;s#.*#meta_config='&'#" ; else echo "# meta_config="; fi )
$( if [ ! -z ${VIASH_META_TEMP_DIR+x} ]; then echo "${VIASH_META_TEMP_DIR}" | sed "s#'#'\"'\"'#g;s#.*#meta_temp_dir='&'#" ; else echo "# meta_temp_dir="; fi )
$( if [ ! -z ${VIASH_META_CPUS+x} ]; then echo "${VIASH_META_CPUS}" | sed "s#'#'\"'\"'#g;s#.*#meta_cpus='&'#" ; else echo "# meta_cpus="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_B+x} ]; then echo "${VIASH_META_MEMORY_B}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_b='&'#" ; else echo "# meta_memory_b="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_KB+x} ]; then echo "${VIASH_META_MEMORY_KB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_kb='&'#" ; else echo "# meta_memory_kb="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_MB+x} ]; then echo "${VIASH_META_MEMORY_MB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_mb='&'#" ; else echo "# meta_memory_mb="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_GB+x} ]; then echo "${VIASH_META_MEMORY_GB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_gb='&'#" ; else echo "# meta_memory_gb="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_TB+x} ]; then echo "${VIASH_META_MEMORY_TB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_tb='&'#" ; else echo "# meta_memory_tb="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_PB+x} ]; then echo "${VIASH_META_MEMORY_PB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_pb='&'#" ; else echo "# meta_memory_pb="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_KIB+x} ]; then echo "${VIASH_META_MEMORY_KIB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_kib='&'#" ; else echo "# meta_memory_kib="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_MIB+x} ]; then echo "${VIASH_META_MEMORY_MIB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_mib='&'#" ; else echo "# meta_memory_mib="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_GIB+x} ]; then echo "${VIASH_META_MEMORY_GIB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_gib='&'#" ; else echo "# meta_memory_gib="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_TIB+x} ]; then echo "${VIASH_META_MEMORY_TIB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_tib='&'#" ; else echo "# meta_memory_tib="; fi )
$( if [ ! -z ${VIASH_META_MEMORY_PIB+x} ]; then echo "${VIASH_META_MEMORY_PIB}" | sed "s#'#'\"'\"'#g;s#.*#meta_memory_pib='&'#" ; else echo "# meta_memory_pib="; fi )