comparison kegg_maps_visualization.R @ 3:dfceadc0b703 draft

planemo upload commit 4ba1ebe7b3f5e3fabf78b5fed7ed0b92e2cbf9e5-dirty
author proteore
date Fri, 28 Jun 2019 05:16:30 -0400
parents 6f389729a30b
children 8e611bdc96ec
comparison
equal deleted inserted replaced
2:6ca99419207d 3:dfceadc0b703
73 string <- gsub("X","",string) 73 string <- gsub("X","",string)
74 return(string) 74 return(string)
75 } 75 }
76 76
77 get_list_from_cp <-function(list){ 77 get_list_from_cp <-function(list){
78 list = gsub(";","\t",list)
78 list = gsub(",","\t",list) 79 list = gsub(",","\t",list)
79 list = strsplit(list, "[ \t\n]+")[[1]] 80 list = strsplit(list, "[ \t\n]+")[[1]]
80 list = list[list != ""] #remove empty entry 81 list = list[list != ""] #remove empty entry
81 list = gsub("-.+", "", list) #Remove isoform accession number (e.g. "-2") 82 list = gsub("-.+", "", list) #Remove isoform accession number (e.g. "-2")
82 return(list) 83 return(list)