diff signature.r @ 12:aa5e2c64dff8 draft

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/small_rna_signatures commit 6806c0677e53d52164707faeb36947987f5c500a
author artbio
date Sat, 22 Oct 2022 23:49:52 +0000
parents 8d3ca9652a5b
children 5150d641d515
line wrap: on
line diff
--- a/signature.r	Sat Oct 23 22:55:19 2021 +0000
+++ b/signature.r	Sat Oct 22 23:49:52 2022 +0000
@@ -1,8 +1,8 @@
 ## Setup R error handling to go to stderr
-options(show.error.messages = F,
+options(show.error.messages = FALSE,
         error = function() {
             cat(geterrmessage(), file = stderr())
-            q("no", 1, F)
+            q("no", 1, FALSE)
         }
 )
 warnings()
@@ -26,12 +26,12 @@
     )
 parser <- OptionParser(usage = "%prog [options] file", option_list = option_list)
 args <- parse_args(parser)
- 
+
 # data frames implementation
-h_dataframe <- read.delim(args$h_dataframe, header = F)
+h_dataframe <- read.delim(args$h_dataframe, header = FALSE)
 colnames(h_dataframe) <- c("chrom", "overlap", "sig", "z-score")
 h_dataframe$sig <- h_dataframe$sig * 100  # to get probs in %
-z_dataframe <- read.delim(args$z_dataframe, header = F)
+z_dataframe <- read.delim(args$z_dataframe, header = FALSE)
 colnames(z_dataframe) <- c("chrom", "overlap", "sig", "z-score")
 
 # functions
@@ -77,7 +77,7 @@
                    pch = 19, lwd = 2,
                    as.table = TRUE,
                    layout = c(2, 12),
-                   newpage = T,
+                   newpage = TRUE,
                    ...)
            plot(p)
            dev.off()