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

Make dummy fastqc output if fail

parent f7559c64
Branches
Tags
2 merge requests!65Develop,!64Resolve "samtools sort: couldn't allocate memory for bam_mem"
Pipeline #9049 failed with stages
in 2 minutes and 6 seconds
......@@ -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
......
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