Commit fc514a3c authored by TomKellyGenetics's avatar TomKellyGenetics
Browse files

correct detecting extension for linked gz files

parent 42fa8e92
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -330,14 +330,14 @@ for i in {1..2}; do
                exit 1
            fi
         #allow detection of file extension (needed for --file input)
         elif [ -f ${read}.fq ] || [ ! -h ${read}.fq ]; then
         elif [ -f ${read}.fq ] || [ -h ${read}.fq ]; then
             read=${read}.fq
         elif [ -f ${read}.fastq ] || [ ! -h ${read}.fastq ]; then
         elif [ -f ${read}.fastq ] || [ -h ${read}.fastq ]; then
             read=${read}.fastq
         elif [ -f ${read}.fq.gz ] || [ ! -h ${read}.fq.gz ]; then
         elif [ -f ${read}.fq.gz ] || [ -h ${read}.fq.gz ]; then
             gunzip -f -k ${read}.fq.gz
             read=${read}.fq
         elif [ -f ${read}.fastq.gz ] || [ ! -h ${read}.fastq.gz ]; then
         elif [ -f ${read}.fastq.gz ] || [ -h ${read}.fastq.gz ]; then
             gunzip -f -k ${read}.fastq.gz
             read=${read}.fastq
        else