diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf index e9e74d68ebae535aa7f99d411e014d9bb8464865..f9c9b3a6d06d0a78fc9b88caab360458c2be9200 100644 --- a/workflow/rna-seq.nf +++ b/workflow/rna-seq.nf @@ -558,14 +558,15 @@ process fastqc { # run fastqc echo -e "LOG: running fastq on raw fastqs" >> ${repRID}.fastqc.log - fastqc *.fastq.gz -o . 2> fastqcErrorOut - fastqcErrorOut=\$(echo \${fastqcErrorOut} | grep -o 'Failed to process file') + fastqc *.fastq.gz -o . 2> fastqcErrorOut.txt + fastqcErrorOut=\$(cat fastqcErrorOut.txt | grep -o 'Failed to process file') fastqFileError=false fastqFileError_details="" if [ "\${fastqcErrorOut}" != "" ] then fastqFileError=true fastqFileError_details="**There is an error with the structure of the fastq**" + touch dummy_fastqc.zip fi # count raw reads