comparison lib.r @ 37:636e36a64d31 draft

planemo upload commit a5f400649acb64e1c66a92379027ac5abdb4f546
author lecorguille
date Tue, 09 Apr 2019 11:36:39 -0400
parents b6a8143c397c
children db9bc2c27a0a
comparison
equal deleted inserted replaced
36:b6a8143c397c 37:636e36a64d31
34 } 34 }
35 35
36 #@author G. Le Corguille 36 #@author G. Le Corguille
37 #The function create a zip archive from the different png generated by diffreport 37 #The function create a zip archive from the different png generated by diffreport
38 diffreport_png2zip <- function() { 38 diffreport_png2zip <- function() {
39 zip("eic.zip",dir(pattern="_eic")) 39 zip("eic.zip", dir(pattern="_eic"), zip=Sys.which("zip"))
40 zip("box.zip",dir(pattern="_box")) 40 zip("box.zip", dir(pattern="_box"), zip=Sys.which("zip"))
41 } 41 }
42 42
43 #The function create a zip archive from the different tabular generated by diffreport 43 #The function create a zip archive from the different tabular generated by diffreport
44 diffreport_tabular2zip <- function() { 44 diffreport_tabular2zip <- function() {
45 zip("tabular.zip",dir(pattern="tabular/*")) 45 zip("tabular.zip", dir(pattern="tabular/*"), zip=Sys.which("zip"))
46 } 46 }
47 47
48 #@author G. Le Corguille 48 #@author G. Le Corguille
49 #This function convert if it is required the Retention Time in minutes 49 #This function convert if it is required the Retention Time in minutes
50 RTSecondToMinute <- function(variableMetadata, convertRTMinute) { 50 RTSecondToMinute <- function(variableMetadata, convertRTMinute) {
150 150
151 if(listArguments[["sortpval"]]){ 151 if(listArguments[["sortpval"]]){
152 diffrep=diffrep[order(diffrep$pvalue), ] 152 diffrep=diffrep[order(diffrep$pvalue), ]
153 } 153 }
154 154
155 dir.create("tabular") 155 dir.create("tabular", showWarnings = FALSE)
156 write.table(diffrep, sep="\t", quote=FALSE, row.names=FALSE, file=paste("tabular/",filebase,"_tsv.tabular",sep="")) 156 write.table(diffrep, sep="\t", quote=FALSE, row.names=FALSE, file=paste("tabular/",filebase,"_tsv.tabular",sep=""))
157 157
158 if (listArguments[["eicmax"]] != 0) { 158 if (listArguments[["eicmax"]] != 0) {
159 if (listArguments[["png2"]] == "pdf") 159 if (listArguments[["png2"]] == "pdf")
160 diffreport_png2pdf(filebase) 160 diffreport_png2pdf(filebase)