upstream-extended/iuc/tools/windowmasker/windowmasker_mkcounts.xml
1<tool id="windowmasker_mkcounts" name="WindowMasker mkcounts" version="1.0" profile="22.01">
2 <description>Construct WindowMasker unit counts table</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements" />
7 <command detect_errors="exit_code">
8<![CDATA[
9 windowmasker -mk_counts -infmt fasta
10 #if $adv.genome_size
11 -genome_size $adv.genome_size
12 #end if
13 #if $adv.t_low
14 -t_low $adv.t_low
15 #end if
16 #if $adv.t_high
17 -t_high $adv.t_high
18 #end if
19 #if $adv.unit
20 -unit $adv.unit
21 #end if
22
23 -sformat ${adv.sformat}
24 ${adv.checkdup}
25 -in '${fasta_input}'
26 -out '${mkcount_output}'
27]]>
28 </command>
29 <inputs>
30 <param argument="-in" name="fasta_input" type="data" format="fasta"
31 label="FASTA sequence file" />
32
33 <section name="adv" title="Advanced options" expanded="false" >
34 <param argument="-checkdup" type="boolean" checked="false"
35 truevalue="-checkdup" falsevalue=""
36 label="Check input file for potentially duplicated sequences" />
37
38 <param argument="-genome_size" type="integer" label="Genome size"
39 min="0" optional="true"
40 help="Use this genome size to compute the unit length" />
41
42 <param argument="-sformat" type="select" label="Unit counts format"
43 help="The format the unit counts data should be generated" >
44 <option value="ascii">Plain text (ascii)</option>
45 <option value="oascii" selected="true">Optimized text (oascii)</option>
46 <!-- Omit support for non-portable binary formats (binary, obinary) -->
47 </param>
48
49 <param argument="-t_low" type="integer" label="T_low"
50 min="0" optional="true"
51 help="Save only units that appears at least this many times" />
52
53 <param argument="-t_high" type="integer" label="T_high"
54 min="0" optional="true"
55 help="Set the maximum count value for units" />
56
57 <param argument="-unit" type="integer" label="Unit length"
58 min="1" max="16" optional="true"
59 help="Unit length used to mask the genome" />
60 </section>
61 </inputs>
62 <outputs>
63 <data name="mkcount_output" format="txt" />
64 </outputs>
65 <tests>
66 <test>
67 <!-- Test mkcounts with default settings -->
68 <param name="fasta_input" value="chr4_part.fa" ftype="fasta" />
69 <output name="mkcount_output" file="chr4_part.oascii.counts" />
70 </test>
71 <test>
72 <!-- Test mkcounts with custom genome_size -->
73 <param name="fasta_input" value="chr4_part.fa" ftype="fasta" />
74 <section name="adv">
75 <param name="genome_size" value="500000" />
76 </section>
77 <output name="mkcount_output" file="chr4_part.500k_size.counts" />
78 </test>
79 <test>
80 <!-- Test mkcounts with ascii output format -->
81 <param name="fasta_input" value="chr4_part.fa" ftype="fasta" />
82 <section name="adv">
83 <param name="sformat" value="ascii" />
84 </section>
85 <output name="mkcount_output" file="chr4_part.ascii.counts" />
86 </test>
87 <test>
88 <!-- Test mkcounts with custom unit settings -->
89 <param name="fasta_input" value="chr4_part.fa" ftype="fasta" />
90 <section name="adv">
91 <param name="t_low" value="3" />
92 <param name="t_high" value="20" />
93 <param name="unit" value="9" />
94 </section>
95 <output name="mkcount_output" file="chr4_part.custom_unit.counts" />
96 </test>
97 </tests>
98 <help>
99<![CDATA[
100**What it does**
101
102This tool runs `stage 1 <https://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/lxr/source/src/app/winmasker/>`_
103of the WindowMasker analysis to produce a unit counts file for a genome assembly.
104
105 ]]></help>
106 <expand macro="citations" />
107</tool>