Mercurial > repos > iuc > masigpro
annotate masigpro.R @ 0:c8c290f3ea7d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
author | iuc |
---|---|
date | Mon, 15 May 2017 07:29:03 -0400 |
parents | |
children | cc96abdef027 |
rev | line source |
---|---|
0
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
1 #!/usr/bin/env Rscript |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
2 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
3 # A command-line interface to maSigPro for use with Galaxy |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
4 # written by Clemens Blank. |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
5 # Thanks to Bjoern Gruening and Michael Love for their DESeq2 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
6 # wrapper as a basis to build upon. |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
7 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
8 # setup R error handling to go to stderr |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
9 options( show.error.messages=F, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } ) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
10 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
11 # we need that to not crash galaxy with an UTF8 error on German LC settings. |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
12 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
13 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
14 suppressPackageStartupMessages({ |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
15 library("maSigPro") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
16 library("optparse") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
17 library("mclust") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
18 }) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
19 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
20 options(stringAsFactors = FALSE, useFancyQuotes = FALSE) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
21 args <- commandArgs(trailingOnly = TRUE) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
22 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
23 # specify our desired options in a list |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
24 # by default OptionParser will add an help option equivalent to |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
25 # make_option(c("-h", "--help"), action="store_true", default=FALSE, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
26 # help="Show this help message and exit") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
27 option_list <- list( |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
28 make_option(c("-q", "--quiet"), action="store_false", |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
29 dest="verbose", help="Print little output"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
30 make_option(c("-e", "--edesign"), type="character"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
31 make_option(c("-d", "--data"), type="character"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
32 make_option(c("-o", "--outfile"), type="character"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
33 make_option("--degree", type="integer", default=1), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
34 make_option("--time_col", type="integer", default=1), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
35 make_option("--repl_col", type="integer", default=2), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
36 make_option("--qvalue", type="double", default=0.05), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
37 make_option("--min_obs", type="integer", default=6), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
38 make_option("--step_method", type="character", default="backward"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
39 make_option("--nvar_correction", type="logical", default=FALSE), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
40 make_option("--alfa", type="double", default=0.05), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
41 make_option("--rsq", type="double", default=0.7), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
42 make_option("--vars", type="character", default="groups"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
43 make_option("--significant_intercept", type="character", default="dummy"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
44 make_option("--cluster_data", type="integer", default=1), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
45 make_option(c("-k", "--k"), type="integer", default=9), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
46 make_option("--cluster_method", type="character", default="hclust"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
47 make_option("--distance", type="character", default="cor"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
48 make_option("--agglo_method", type="character", default="ward.D"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
49 make_option("--iter_max", type="integer", default=500), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
50 make_option("--color_mode", type="character", default="rainbow"), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
51 make_option("--show_fit", type="logical", default=TRUE), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
52 make_option("--show_lines", type="logical", default=TRUE), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
53 make_option("--cexlab", type="double", default=0.8), |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
54 make_option("--legend", type="logical", default=TRUE) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
55 ) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
56 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
57 # get command line options, if help option encountered print help and exit, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
58 # otherwise if options not found on command line then set defaults |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
59 opt <- parse_args(OptionParser(option_list=option_list)) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
60 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
61 # enforce the following required arguments |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
62 if (is.null(opt$edesign)) { |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
63 cat("'edesign' is required\n") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
64 q(status=1) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
65 } |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
66 if (is.null(opt$data)) { |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
67 cat("'data' is required\n") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
68 q(status=1) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
69 } |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
70 if (is.null(opt$outfile)) { |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
71 cat("'outfile' is required\n") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
72 q(status=1) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
73 } |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
74 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
75 verbose <- if (is.null(opt$quiet)) { |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
76 TRUE |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
77 } else { |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
78 FALSE |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
79 } |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
80 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
81 edesign <- as.matrix(read.table(opt$edesign, header=TRUE, row.names = 1)) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
82 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
83 data <- read.table(opt$data, header=TRUE) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
84 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
85 results <- maSigPro(data, edesign, degree = opt$degree, time.col = opt$time_col, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
86 repl.col = opt$repl_col, Q = opt$qvalue, min.obs = opt$min_obs, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
87 step.method = opt$step_method, nvar.correction = opt$nvar_correction, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
88 alfa = opt$alfa, rsq = opt$rsq, vars = opt$vars, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
89 significant.intercept = opt$significant_intercept, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
90 cluster.data = opt$cluster_data, k = opt$k, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
91 cluster.method = opt$cluster_method, distance = opt$distance, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
92 agglo.method = opt$agglo_method, iter.max = opt$iter_max, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
93 color.mode = opt$color_mode, show.fit = opt$show_fit, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
94 show.lines = opt$show_lines, cexlab = opt$cexlab, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
95 legend = opt$legend) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
96 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
97 filename <- opt$outfile |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
98 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
99 write.table((results$summary), file=filename, sep="\t", quote=FALSE, |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
100 row.names=FALSE, col.names=TRUE) |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
101 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
102 cat("Session information:\n\n") |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
103 |
c8c290f3ea7d
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/masigpro commit 5798bd978553dee97521c39920d263dd750e0755
iuc
parents:
diff
changeset
|
104 sessionInfo() |