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

Fix fastq file error detection

parent 3b6afce4
Branches
Tags
2 merge requests!65Develop,!64Resolve "samtools sort: couldn't allocate memory for bam_mem"
......@@ -558,15 +558,18 @@ process fastqc {
# run fastqc
echo -e "LOG: running fastq on raw fastqs" >> ${repRID}.fastqc.log
fastqc *.fastq.gz -o . 2> fastqcErrorOut.txt
fastqcErrorOut=\$(cat fastqcErrorOut.txt | grep -o 'Failed to process file')
fastqcErrorOut=false
fastqc *.fastq.gz -o . || fastqcErrorOut=true
fastqFileError=false
fastqFileError_details=""
if [ "\${fastqcErrorOut}" != "" ]
if [ "\${fastqcErrorOut}" == "true" ]
then
fastqFileError=true
fastqFileError_details="**There is an error with the structure of the fastq**"
echo -e "LOG: There is an error with the structure of the fastq" >> ${repRID}.fastqc.log
touch dummy_fastqc.zip
else
echo -e "LOG: The structure of the fastq is correct" >> ${repRID}.fastqc.log
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