changeset 13:0116d444d21f draft

planemo upload commit a957a9b76923f071837aa5d86c1ee2271ebd34fd-dirty
author proteore
date Mon, 11 Mar 2019 12:38:55 -0400
parents 1a4cfa7a3a27
children fc669cb6ae64
files add_protein_features.R add_protein_features.xml
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/add_protein_features.R	Mon Mar 11 09:16:00 2019 -0400
+++ b/add_protein_features.R	Mon Mar 11 12:38:55 2019 -0400
@@ -194,7 +194,7 @@
     res = res[!duplicated(res$NextprotID),]
     output_content = merge(file, res,by.x=ncol,by.y="NextprotID",incomparables = NA,all.x=T)
     output_content = order_columns(output_content,ncol,id_type,file)
-    output_content = output_content[,-which(colnames(output_content)=="NextprotID")]      #remove nextprotID column
+    if (id_type=="Uniprot_AC"){output_content = output_content[,-which(colnames(output_content)=="NextprotID")]}      #remove nextprotID column
     output_content <- as.data.frame(apply(output_content, c(1,2), function(x) gsub("^$|^ $", NA, x)))  #convert "" et " " to NA
     write.table(output_content, output, row.names = FALSE, sep = "\t", quote = FALSE)
   } 
--- a/add_protein_features.xml	Mon Mar 11 09:16:00 2019 -0400
+++ b/add_protein_features.xml	Mon Mar 11 12:38:55 2019 -0400
@@ -1,4 +1,4 @@
-<tool id="prot_features" name="Add protein features" version="2019.03.11">
+<tool id="prot_features" name="Add protein features" version="2019.03.12">
 <description>[neXtProt]
 </description>
 <requirements>