diff --git a/alignment/hisat_genotype.sh b/alignment/hisat_genotype.sh index 6e225ebcf6f4ceebecc3a15982d70dc9ef4e9dd1..32d5d4dc1ecd6aea92f0d7a1ba4dab6041ef94a2 100644 --- a/alignment/hisat_genotype.sh +++ b/alignment/hisat_genotype.sh @@ -11,10 +11,9 @@ usage() { exit 1 } OPTIND=1 # Reset OPTIND -while getopts :r:x:y:p:uh opt +while getopts :x:y:p:uh opt do case $opt in - r) index_path=$OPTARG;; x) fq1=$OPTARG;; y) fq2=$OPTARG;; u) umi='umi';; @@ -26,7 +25,7 @@ done shift $(($OPTIND -1)) # Check for mandatory options -if [[ -z $pair_id ]] || [[ -z $index_path ]]; then +if [[ -z $pair_id ]]; then usage fi diff --git a/variants/svcalling.sh b/variants/svcalling.sh index 17bc77001347e37a528075d1f4da81ba0acf28c4..512fea26b84120c6c152a7de4b6fca04cadf5611 100755 --- a/variants/svcalling.sh +++ b/variants/svcalling.sh @@ -11,7 +11,7 @@ usage() { exit 1 } OPTIND=1 # Reset OPTIND -while getopts :r:p:b:i:e:n:a:h opt +while getopts :r:p:b:i:n:a:h opt do case $opt in r) index_path=$OPTARG;;