From dbdd44e311b4fc4dc9f43641153bb406c95a3cf7 Mon Sep 17 00:00:00 2001
From: Laurent Modolo <laurent.modolo@ens-lyon.fr>
Date: Tue, 24 Oct 2017 13:00:14 +0200
Subject: [PATCH] RSEM: add module unload

---
 modulefiles/RSEM/1.3.0 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modulefiles/RSEM/1.3.0 b/modulefiles/RSEM/1.3.0
index d8a1ae9..d04108d 100644
--- a/modulefiles/RSEM/1.3.0
+++ b/modulefiles/RSEM/1.3.0
@@ -59,12 +59,18 @@ conflict $modname
 if [ module-info mode load ] {
   prereq Base/psmn
   module load python/2.7
-  prereq python/2.7
   module load Bowtie2/2.3.2
   module load R/3.0.2
+  prereq python/2.7
   prereq Bowtie2/2.3.2
   prereq R/3.0.2
 }
 
+if [ module-info mode remove ] {
+  module unload python/2.7
+  module unload Bowtie2/2.3.2
+  module unload R/3.0.2
+}
+
 prepend-path    PATH            $modroot/bin
 setenv          RSEM_PATH       $modroot/bin
-- 
GitLab