comparison hicAverageRegions.xml @ 0:f48fadbdef7d draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
author bgruening
date Thu, 06 Feb 2020 00:44:33 +0000
parents
children c7effac8192e
comparison
equal deleted inserted replaced
-1:000000000000 0:f48fadbdef7d
1 <tool id="hicexplorer_hicaverageregions" name="@BINARY@" version="@WRAPPER_VERSION@.0">
2 <description>sums Hi-C contacts around given reference points and computes their average.</description>
3 <macros>
4 <token name="@BINARY@">hicAverageRegions</token>
5 <import>macros.xml</import>
6 </macros>
7 <expand macro="requirements" />
8 <command detect_errors="exit_code"><![CDATA[
9
10
11 ln -s '$matrix_h5_cooler' 'matrix_name.$matrix_h5_cooler.ext' &&
12 @BINARY@ --matrix 'matrix_name.$matrix_h5_cooler.ext'
13
14 --regions '$regions'
15 #if $rangeFormat_conditional.rangeFormat_selector == 'optionGenomicUnits':
16 --range '$rangeFormat_conditional.upstreamRange' '$rangeFormat_conditional.downstreamRange'
17 #else:
18 --rangeInBins '$rangeFormat_conditional.upstreamRange' '$rangeFormat_conditional.downstreamRange'
19 #end if
20 --coordinatesToBinMapping $coordinatesToBinMapping_selector
21 --outFileName output_matrix.npz
22
23 ]]>
24 </command>
25 <inputs>
26 <expand macro='matrix_h5_cooler_macro' />
27 <param argument="--regions" type="data" format='bed'
28 label="Regions to average"
29 help="BED file which stores a list of regions that are summed and averaged."/>
30
31 <conditional name="rangeFormat_conditional">
32 <param name="rangeFormat_selector" type="select" label="List of chromosomes or a BED file containg regions">
33 <option value="optionGenomicUnits">Range in genomic units</option>
34 <option value="optionBinUnits" selected="True">Range in bin (matrix indices) units</option>
35 </param>
36 <when value="optionGenomicUnits">
37 <param name="upstreamRange" type="integer" value="" label="Upstream range"/>
38 <param name="downstreamRange" type="integer" value="" label="Downstream range"/>
39 </when>
40 <when value="optionBinUnits">
41 <param name="upstreamRange" type="integer" value="" label="Upstream range"/>
42 <param name="downstreamRange" type="integer" value="" label="Downstream range"/>
43 </when>
44 </conditional>
45 <param name="coordinatesToBinMapping_selector" type="select" label="Define start value of range" help="If the region contains start and end coordinates, define if the start, center (start + (end-start) / 2) or end bin should be used as start for range.">
46 <option value="start">Start</option>
47 <option value="center" selected="True">Center</option>
48 <option value="end" selected="True">End</option>
49 </param>
50 </inputs>
51 <outputs>
52 <data name="outFileName" from_work_dir="output_matrix.npz" format="zip"/>
53 </outputs>
54 <tests>
55 <test>
56 <param name="matrix_h5_cooler" value="small_test_matrix.cool"/>
57 <param name="regions" value="hicAverageRegions/regions.bed" />
58 <conditional name="rangeFormat_conditional">
59 <param name="rangeFormat_selector" value='optionGenomicUnits'/>
60 <param name="upstreamRange" value='100000'/>
61 <param name="downstreamRange" value='100000'/>
62 </conditional>
63
64 <output name='outFileName' file='hicAverageRegions/result_range_100000.npz' ftype="zip" compare="sim_size" delta="20000" />
65 </test>
66 <test>
67 <param name="matrix_h5_cooler" value="small_test_matrix.cool"/>
68 <param name="regions" value="hicAverageRegions/regions.bed" />
69 <conditional name="rangeFormat_conditional">
70 <param name="rangeFormat_selector" value='optionBinUnits'/>
71 <param name="upstreamRange" value='100'/>
72 <param name="downstreamRange" value='100'/>
73 </conditional>
74
75 <output name='outFileName' file='hicAverageRegions/result_rangeInBins_100.npz' ftype="zip" compare="sim_size" delta="20000" />
76 </test>
77 </tests>
78 <help><![CDATA[
79
80 Average regions
81 ===============
82
83 This tool sums Hi-C contacts around given reference points and computes their average. This tool is useful to detect differences at certain reference points as for example TAD boundaries between samples.
84
85 WARNING: This tool can only be used with fixed bin size Hi-C matrices. No guarantees how and if it works on restriction site interaction matrices.
86
87 Use the output to plot the average with hicPlotAverageRegions.
88
89 _________________
90
91 | For more information about HiCExplorer please consider our documentation on readthedocs.io_
92
93 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html
94 ]]></help>
95 <expand macro="citations" />
96 </tool>