comparison hicPlotMatrix.xml @ 0:a9050bffb50c draft

planemo upload for repository https://github.com/maxplanck-ie/HiCExplorer/tree/master/galaxy/wrapper/ commit 2f347b0756d720114f037ed1ff9ba4836e1b3b04
author bgruening
date Thu, 30 Mar 2017 02:12:31 -0400
parents
children 2c0069f645bc
comparison
equal deleted inserted replaced
-1:000000000000 0:a9050bffb50c
1 <tool id="hicexplorer_hicplotmatrix" name="@BINARY@" version="@WRAPPER_VERSION@.0">
2 <description>Plots a HiC matrix heatmap</description>
3 <macros>
4 <token name="@BINARY@">hicPlotMatrix</token>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <command>
9 <![CDATA[
10 ln -s '$matrix' input_matrix.h5 &&
11
12 @BINARY@
13
14 --matrix input_matrix.h5
15
16 #if $title and $title is not None:
17 --title '$title'
18 #end if
19
20 #if $scoreName and $scoreName is not None:
21 --scoreName '$scoreName'
22 #end if
23
24
25 --outFileName plot.svg
26
27 $perChromosome
28 $clearMaskedBins
29
30 --whatToShow $whatToShow.whatToShow_select
31
32
33 ## special: --chromosomeOrder is optional, but if given needs at least one argument
34 #set chroms = '" "'.join([ str($var.chromosome) for $var in $chromosomeOrder ])
35 #if chroms
36 --chromosomeOrder '$chroms'
37 #end if
38
39 #if $region:
40 --region '$region'
41 #end if
42
43 #if $region2:
44 --region2 '$region2'
45 #end if
46 $log1p
47 $log
48
49 #if $colormap:
50 --colorMap $colormap
51 #end if
52
53 #if $vMin:
54 --vMin $vMin
55 #end if
56
57 #if $vMax:
58 --vMax $vMax
59 #end if
60
61 #if $whatToShow.whatToShow_select != 'heatmap':
62 #if $whatToShow.zMax:
63 --zMax $whatToShow.zMax
64 #end if
65 #end if
66
67 ]]>
68 </command>
69 <inputs>
70 <param argument="--matrix" type="data" format="h5" label="Hi-C matrix to plot"/>
71 <param argument="--title" type="text" optional="true" label="Plot title"/>
72 <param argument="--scoreName" type="text" optional="true" label="Score name"/>
73 <param argument="--perChromosome" type="boolean" truevalue="--perChromosome" falsevalue="" checked="false"
74 label="Plot per chromosome"
75 help="Instead of plotting the whole matrix each chromosome is plotted next to the other. This parameter is not compatible with --region" />
76 <param argument="--clearMaskedBins" type="boolean" truevalue="--clearMaskedBins" falsevalue="" checked="false"
77 label="Remove masked bins from the matrix" />
78
79 <conditional name="whatToShow">
80 <param argument="--whatToShow" name="whatToShow_select" type="select" label="Show heatmap/3D">
81 <option value="both">Show both</option>
82 <option value="heatmap" selected="true">Only heatmap</option>
83 <option value="3D">Only 3D</option>
84 </param>
85 <when value="both">
86 <expand macro="zMax" />
87 </when>
88 <when value="3D">
89 <expand macro="zMax" />
90 </when>
91 <when value="heatmap"/>
92 </conditional>
93
94 <repeat name="chromosomeOrder" min="1" title="Chromosomes to include (and order to plot in):"
95 help="This option overrides --region and --region2">
96 <param name="chromosome" type="text" />
97 </repeat>
98
99 <param argument="--region" type="text" optional="True" label="Plot only this region"
100 help="The format is chr:start-end The plotted region contains the main diagonal and is symmetric unless --region2 is given"/>
101 <param argument="--region2" type="text" optional="True" label="Region two to plot"
102 help="If given then only the region defined by --region and --region2 is plotted. The format is the same as --region"/>
103 <param argument="--log1p" type="boolean" truevalue="--log1p" falsevalue="" checked="false" label="Plot the log1p of the matrix values."/>
104 <param argument="--log" type="boolean" truevalue="--log" falsevalue="" checked="false" label="Plot the *MINUS* log of the matrix values."/>
105
106 <expand macro="colormap" />
107
108 <param argument="--vMin" type="float" optional="true" label="vMin"/>
109 <param argument="--vMax" type="float" optional="true" label="vMax"/>
110
111 </inputs>
112 <outputs>
113 <data name="outFileName" from_work_dir="plot.svg" format="svg" label="${tool.name} on ${on_string}"/>
114 </outputs>
115 <tests>
116 <test>
117 <param name="matrix" ftype="h5" value="Li_et_al_2015.h5"/>
118 <param name="region" value="chrX:3000000-3500000"/>
119 <param name="region2" value="chrX:3100000-3600000"/>
120 <param name="log1p" value="True"/>
121 <param name="clearMaskedBins" value="True"/>
122 <param name="whatToShow_select" value="heatmap"/>
123 <output name="outFileName" file="hicPlotMatrix_result1.svg" ftype="svg" compare="sim_size"/>
124 </test>
125 </tests>
126 <help><![CDATA[
127
128 **What it does**
129
130 Plots a HiC matrix heatmap.
131
132 ]]></help>
133 <expand macro="citations" />
134 </tool>
135