annotate r-gpca.R @ 0:ed24bacaa4d0 draft

planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
author blankenberglab
date Mon, 19 Nov 2018 10:15:19 -0500
parents
children d93629e79f5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
1 #!/usr/bin/env Rscript
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
2 library(optparse)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
3 library(gPCA)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
4
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
5
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
6 # parse options
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
7 option_list = list(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
8 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
9 c("--version"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
10 action = "store_true",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
11 default = FALSE,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
12 help = "Print version and exit"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
13 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
14 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
15 c("-i", "--batch"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
16 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
17 default = NA,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
18 type = 'character',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
19 help = "Input batch"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
20 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
21 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
22 c("-d", "--data"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
23 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
24 default = NA,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
25 type = 'character',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
26 help = "Input data"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
27 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
28 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
29 c("-n", "--nperm"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
30 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
31 default = 1000,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
32 type = 'numeric',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
33 help = "Number of permutations to preform"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
34 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
35 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
36 c("-c", "--center"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
37 action = "store_true",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
38 default = FALSE,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
39 help = "Is the input batch and data centered [default %default]"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
40 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
41 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
42 c("-y", "--scaleY"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
43 action = "store_true",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
44 default = FALSE,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
45 help = "Scale to Y axis"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
46 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
47 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
48 c("-f", "--filt"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
49 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
50 default = NULL,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
51 type = 'numeric',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
52 help = "Retain features"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
53 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
54 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
55 c( "--npcs"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
56 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
57 default = 3,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
58 type = 'numeric',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
59 help = "Number of principal components to plot"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
60 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
61 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
62 c("-p", "--path"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
63 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
64 default = '$html_outfile.extra_files_path',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
65 type = 'character',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
66 help = "File path"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
67 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
68 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
69 c("-s", "--seed"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
70 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
71 default = NULL,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
72 type = 'numeric',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
73 help = "Set a seed number"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
74 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
75 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
76 c("-x", "--numbers_outfile"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
77 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
78 default = NA,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
79 type = 'character',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
80 help = "Numbers output"
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
81 ),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
82 make_option(
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
83 c("-o", "--html_outfile"),
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
84 action = "store",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
85 default = NA,
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
86 type = 'character',
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
87 help = "Output",
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
88 )
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
89 )
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
90
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
91 opt <-parse_args(OptionParser(option_list = option_list))
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
92
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
93 if (opt$version){
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
94 # print version and exit
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
95 cat(paste("gPCA version", toString(packageVersion("gPCA"))), "\n")
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
96 quit()
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
97 }
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
98
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
99 # Check parameter values
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
100
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
101 if ( ! file.exists(opt$batch)){
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
102 stop((paste('File for batch', opt$batch, 'does not exist')))
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
103 }
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
104 if ( ! file.exists(opt$data)){
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
105 stop((paste('File for data', opt$data, 'does not exist')))
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
106 }
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
107
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
108 batch<-as.numeric(factor(as.matrix(read.delim(opt$batch, header=TRUE, row.names=1, sep="\t"))))
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
109
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
110 data<-t(as.matrix(read.delim(opt$data, row.names=1, header=TRUE, sep="\t")))
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
111
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
112 out<-gPCA.batchdetect(x=data, batch=batch, center=opt$center, scaleY=opt$scaleY, nperm=opt$nperm, filt=opt$filt, seed=opt$seed)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
113
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
114 out$varPCg1<-((out$varPCg1-out$varPCu1)/out$varPCg1)*100
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
115
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
116 dir.create(opt$path);
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
117
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
118 write.table(data.frame(out$delta, out$p.val, out$varPCg1),file=opt$numbers_outfile, sep="\t", row.name=FALSE, quote=FALSE)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
119
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
120 # General Distribution
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
121 par(mai=c(0.8,0.8,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
122 png(paste(opt$path,'/gDist.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
123 gDist(out)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
124 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
125
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
126
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
127 # Guided/Unguided 1v2
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
128 par(mai=c(0.8,0.8,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
129 png(paste(opt$path,'/guided_1v2.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
130 PCplot(out,ug="unguided",type="1v2")
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
131 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
132
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
133 par(mai=c(0.8,0.8,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
134 png(paste(opt$path,'/unguided_1v2.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
135 PCplot(out,ug="unguided",type="1v2")
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
136 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
137
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
138
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
139 # Guided/Unguided comp,3
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
140 par(mai=c(0.65,0.65,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
141 png(paste(opt$path,'/guided_npcs.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
142 PCplot(out,ug="guided",type="comp",npcs=opt$npcs)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
143 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
144
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
145 par(mai=c(0.65,0.65,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
146 png(paste(opt$path,'/unguided_npcs.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
147 PCplot(out,ug="unguided",type="comp",npcs=opt$npcs)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
148 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
149
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
150
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
151 # Guided/Unguided CumlativeVarPlot
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
152 par(mai=c(0.8,0.8,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
153 png(paste(opt$path,'/guided_var.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
154 CumulativeVarPlot(out,ug="guided",col="blue")
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
155 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
156
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
157 par(mai=c(0.8,0.8,0.1,0.1),cex=0.8)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
158 png(paste(opt$path,'/unguided_var.png', sep=""), width=1020, height=800, units='px')
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
159 CumulativeVarPlot(out,ug="unguided",col="blue")
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
160 invisible(dev.off())
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
161
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
162
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
163 write(paste('<html>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
164 <table id="r-gpca-wrap" align="center" border="1">
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
165 <tr>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
166 <th>Delta</th><th>P-value</th><th>varPCg1</th>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
167 </tr>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
168 <tr>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
169 <td id=delta>',out$delta,'</td><td id=p.val>',out$p.val,'</td><td id=varPCg1>',out$varPCg1,'</td>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
170 </tr>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
171 </table>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
172
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
173 <center><img src="gDist.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
174 <center><title>Guided 1v2</title><br><img src="guided_1v2.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
175 <center><title>Unguided 1v2</title><br><img src="unguided_1v2.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
176
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
177 <center><title>Guided Compare to ',opt$npcs,'</title><br><img src="guided_npcs.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
178 <center><title>Unguided Compare to ',opt$npcs,'</title><br><img src="unguided_npcs.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
179
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
180 <center><title>Guided Cumulative Variance</title><br><img src="guided_var.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
181 <center><title>Unguided Cumulative Variance</title><br><img src="unguided_var.png"/></center><br>
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
182
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
183 </html>'
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
184 ),file = opt$html_outfile)
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
185
ed24bacaa4d0 planemo upload for repository https://github.com/blankenberglab/galaxy-tools-blankenberg/tree/master/tools/r-gpca commit ec2f585063522efa001e4d2a639e92a67758ad8c-dirty
blankenberglab
parents:
diff changeset
186 sessionInfo()