comparison hicTransform.xml @ 14:9667ab8e2085 draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 2a0943e78bdc8ebb13f181399206a9eea37ed78f"
author iuc
date Tue, 16 Mar 2021 15:20:25 +0000
parents 3f529510975e
children 21b3ef2a6a80
comparison
equal deleted inserted replaced
13:dc25d1f9927b 14:9667ab8e2085
1 <tool id="hicexplorer_hictransform" name="@BINARY@" version="@WRAPPER_VERSION@.0"> 1 <tool id="hicexplorer_hictransform" name="@BINARY@" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
2 <description>transform a matrix to obs/exp, pearson and covariance matrices</description> 2 <description>transform a matrix to obs/exp, pearson and covariance matrices</description>
3 <macros> 3 <macros>
4 <token name="@BINARY@">hicTransform</token> 4 <token name="@BINARY@">hicTransform</token>
5 <import>macros.xml</import> 5 <import>macros.xml</import>
6 </macros> 6 </macros>
24 ]]> 24 ]]>
25 </command> 25 </command>
26 <inputs> 26 <inputs>
27 <expand macro='matrix_h5_cooler_macro' /> 27 <expand macro='matrix_h5_cooler_macro' />
28 <param name="method_selector" type="select" label="Choose method to apply"> 28 <param name="method_selector" type="select" label="Choose method to apply">
29 <option value="obs_exp" selected="True">obs / exp</option> 29 <option value="obs_exp" selected="True">obs / exp</option>
30 <option value="obs_exp_lieberman">obs / exp (Lieberman-Aiden 2009)</option> 30 <option value="obs_exp_lieberman">obs / exp (Lieberman-Aiden 2009)</option>
31 <option value="obs_exp_non_zero">obs / exp (exclude non-zero from exp)</option> 31 <option value="obs_exp_non_zero">obs / exp (exclude non-zero from exp)</option>
32 <option value="pearson">pearson</option> 32 <option value="pearson">pearson</option>
33 <option value="covariance">covariance</option> 33 <option value="covariance">covariance</option>
34 </param> 34 </param>
35 <param name='ligation_factor' type='boolean' truevalue='--ligation_factor' falsevalue="" checked="false" label='Multiplies a scaling factor to each entry of the expected matrix to take care of the proximity ligation'/> 35 <param name='ligation_factor' type='boolean' truevalue='--ligation_factor' falsevalue="" checked="false" label='Multiplies a scaling factor to each entry of the expected matrix to take care of the proximity ligation' />
36 <param argument="--perChromosome" type="boolean" truevalue="--perChromosome" falsevalue="" checked="false" 36 <param argument="--perChromosome" type="boolean" truevalue="--perChromosome" falsevalue="" checked="false" label="Computation per chromosome" />
37 label="Computation per chromosome" /> 37 <repeat name="chromosomeOrder" min="0" title="Chromosomes to include in the computation">
38 <repeat name="chromosomeOrder" min="0" title="Chromosomes to include int the computation" > 38 <param name="chromosome" type="text">
39 <param name="chromosome" type="text" >
40 <validator type="empty_field" /> 39 <validator type="empty_field" />
40 <validator type="expression" message="Only alphanumeric characters and the underscore can be used in chromosome names">value.replace('_', '').isalnum()</validator>
41 </param> 41 </param>
42 </repeat> 42 </repeat>
43 </inputs> 43 </inputs>
44 <outputs> 44 <outputs>
45 <data name="matrix_out" from_work_dir="matrix" format="cool" label="${tool.name} on ${matrix_h5_cooler.name} [${on_string}]: $method_selector"> 45 <data name="matrix_out" from_work_dir="matrix" format="cool" label="${tool.name} on ${matrix_h5_cooler.name} [${on_string}]: $method_selector">
46 <change_format> 46 <change_format>
47 <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5"/> 47 <when input_dataset="matrix_h5_cooler" attribute="ext" value="h5" format="h5" />
48 </change_format> 48 </change_format>
49 </data> 49 </data>
50 </outputs> 50 </outputs>
51 <tests> 51 <tests>
52 <test> 52 <test>
53 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/> 53 <param name="matrix_h5_cooler" value="small_test_matrix.h5" />
54 <param name='method_selector' value='obs_exp_lieberman'/> 54 <param name='method_selector' value='obs_exp_lieberman' />
55 <output name="matrix_out" ftype="h5"> 55 <output name="matrix_out" ftype="h5">
56 <assert_contents> 56 <assert_contents>
57 <has_h5_keys keys='intervals,matrix'/> 57 <has_h5_keys keys='intervals,matrix' />
58 </assert_contents> 58 </assert_contents>
59 </output> 59 </output>
60 </test> 60 </test>
61 <test> 61 <test>
62 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/> 62 <param name="matrix_h5_cooler" value="small_test_matrix.h5" />
63 <param name='method_selector' value='obs_exp_lieberman'/> 63 <param name='method_selector' value='obs_exp_lieberman' />
64 <param name='ligation_factor' value='True'/> 64 <param name='ligation_factor' value='True' />
65
66 <output name="matrix_out" ftype="h5"> 65 <output name="matrix_out" ftype="h5">
67 <assert_contents> 66 <assert_contents>
68 <has_h5_keys keys='intervals,matrix'/> 67 <has_h5_keys keys='intervals,matrix' />
69 </assert_contents> 68 </assert_contents>
70 </output> 69 </output>
71 </test> 70 </test>
72 </tests> 71 </tests>
73 <help><![CDATA[ 72 <help><![CDATA[
95 94
96 | For more information about HiCExplorer please consider our documentation on readthedocs.io_ 95 | For more information about HiCExplorer please consider our documentation on readthedocs.io_
97 96
98 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html 97 .. _readthedocs.io: http://hicexplorer.readthedocs.io/en/latest/index.html
99 .. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126%2Fscience.1181369 98 .. _`Lieberman-Aiden et al. (2009)`: https://doi.org/10.1126%2Fscience.1181369
100 ]]></help> 99 ]]> </help>
101 <expand macro="citations" /> 100 <expand macro="citations" />
102 </tool> 101 </tool>