comparison hicPlotAverageRegions.xml @ 0:ebe2b2d82a32 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 3b41d687ff30583540d055f6995de00530cca81d-dirty"
author bgruening
date Mon, 16 Dec 2019 15:22:53 -0500
parents
children 5ae69a0a33bf
comparison
equal deleted inserted replaced
-1:000000000000 0:ebe2b2d82a32
1 <tool id="hicexplorer_hicplotaverageregions" name="@BINARY@" version="@WRAPPER_VERSION@.0">
2 <description>compute distance vs Hi-C counts plot per chromosome</description>
3 <macros>
4 <token name="@BINARY@">hicPlotAverageRegions</token>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <command detect_errors="aggressive"><![CDATA[
9
10 @BINARY@
11 --matrix '$matrix'
12 #if $colormap:
13 --colorMap $colormap
14 #end if
15
16 #if $vMin:
17 --vMin $vMin
18 #end if
19
20 #if $vMax:
21 --vMax $vMax
22 #end if
23
24 #if $dpi:
25 --dpi $dpi
26 #end if
27
28 $log1p $log
29 --outputFile plot.$image_file_format
30
31 && mv plot.$image_file_format plot
32 ]]>
33 </command>
34 <inputs>
35 <param argument="--matrix" type="data" format='zip' label="Average regions matrix computed by hicAverageRegions"/>
36 <param argument="--log1p" type="boolean" truevalue="--log1p" falsevalue="" checked="false" label="Plot the log1p of the matrix values (log(Hi-C contacts+1)). This option is recommended."/>
37 <param argument="--log" type="boolean" truevalue="--log" falsevalue="" checked="false" label="Plot the log of the matrix values. (log(Hi-C contacts))"/>
38
39 <expand macro="colormap" />
40
41 <param argument="--vMin" type="float" optional="true" label="vMin" help="Minimum value of the plotted score."/>
42 <param argument="--vMax" type="float" optional="true" label="vMax" help="Maximum value of the plotted score."/>
43
44 <param name="image_file_format" type="select" label="Image output format">
45 <option value="png" selected="True">png</option>
46 <option value="svg">svg</option>
47 <option value="pdf">pdf</option>
48 </param>
49 <param name='dpi' type='integer' label='DPI for image' help='Change the default resolution of the plot.' optional='true'/>
50
51 </inputs>
52 <outputs>
53 <data format="png" name="outFileName" from_work_dir="plot" label="${tool.name} [${on_string}]: Plot">
54 <change_format>
55 <when input="image_file_format" value="svg" format="svg" />
56 <when input="image_file_format" value="pdf" format="pdf" />
57 </change_format>
58 </data>
59
60 </outputs>
61 <tests>
62 <test>
63 <param name="matrix" value="hicAverageRegions/result_range_100000.npz" ftype="zip"/>
64 <param name="colormap" value="RdYlBu_r"/>
65 <param name='dpi' value='10' />
66 <output name="outFileName" file="hicPlotAverageRegions/defaults.png" ftype="png" compare="sim_size"/>
67 </test>
68 <test>
69 <param name="matrix" value="hicAverageRegions/result_range_100000.npz" ftype="zip"/>
70 <param name="colormap" value="RdYlBu_r"/>
71 <param name="log" value="True"/>
72 <param name='dpi' value='10' />
73
74
75 <output name="outFileName" file="hicPlotAverageRegions/defaults_log.png" ftype="png" compare="sim_size"/>
76 </test>
77 <test>
78 <param name="matrix" value="hicAverageRegions/result_range_100000.npz" ftype="zip"/>
79 <param name="colormap" value="RdYlBu_r"/>
80 <param name="log1p" value="True"/>
81 <param name='dpi' value='10' />
82
83
84 <output name="outFileName" file="hicPlotAverageRegions/defaults_log1p.png" ftype="png" compare="sim_size"/>
85 </test>
86 <test>
87 <param name="matrix" value="hicAverageRegions/result_range_100000.npz" ftype="zip"/>
88 <param name="colormap" value="plasma"/>
89 <param name="vMax" value="20"/>
90 <param name="vMin" value="10"/>
91 <param name='dpi' value='10' />
92
93 <output name="outFileName" file="hicPlotAverageRegions/defaults_log_vmin_vmax.png" ftype="png" compare="sim_size"/>
94 </test>
95 </tests>
96 <help><![CDATA[
97 Plot of hicAverageRegions matrix
98 ================================
99 hicPlotAverage regions plots the data computed by hicAverageRegions. It shows the summed up and averaged regions around all given reference points. This is useful to determine the difference between samples if the TAD configuration is equal or changed.
100
101
102 | For more information about HiCExplorer please consider our documentation on readthedocs.io_
103
104 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html
105 ]]></help>
106 <expand macro="citations" />
107 </tool>