From 72580e6b9cbfee0ef1b5c7f9bc7e6c0e52b813dd Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Mon, 19 Jul 2021 10:07:06 +0200
Subject: [PATCH] kb: create a backup of t2g.txt as kb rewrite it

---
 src/nf_modules/kb/main.nf | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/nf_modules/kb/main.nf b/src/nf_modules/kb/main.nf
index 2df29caa..9e4cfec2 100644
--- a/src/nf_modules/kb/main.nf
+++ b/src/nf_modules/kb/main.nf
@@ -37,7 +37,8 @@ process tr2g {
   script:
   """
   t2g.py --gtf ${gtf}
-  uniq t2g_dup.txt > t2g.txt
+  sort -u t2g_dup.txt > t2g.txt
+  rm t2g_dup.txt
   """
 }
 
-- 
GitLab