comparison hicTransform.xml @ 9:3f529510975e draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/hicexplorer commit 5744259254d4254a29cb7a6687fbbfd103301064"
author bgruening
date Wed, 05 Feb 2020 19:55:59 -0500
parents ae9cc6dbfaca
children 9667ab8e2085
comparison
equal deleted inserted replaced
8:ae9cc6dbfaca 9:3f529510975e
8 <command detect_errors="exit_code"><![CDATA[ 8 <command detect_errors="exit_code"><![CDATA[
9 9
10 ln -s '$matrix_h5_cooler' 'matrix.$matrix_h5_cooler.ext' && 10 ln -s '$matrix_h5_cooler' 'matrix.$matrix_h5_cooler.ext' &&
11 @BINARY@ --matrix 'matrix.$matrix_h5_cooler.ext' 11 @BINARY@ --matrix 'matrix.$matrix_h5_cooler.ext'
12 --method $method_selector 12 --method $method_selector
13 #if $ligation_factor:
14 $ligation_factor
15 #end if
16 $perChromosome
17 #set chroms = ' '.join([ '\'' + str($var.chromosome) + '\'' for $var in $chromosomeOrder ])
18 #if chroms:
19 --chromosomes $chroms
20 #end if
13 --outFileName 'matrix.$matrix_h5_cooler.ext' 21 --outFileName 'matrix.$matrix_h5_cooler.ext'
22
14 && mv 'matrix.$matrix_h5_cooler.ext' matrix 23 && mv 'matrix.$matrix_h5_cooler.ext' matrix
15 ]]> 24 ]]>
16 </command> 25 </command>
17 <inputs> 26 <inputs>
18 <expand macro='matrix_h5_cooler_macro' /> 27 <expand macro='matrix_h5_cooler_macro' />
19 <param name="method_selector" type="select" label="Choose method to apply"> 28 <param name="method_selector" type="select" label="Choose method to apply">
20 <option value="obs_exp" selected="True">obs / exp</option> 29 <option value="obs_exp" selected="True">obs / exp</option>
21 <option value="obs_exp_norm">obs / exp (Homer norm)</option> 30 <option value="obs_exp_lieberman">obs / exp (Lieberman-Aiden 2009)</option>
22 <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>
23 <option value="pearson">pearson</option> 32 <option value="pearson">pearson</option>
24 <option value="covariance">covariance</option> 33 <option value="covariance">covariance</option>
25 </param> 34 </param>
26 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"
37 label="Computation per chromosome" />
38 <repeat name="chromosomeOrder" min="0" title="Chromosomes to include int the computation" >
39 <param name="chromosome" type="text" >
40 <validator type="empty_field" />
41 </param>
42 </repeat>
27 </inputs> 43 </inputs>
28 <outputs> 44 <outputs>
29 <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">
30 <change_format> 46 <change_format>
31 <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"/>
33 </data> 49 </data>
34 </outputs> 50 </outputs>
35 <tests> 51 <tests>
36 <test> 52 <test>
37 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/> 53 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/>
38 <param name='method_selector' value='obs_exp_norm'/> 54 <param name='method_selector' value='obs_exp_lieberman'/>
55 <output name="matrix_out" ftype="h5">
56 <assert_contents>
57 <has_h5_keys keys='intervals,matrix'/>
58 </assert_contents>
59 </output>
60 </test>
61 <test>
62 <param name="matrix_h5_cooler" value="small_test_matrix.h5"/>
63 <param name='method_selector' value='obs_exp_lieberman'/>
64 <param name='ligation_factor' value='True'/>
65
39 <output name="matrix_out" ftype="h5"> 66 <output name="matrix_out" ftype="h5">
40 <assert_contents> 67 <assert_contents>
41 <has_h5_keys keys='intervals,matrix'/> 68 <has_h5_keys keys='intervals,matrix'/>
42 </assert_contents> 69 </assert_contents>
43 </output> 70 </output>