annotate heatmap.xml @ 0:22d5d811dc37 draft

planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
author artbio
date Sat, 20 Jul 2019 17:55:20 -0400
parents
children 58b36ae7baca
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
1 <tool id="high_dim_heatmap" name="Plot heatmap" version="1.0.0">
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
2 <description>with high number of rows</description>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
3 <requirements>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
4 <requirement type="package" version="3.0.1">r-gplots</requirement>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
5 <requirement type="package" version="1.1_2">r-rcolorbrewer</requirement>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
6 </requirements>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
7 <command detect_errors="exit_code"><![CDATA[
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
8 cat '$script' &&
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
9 Rscript '$script'
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
10 ]]></command>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
11 <configfiles>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
12 <configfile name="script"><![CDATA[
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
13 ## Setup R error handling to go to stderr
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
14 options(show.error.messages=F, error=function(){cat(geterrmessage(), file=stderr()); q("no",1,F)})
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
15
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
16 ## Unify locale settings
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
17 loc <- Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
18
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
19 ## Import library
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
20 library("RColorBrewer")
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
21 library("gplots")
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
22
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
23 input <- read.delim('$input1', sep='\t', header=TRUE)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
24
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
25 mat_input <- data.matrix(input[,2:ncol(input)])
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
26 rownames(mat_input) <- input[,1]
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
27
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
28 #if $transform == "none"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
29 linput <- mat_input
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
30 #elif $transform == "log2"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
31 linput <- log2(mat_input)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
32 #elif $transform == "log2plus1"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
33 linput <- log2(mat_input+1)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
34 #elif $transform == "log10"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
35 linput <- log10(mat_input)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
36 #elif $transform == "log10plus1"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
37 linput <- log10(mat_input+1)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
38 #end if
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
39
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
40 #if $colorscheme == "whrd"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
41 colorscale = colfunc <- colorRampPalette(c("white", "red"))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
42 #elif $colorscheme == "whblu"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
43 colorscale = colfunc <- colorRampPalette(c("white", "blue"))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
44 #elif $colorscheme == "blwhre"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
45 colorscale = colfunc <- colorRampPalette(c("blue","white", "red"))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
46 #end if
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
47
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
48 #if $labels== "both"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
49 rlabs = NULL
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
50 clabs = NULL
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
51 #elif $labels== "rows"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
52 rlabs = NULL
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
53 clabs = FALSE
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
54 #elif $labels== "columns"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
55 rlabs = FALSE
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
56 clabs = NULL
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
57 #elif $labels== "none"
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
58 rlabs = FALSE
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
59 clabs = FALSE
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
60 #end if
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
61
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
62 pdf(file='$output1', paper='special', height=$height)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
63 colorscale
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
64
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
65 #if $cluster_cond.cluster:
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
66 hclust_fun = function(x) hclust(x, method='$cluster_cond.clustering')
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
67 dist_fun = function(x) dist(x, method='$cluster_cond.distance')
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
68 #if $cluster_cond.cluster_cols_rows=="rows":
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
69 heatmap.2(linput, dendrogram="row", Colv=FALSE, Rowv=TRUE,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
70 distfun=dist_fun, hclustfun=hclust_fun, scale = '$scale', labRow = rlabs, labCol = clabs,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
71 col=colfunc(50), trace="none", density.info = "none", margins=c(8,8),
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
72 main = '$title', key.xlab='$key', keysize=1, cexCol=0.8, cexRow = $rowfontsize, srtCol=45,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
73 lhei=c(1, $lineheight))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
74 #elif $cluster_cond.cluster_cols_rows=="columns":
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
75 heatmap.2(linput, dendrogram="column", Colv=TRUE, Rowv=FALSE,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
76 distfun=dist_fun, hclustfun=hclust_fun, scale = '$scale', labRow = rlabs, labCol = clabs,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
77 col=colfunc(50), trace="none", density.info = "none", margins=c(8,8),
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
78 main = '$title', key.xlab='$key', keysize=1, cexCol=0.8, cexRow = $rowfontsize, srtCol=45,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
79 lhei=c(1, $lineheight))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
80 #else
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
81 heatmap.2(linput,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
82 distfun=dist_fun, hclustfun=hclust_fun, scale = '$scale', labRow = rlabs, labCol = clabs,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
83 col=colfunc(50), trace="none", density.info = "none", margins=c(8,8),
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
84 main = '$title', key.xlab='$key', keysize=1, cexCol=0.8, cexRow = $rowfontsize, srtCol=45,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
85 lhei=c(1, $lineheight))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
86 #end if
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
87 #else
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
88 heatmap.2(linput,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
89 dendrogram="none", Colv=FALSE, Rowv=FALSE, scale = '$scale', labRow = rlabs, labCol = clabs,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
90 col=colfunc(50), trace="none", density.info = "none", margins=c(8,8),
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
91 main='$title', key.xlab='$key', keysize=1, cexCol=0.8, cexRow = $rowfontsize, srtCol=45,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
92 lhei=c(1, $lineheight))
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
93 #end if
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
94
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
95 dev.off()
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
96 ]]></configfile>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
97 </configfiles>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
98
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
99 <inputs>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
100 <param name="input1" type="data" format="tabular" label="Input should have column headers - these will be the columns that are plotted"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
101 <param name="title" type="text" format="txt" label="Plot title"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
102 <param name="key" type="text" format="txt" label="key title"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
103 <param name="transform" type="select" label="Data transformation">
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
104 <option value="none">Plot the data as it is</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
105 <option value="log2">Log2(value) transform my data</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
106 <option value="log2plus1">Log2(value+1) transform my data</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
107 <option value="log10">Log10(value) transform my data</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
108 <option value="log10plus1">Log10(value+1) transform my data</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
109 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
110 <conditional name="cluster_cond">
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
111 <param name="cluster" type="select" label="Enable data clustering">
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
112 <option value="true">Yes</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
113 <option value="">No</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
114 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
115 <when value="true">
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
116 <param name="cluster_cols_rows" type="select" label="Clustering columns and rows">
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
117 <option value="both" selected="true">Cluster rows and columns</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
118 <option value="rows">Cluster rows and not columns</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
119 <option value="columns">Cluster columns and not rows</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
120 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
121 <param name="distance" type="select" label="Distance method" help="The method used to compute the distance (dissimilarity) between both rows and columns. Default: Euclidean" >
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
122 <option value="euclidean" selected="true">Euclidean</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
123 <option value="maximum">Maximum</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
124 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
125 <param name="clustering" type="select" label="Clustering method" help="The method used to compute the hierarchical clustering. Default: Complete" >
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
126 <option value="complete" selected="true">Complete</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
127 <option value="average">Average</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
128 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
129 </when>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
130 <when value=""/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
131 </conditional>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
132 <param name="labels" type="select" label="Labeling columns and rows" >
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
133 <option value="both" selected="true">Label my columns and rows</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
134 <option value="rows">Label rows and not columns</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
135 <option value="columns">Label columns and not rows</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
136 <option value="none">Do not label rows or columns</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
137 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
138 <param name="colorscheme" type="select" label="Coloring groups" >
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
139 <option value="whrd" selected="true">White to red</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
140 <option value="whblu">White to blue</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
141 <option value="blwhre">Blue to white to red</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
142 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
143 <param name="scale" type="select" label="Data scaling" >
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
144 <option value="none" selected="true">Do not scale my data</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
145 <option value="row">Scale my data by row</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
146 <option value="column">Scale my data by column</option>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
147 </param>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
148
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
149 <param name="height" type="float" label="tweak plot height" value="7" />
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
150 <param name="rowfontsize" type="float" label="tweak row label size" value="0.8" />
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
151 <param name="lineheight" type="integer" label="tweak line height" value="4" />
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
152 </inputs>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
153 <outputs>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
154 <data name="output1" format="pdf"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
155 </outputs>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
156 <tests>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
157 <test>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
158 <param name="input1" value="mtcars.txt"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
159 <param name="cluster" value="true"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
160 <output name="output1" file="result1.pdf"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
161 </test>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
162 <test>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
163 <param name="input1" value="mtcars.txt"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
164 <param name="cluster" value=""/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
165 <output name="output1" file="result2.pdf"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
166 </test>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
167 <test>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
168 <param name="input1" value="complex_table.tsv"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
169 <param name="transform" value="log2plus1"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
170 <param name="cluster" value=""/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
171 <param name="colorscheme" value="blwhre"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
172 <param name="height" value="21"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
173 <param name="rowfontsize" value="0.4"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
174 <param name="lineheight" value="15"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
175 <output name="output1" file="complex_result1.pdf"/>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
176 </test>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
177 </tests>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
178 <help><![CDATA[
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
179 This tool employs the heatmap.2 function from the R gplots package and will generate a
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
180 heatmap of your data. If clustering is enabled, the heatmap uses the Euclidean distance
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
181 method and the Complete hierarchical clustering method by default.
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
182
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
183 Input data should have row labels in the first column and column labels. For example,
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
184 the row labels (the first column) should represent gene IDs and the column labels should
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
185 represent sample IDs.
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
186
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
187 To adapt heatmap.2 to high number of lines, tweak the parameters:
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
188
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
189 - `tweak plot height`. By default 7 (inches), this can be increased to 14, 21, 28, etc..
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
190 - `tweak row label size`. By default 0.8. This is usually diminished to 0.3, 0.1, etc to
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
191 adapt the label font to high number of rows
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
192 - `tweak line height`. By default 4. This is a metric to define the relative size of the
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
193 heatmap panel in the plot layout. This is a bit tricky to adjust, but should be adapted
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
194 when plot height is increased (typically to 8, 10, 15, etc...)
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
195
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
196 For instance, upload the dataset
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
197 https://raw.githubusercontent.com/ARTbio/tools-artbio/master/tools/high_dim_heatmap/test-data/complex_table.tsv
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
198 to your account and test this tools with:
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
199
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
200 - `tweak plot height` : 21.0
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
201 - `tweak row label size`: 0.4
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
202 - `tweak line height`: 14
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
203
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
204
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
205 ]]></help>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
206 <citations>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
207 </citations>
22d5d811dc37 planemo upload for repository https://github.com/artbio/tools-artbio/tree/master/tools/high_dim_heatmap commit 3839913fd15008dd999f2da10dcb6797ddb8dbdc
artbio
parents:
diff changeset
208 </tool>