Skip to content
Snippets Groups Projects
Commit 985cef31 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Fix fastqc error detection

parent c36fec03
2 merge requests!65Develop,!64Resolve "samtools sort: couldn't allocate memory for bam_mem"
Pipeline #9061 failed with stages
in 2 hours, 18 minutes, and 2 seconds
......@@ -570,12 +570,11 @@ process fastqc {
# run fastqc
echo -e "LOG: running fastq on raw fastqs" >> ${repRID}.fastqc.log
fastqcErrorOut=false
fastqc *.fastq.gz -o . &> fastqc.out || :
fastqcErrorOut=\$(cat fastqc.out | grep -c 'Failed to process file')
fastqcErrorOut=0
fastqc *.fastq.gz -o . &> fastqc.out || fastqcErrorOut=\$(cat fastqc.out | grep -c 'Failed to process file')
fastqFileError=false
fastqFileError_details=""
if [ "\${fastqcErrorOut}" -gt "0" ]
if [ "\${fastqcErrorOut}" -ne "0" ]
then
fastqFileError=true
fastqFileError_details="**There is an error with the structure of the fastq**"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment