From 329dc950486a3bf73a85680c9779c2528610a8fc Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Thu, 28 Jan 2021 09:38:24 -0600
Subject: [PATCH] Fix metadata echo

---
 workflow/rna-seq.nf | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/workflow/rna-seq.nf b/workflow/rna-seq.nf
index 43aa58e..f669989 100644
--- a/workflow/rna-seq.nf
+++ b/workflow/rna-seq.nf
@@ -2024,22 +2024,22 @@ process aggrQC {
     echo -e "Submitter\t${speciesM}\t${endsM}\t${strandedM}\t${spikeM}\t-\t-\t'${readLengthM}'\t-" >> metadata.tsv
     if [ "${params.speciesForce}" == "" ]
     then
-      input=\$(echo "Inferred\t${speciesI}\t")
+      input=\$(echo -e "Inferred\t${speciesI}\t")
     else
-      input=\$(echo "Inferred\t${speciesI} (FORCED)\t")
+      input=\$(echo -e "Inferred\t${speciesI} (FORCED)\t")
     fi
-    input=\$(echo \${input}"${endsI}\t")
+    input=\$(echo -e \${input}"${endsI}\t")
     if [ "${params.strandedForce}" == "" ]
     then
-      input=\$(echo \${input}"${strandedI}\t")
+      input=\$(echo -e \${input}"${strandedI}\t")
     else
-      input=\$(echo \${input}"${strandedI} (FORCED)\t")
+      input=\$(echo -e \${input}"${strandedI} (FORCED)\t")
     fi
     if [ "${params.spikeForce}" == "" ]
     then
-      input=\$(echo \${input}"${spikeI}\t-\t-\t-\t-")
+      input=\$(echo -e \${input}"${spikeI}\t-\t-\t-\t-")
     else
-      input=\$(echo \${input}"${spikeI} (FORCED)\t-\t-\t-\t-")
+      input=\$(echo -e \${input}"${spikeI} (FORCED)\t-\t-\t-\t-")
     fi
     echo -e \${input} >> metadata.tsv
     echo -e "Measured\t-\t${endsManual}\t-\t-\t'${rawReadsI}'\t'${assignedReadsI}'\t'${readLengthI}'\t'${tinMedI}'" >> metadata.tsv
-- 
GitLab