diff kegg_maps_visualization.R @ 8:ab697ebe0f41 draft

"planemo upload commit 7e03a2492a127f75ab5d896a8a9dd21d64f7890e-dirty"
author proteore
date Mon, 06 Jan 2020 16:26:09 +0000
parents f4e02d20546b
children 9ac0ade20b3f
line wrap: on
line diff
--- a/kegg_maps_visualization.R	Thu Jun 27 07:45:25 2019 -0400
+++ b/kegg_maps_visualization.R	Mon Jan 06 16:26:09 2020 +0000
@@ -85,8 +85,8 @@
 
 get_ref_pathways <- function(species){
   ##all available pathways for the species
-  pathways <-keggLink("pathway", species)
-  tot_path<-unique(pathways)
+  pathways <- keggLink("pathway", species)
+  tot_path <- unique(pathways)
   
   ##formating the dat into a list object
   ##key= pathway ID, value = genes of the pathway in the kegg format
@@ -238,6 +238,7 @@
     pathways_file = read_file(args$pathways_input,header2)
     ids <- sapply(rapply(strsplit(clean_bad_character(pathways_file[,pathway_col]),","),c), function(x) remove_kegg_prefix(x),USE.NAMES = FALSE)
   }
+  if (args$native_kegg) { ids <- ids[-grep("04215",ids)] }
   pathways_list <- read_file(args$pathways_list,F)
   if (!is.null(args$id_list)) {
     id_list <- get_list_from_cp(args$id_list)