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

Fix bash int if comparison for fastq number check

parent dc3c7ff4
2 merge requests!58Develop,!56Resolve "Detect error in inferMetadata for tracking"
Pipeline #8785 passed with stages
in 4 minutes and 21 seconds
......@@ -338,15 +338,15 @@ process parseMetadata {
# check not incorrect number of fastqs
fastqCountError=false
fastqCountError_details=""
if [ ${fastqCount} > 2 ]
if [ "${fastqCount}" -gt "2" ]
then
fastqCountError=true
fastqCountError_details="Too many fastqs detected (>2)"
elif [ "\${endsMeta}"" == "Single Read" ] && [ ${fastqCount} != 1 ]
elif [ "\${endsMeta}"" == "Single Read" ] && [ "${fastqCount}" -ne "1" ]
then
fastqCountError=true
fastqCountError_details="Number of fastqs detected does not match submitted endness"
elif [ "\${endsMeta}"" == "Paired End" ] && [ ${fastqCount} != 2 ]
elif [ "\${endsMeta}"" == "Paired End" ] && [ "${fastqCount}" -ne "2" ]
then
fastqCountError=true
fastqCountError_details="Number of fastqs detected does not match submitted endness"
......
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