From d2c5476d0e274a816edf7c665d90a8b211db8a1c Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Wed, 5 May 2021 14:40:01 +0200
Subject: [PATCH] alntools: update params names

---
 src/nf_modules/alntools/main.nf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/nf_modules/alntools/main.nf b/src/nf_modules/alntools/main.nf
index ef1e879e..148e976b 100644
--- a/src/nf_modules/alntools/main.nf
+++ b/src/nf_modules/alntools/main.nf
@@ -21,16 +21,16 @@ process bam2ec {
 
   script:
 """
-awk -F"[\t;]" '
+awk -F"[\\t;]" '
 \$3=="exon" {
         ID=gensub(/transcript_id \"(.*)\"/, "\\1", "g", \$11); 
         LEN[ID]+=\$5-\$4+1;
     } 
 END{
     for(i in LEN)
-        {print i"\t"LEN[i]}
+        {print i"\\t"LEN[i]}
     }
 ' ${gtf} > ${gtf.simpleName}_transcripts_lengths.tsv
-alntools bam2ec ${params.bam2sec} -t ${gtf.simpleName}_transcripts_lengths.tsv -c 8 ${bam} ${bam.simpleName}.bin
+alntools bam2ec ${params.bam2ec} -t ${gtf.simpleName}_transcripts_lengths.tsv -c 8 ${bam} ${bam.simpleName}.bin
 """
 }
\ No newline at end of file
-- 
GitLab