Mercurial > repos > iuc > ggplot2_heatmap
annotate ggplot2_heatmap.xml @ 0:f44dc95928aa draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
author | iuc |
---|---|
date | Mon, 11 Jun 2018 16:04:51 -0400 |
parents | |
children | 391a4cc45fea |
rev | line source |
---|---|
0
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
1 <tool id="ggplot2_heatmap" name="Heatmap w ggplot" version="@VERSION@"> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
2 <macros> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
3 <import>macros.xml</import> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
4 </macros> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
5 <requirements> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
6 <requirement type="package" version="0.9.2">r-cowplot</requirement> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
7 <requirement type="package" version="0.2.0">r-egg</requirement> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
8 <requirement type="package" version="0.1_20">r-ggdendro</requirement> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
9 <requirement type="package" version="0.7.4">r-dplyr</requirement> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
10 <requirement type="package" version="1.4.3">r-reshape2</requirement> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
11 <requirement type="package" version="1.2.1">r-svglite</requirement> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
12 </requirements> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
13 <command detect_errors="exit_code"><![CDATA[ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
14 cat '$script' && |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
15 Rscript '$script' |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
16 ]]></command> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
17 <configfiles> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
18 <configfile name="script"><![CDATA[ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
19 @R_INIT@ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
20 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
21 ## Import library |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
22 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
23 library(ggplot2) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
24 library(cowplot) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
25 library(egg) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
26 library(dplyr) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
27 library(ggdendro) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
28 library(reshape2) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
29 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
30 input <- '$input1' |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
31 header <- ${inputdata.header} |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
32 rowname_index <- as.integer('$inputdata.row_names_index') |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
33 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
34 transform <- '$adv.transform' |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
35 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
36 ## read table with or with out header or row_names |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
37 if(rowname_index > 0){ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
38 df <- read.table(input, header = header, row.names = rowname_index, sep = "\t") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
39 }else{ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
40 df <- read.table(input, header = header, sep = "\t") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
41 } |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
42 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
43 hclust_fun = function(x) hclust(x, method="complete") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
44 dist_fun = function(x) dist(x, method="maximum") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
45 distfun=dist_fun |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
46 hclustfun=hclust_fun |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
47 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
48 plot_mat <- df |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
49 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
50 ## transform dataset |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
51 if(transform == "log2"){ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
52 plot_mat <- log2(plot_mat) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
53 cat("\n ", transform, " transformed") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
54 }else if(transform == "log2plus1"){ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
55 plot_mat <- log2(plot_mat+1) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
56 cat("\n ", transform, " transformed") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
57 }else if(transform == "log10"){ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
58 plot_mat <- log10(plot_mat) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
59 cat("\n ", transform, " transformed") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
60 }else if(transform == "log10plus1"){ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
61 plot_mat <- log10(plot_mat+1) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
62 cat("\n ", transform, " transformed") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
63 }else{ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
64 plot_mat <- plot_mat |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
65 } |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
66 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
67 #if $adv.colorscheme == "whrd" |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
68 colorscale = scale_fill_gradient(low="white", high="red", guide="colorbar") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
69 #elif $adv.colorscheme == "whblu" |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
70 colorscale = scale_fill_gradient(low="white", high="blue", guide="colorbar") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
71 #elif $adv.colorscheme == "blwhre" |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
72 colorscale = scale_fill_gradient2(low="blue", mid="white", high="red", guide="colorbar") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
73 #end if |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
74 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
75 plot_mat["rows"] <- row.names(plot_mat) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
76 plot_mat.melt <- melt(plot_mat, id.vars = "rows") |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
77 names(plot_mat.melt)[2] <- "cols" |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
78 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
79 #if $adv.cluster: |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
80 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
81 plot_mat.dendo <- as.dendrogram(hclust(d = dist(x = subset(plot_mat, select = -rows)))) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
82 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
83 plot_mat.dendo.order <- order.dendrogram(plot_mat.dendo) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
84 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
85 gg_rows = ggdendrogram(data = plot_mat.dendo, rotate = FALSE) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
86 theme(axis.text.y = element_text(size = 6), axis.text.x = element_blank()) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
87 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
88 plot_mat.melt[,"rows"] <- factor(x = plot_mat.melt[,"rows"], |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
89 levels = unique(plot_mat.melt[,"rows"])[plot_mat.dendo.order], |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
90 ordered = TRUE) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
91 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
92 plot_mat.dendo <- as.dendrogram(hclust(d = dist(x = t(subset(plot_mat, select = -rows))))) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
93 plot_mat.dendo.order <- order.dendrogram(plot_mat.dendo) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
94 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
95 gg_cols = ggdendrogram(data = plot_mat.dendo, rotate = TRUE) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
96 theme(axis.text.x = element_text(size = 6), axis.text.y = element_blank()) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
97 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
98 plot_mat.melt[,"cols"] <- factor(x = plot_mat.melt[,"cols"], |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
99 levels = unique(plot_mat.melt[,"cols"])[plot_mat.dendo.order], |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
100 ordered = TRUE) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
101 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
102 ## plot the heatmap |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
103 gg_hm = plot_mat.melt %>% |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
104 ggplot(aes(x = rows, y = cols, fill = value)) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
105 geom_tile() + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
106 theme(legend.position = "bottom", axis.title.x = element_blank(), axis.title.y = element_blank(), |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
107 axis.text.x = element_text(angle = 90, hjust = 1)) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
108 colorscale |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
109 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
110 gg_empty = plot_mat.melt %>% |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
111 ggplot(aes(x = cols, y = value)) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
112 geom_blank() + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
113 theme(axis.text = element_blank(), |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
114 axis.title = element_blank(), |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
115 line = element_blank(), |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
116 panel.background = element_blank()) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
117 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
118 plot_out <- ggarrange( |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
119 gg_rows, gg_empty, gg_hm, gg_cols, |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
120 nrow = 2, ncol = 2, widths = c(3, 1), heights = c(1, 3), newpage =F) |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
121 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
122 #else |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
123 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
124 ## plot the heatmap |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
125 gg_hm = plot_mat.melt %>% |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
126 ggplot(aes(x = rows, y = cols, fill = value)) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
127 geom_tile() + ggtitle('$title') + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
128 theme(legend.position = "bottom", axis.title.x = element_blank(), axis.title.y = element_blank(), axis.text.x = element_text(angle = 90, hjust = 1)) + |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
129 colorscale |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
130 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
131 plot_out <- gg_hm |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
132 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
133 #end if |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
134 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
135 @SAVE_OUTPUT@ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
136 ]]></configfile> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
137 </configfiles> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
138 <inputs> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
139 <expand macro="read_complex_input"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
140 <expand macro="title"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
141 <!-- Advanced Options --> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
142 <section name="adv" title="Advanced Options" expanded="false"> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
143 <expand macro="transform" /> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
144 <param name="cluster" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Enable data clustering" /> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
145 <param name="colorscheme" type="select" label="Heatmap colorscheme" > |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
146 <option value="whrd" selected="true">White to red</option> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
147 <option value="whblu">White to blue</option> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
148 <option value="blwhre">Blue to white to red</option> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
149 </param> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
150 </section> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
151 <!-- Output Options --> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
152 <section name="out" title="Output Options" expanded="true"> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
153 <expand macro="dimensions" /> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
154 </section> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
155 </inputs> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
156 <outputs> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
157 <expand macro="additional_output" /> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
158 </outputs> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
159 <tests> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
160 <test> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
161 <param name="input1" value="mtcars.txt" ftype="tabular"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
162 <conditional name="inputdata"> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
163 <param name="input_type" value="with_header_rownames"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
164 <param name="header" value="TRUE"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
165 <param name="row_names_index" value="1"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
166 <param name="sample_name_orientation" value="TRUE"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
167 </conditional> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
168 <param name="transform" value="log10plus1"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
169 <param name="cluster" value="true"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
170 <param name="colorscheme" value="blwhre"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
171 <param name="additional_output_format" value="pdf"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
172 <output name="output2" file="ggplot_heatmap_result1.pdf" compare="sim_size"/> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
173 </test> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
174 </tests> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
175 <help><![CDATA[ |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
176 This tool will generate a clustered heatmap of your data. More customization options will be added, for now the heatmap uses a red coloring scheme and clustering is performed using the "maximum" similarity measure and the "complete" hierarchical clustering measure. |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
177 |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
178 Input data should have row labels in the first column and column labels. For example, the row labels (the first column) should represent gene IDs and the column labels should represent sample IDs. |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
179 ]]></help> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
180 <citations> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
181 </citations> |
f44dc95928aa
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ggplot2 commit f9fb73a88ab8b52ce11c25a966d4fe99e67c9fbf
iuc
parents:
diff
changeset
|
182 </tool> |