diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf index 7cfff2c9a18b89f6a6f7f415214d62d53a309e0c..c7da457756aa5fd0bf18538b88456d93fddf798e 100644 --- a/workflow/rna-seq.nf +++ b/workflow/rna-seq.nf @@ -875,19 +875,21 @@ process checkMetadata { fi if [ "${strandedMeta}" != "${strandedInfer}" ] then - if [ "${strandedMeta}" == "unstranded" ] - then - pipelineError=true - pipelineError_stranded=true - echo -e "LOG: stranded does not match: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log - elif [ "${strandedInfer}" != "forward"] || [ "${strandedInfer}" != "reverse" ] + pipelineError=true + pipelineError_stranded=true + echo -e "LOG: stranded does not match: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log + if [ "${strandedMeta}" == "stranded" ] then - pipelineError=true - pipelineError_stranded=true - echo -e "LOG: stranded does not match: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log + if [ "${strandedInfer}" == "forward"] || [ "${strandedInfer}" == "reverse" ] + then + pipelineError=false + pipelineError_stranded=false + echo -e "LOG: stranded matches: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log + else + echo -e "LOG: stranded does not match: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log + fi else - pipelineError_stranded=false - echo -e "LOG: stranded matches: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log + echo -e "LOG: stranded does not match: Submitted=${strandedMeta}; Infered=${strandedInfer}" >> ${repRID}.checkMetadata.log fi else pipelineError_stranded=false