comparison cooler_balance.xml @ 0:8f71aaf6e59d draft

planemo upload for repository https://github.com/lldelisle/tools-lldelisle/blob/master/tools/cooler/.shed.yml commit 67c1d2510db398d4f942bb59aca520fdf9cbe296
author lldelisle
date Mon, 24 Oct 2022 15:20:46 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:8f71aaf6e59d
1 <tool id="cooler_balance" name="cooler_balance" version="@VERSION@+galaxy0" profile="18.01">
2 <description>Copy and balance a cool file.</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <expand macro="stdio" />
8 <command detect_errors="exit_code"><![CDATA[
9 cp '$input' '$output' &&
10 cooler balance -p \${GALAXY_SLOTS:-1} --mad-max $madmax --min-nnz $minnnz --min-count $mincount --ignore-diags $ignorediags --ignore-dist $ignoredist --tol $tol --max-iters $maxiters $cistrans -f --convergence-policy $convergencepolicy
11 #if $blacklist:
12 --blacklist '$blacklist'
13 #end if
14 '$output'
15 ]]>
16 </command>
17 <inputs>
18 <param name="input" multiple="false" type="data" format="cool" label="Select the input cool file to balance."/>
19 <param argument="--mad-max" name="madmax" type="integer" value="5" label="Ignore bins from the contact matrix using the 'MAD-max' filter: bins whose log marginal sum is less than ``mad-max`` median absolute deviations below the median log marginal sum of all the bins in the same chromosome."/>
20 <param argument="--min-nnz" name="minnnz" type="integer" value="10" label="Ignore bins from the contact matrix whose marginal number of nonzeros is less than this number."/>
21 <param argument="--min-count" name="mincount" type="integer" value="0" label="Ignore bins from the contact matrix whose marginal count is less than this number."/>
22 <param argument="--ignore-diags" name="ignorediags" type="integer" value="2" label="Number of diagonals of the contact matrix to ignore, including the main diagonal. Examples: 0 ignores nothing, 1 ignores the main diagonal, 2 ignores diagonals (-1, 0, 1), etc."/>
23 <param argument="--ignore-dist" name="ignoredist" type="integer" value="0" label="Distance in bp to ignore." help="Max between distance and diags will be used."/>
24 <param argument="--tol" type="float" value="1e-5" label="Threshold value of variance of the marginals for the algorithm to converge."/>
25 <param argument="--max-iters" name="maxiters" type="integer" value="200" label="Maximum number of iterations to perform if convergence is not achieved.."/>
26 <param name="cistrans" type="select" label="Interactions to consider to calculate weights.">
27 <option value="">Genome wide </option>
28 <option value="--cis-only">Cis only </option>
29 <option value="--trans-only">Trans only </option>
30 </param>
31 <param argument="--blacklist" type="data" format="bed" optional="true" label="Path to a 3-column BED file containing genomic regions to mask out during the balancing procedure, e.g. sequence gaps or regions of poor mappability."/>
32 <param argument="--name" type="text" value="weight" label="Name of column to write to." />
33 <param name="convergencepolicy" type="select" label="Convergence policy: What to do with weights when balancing doesn't converge in max_iters."
34 help="'store_final': Store the final result, regardless of whether the iterations converge to the specified tolerance; 'store_nan': Store a vector of NaN values to indicate that the matrix failed to converge; 'discard': Store nothing and exit gracefully; 'error': Abort with non-zero exit status.">
35 <option value="store_final">store_final</option>
36 <option value="store_nan">store_nan</option>
37 <option value="discard">discard</option>
38 <option value="error">error</option>
39 </param>
40 </inputs>
41
42 <outputs>
43 <data format="cool" name="output" label="balanced of $input.name"/>
44 </outputs>
45
46 <tests>
47 <test>
48 <param name="input" value="input.cool" ftype="cool"/>
49 <param name="madmax" value="5"/>
50 <param name="mincount" value="0"/>
51 <param name="ignorediags" value="2"/>
52 <param name="tol" value="1e-5"/>
53 <param name="maxiters" value="1000"/>
54 <param name="cistrans" value="--cis-only"/>
55 <output name="output" file="output.cool" compare="sim_size"/>
56 </test>
57 </tests>
58
59 <help>
60 **cooler balance**
61 tool developped by mirnylab
62 see https://github.com/mirnylab/cooler
63 and https://cooler.readthedocs.io/en/latest/cli.html#cooler-balance
64
65 command-line::
66
67 cp $input $output
68 cooler balance -p \${GALAXY_SLOTS:-1} --mad-max madmax --min-nnz minnnz --min-count mincount --ignore-diags ignorediags --ignore-dist ignoredist --tol tol --max-iters maxiters cistrans -f
69 --blacklist 'blacklist'
70
71
72 </help>
73 <expand macro="citation_cooler" />
74 </tool>