Commit f749ed07 authored by kai.b's avatar kai.b
Browse files

minor bug fixes

parents b12f3d3b 007cf206
Loading
Loading
Loading
Loading
+16 −1
Original line number Diff line number Diff line
@@ -828,6 +828,9 @@ fi

#####Input file curation 2: Check R1, R2, I1, and I2 files for their extensions#####
##allows incomplete file names and processing compressed files
if [[ $verbose ]]; then
    echo "key: ${keys[@]}"
fi
for key in ${keys[@]}; do
    readkey=$key
    list=()
@@ -1114,7 +1117,14 @@ elif [[ ${#index1[@]} -gt 0 ]]; then
    read12=("${read1[@]}" "${read2[@]}" "${index1[@]}")
fi

if [[ $verbose ]]; then
    echo "reads:" ${read12[@]}
fi

for fq in "${read12[@]}"; do
    if [[ $verbose ]]; then
        echo "read: $fq"
    fi
    name=`basename $fq`
    name=${name%.*}
    fields=`echo ${name} | grep -o "_" | wc -l`
@@ -1133,6 +1143,11 @@ for fq in "${read12[@]}"; do
	exit 1
    fi

    if [[ $verbose == true ]]; then
       echo "SAMPLE: $SAMPLE"
       echo "sample (field): $sn"
    fi

    if [[ ${sn} != $SAMPLE ]]; then
        if [[ -z $SAMPLE ]]; then
            SAMPLE=${sn}
Loading