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

Fix file structure error detection

parent 9c9d4191
Branches
Tags
2 merge requests!65Develop,!64Resolve "samtools sort: couldn't allocate memory for bam_mem"
......@@ -564,10 +564,11 @@ process fastqc {
# run fastqc
echo -e "LOG: running fastq on raw fastqs" >> ${repRID}.fastqc.log
fastqcErrorOut=false
fastqc *.fastq.gz -o . || fastqcErrorOut=true
fastqc *.fastq.gz -o . &> fastqc.out || :
fastqcErrorOut=\$(cat fastqc.out | grep -c 'Failed to process file')
fastqFileError=false
fastqFileError_details=""
if [ "\${fastqcErrorOut}" == "true" ]
if [ "\${fastqcErrorOut}" -gt "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