diff GO-enrich.R @ 32:f2c0a2b44841 draft

planemo upload commit bfee528de437dc698b227a274983af3f3106cbb3-dirty
author proteore
date Mon, 18 Feb 2019 11:25:59 -0500
parents b62fd03a3822
children 4b29214f2d4c
line wrap: on
line diff
--- a/GO-enrich.R	Fri Dec 21 03:55:25 2018 -0500
+++ b/GO-enrich.R	Mon Feb 18 11:25:59 2019 -0500
@@ -156,9 +156,12 @@
   #save(args,file="/home/dchristiany/proteore_project/ProteoRE/tools/cluster_profiler/args.Rda")
   #load("/home/dchristiany/proteore_project/ProteoRE/tools/cluster_profiler/args.Rda")
   
-  plot = unlist(strsplit(args$plot,","))
+  
   go_represent=str2bool(args$go_represent)
   go_enrich=str2bool(args$go_enrich)
+  if (go_enrich){
+    plot = unlist(strsplit(args$plot,","))
+  }
   
   suppressMessages(library(args$species, character.only = TRUE, quietly = TRUE))