comparison make.lookup.xml @ 0:0c303113990d draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
author iuc
date Fri, 19 May 2017 05:03:41 -0400
parents
children f338c64b09c1
comparison
equal deleted inserted replaced
-1:000000000000 0:0c303113990d
1 <tool profile="16.07" id="mothur_make_lookup" name="Make.lookup" version="@WRAPPER_VERSION@.0">
2 <description>allows you to create custom lookup files for use with shhh.flows</description>
3 <macros>
4 <import>macros.xml</import>
5 </macros>
6 <expand macro="requirements"/>
7 <expand macro="stdio"/>
8 <expand macro="version_command"/>
9 <command><![CDATA[
10 @SHELL_OPTIONS@
11
12 #import re
13 ## create symlinks to input datasets
14 ln -s "$reference.template" reference.template.dat &&
15 ln -s "$flow" flow.dat &&
16 ln -s "$error" error.dat &&
17
18 echo 'make.lookup(
19 reference=reference.template.dat,
20 flow=flow.dat,
21 error=error.dat,
22 order=$order,
23 barcode=$re.sub("[^ACTG]","",str($barcode)),
24 key=$re.sub("[^ACTG]","",str($key)),
25 threshold=$threshold
26 )'
27 | sed 's/ //g' ## mothur trips over whitespace
28 | mothur
29 | tee mothur.out.log
30 ]]></command>
31 <inputs>
32 <conditional name="reference">
33 <param name="source" type="select" label="Select Reference Template from" help="">
34 <option value="hist">History</option>
35 <option value="ref">Cached Reference</option>
36 </param>
37 <when value="ref">
38 <param name="template" type="select" label="reference - Select an alignment database " help="">
39 <options from_data_table="mothur_aligndb"/>
40 </param>
41 </when>
42 <when value="hist">
43 <param name="template" type="data" format="fasta" label="reference - Reference to align with" help=""/>
44 </when>
45 </conditional>
46 <param name="flow" type="data" format="motur.sff.flow" label="flow - provide file with flow data"/>
47 <param name="error" type="data" format="tabular" label="error - provide the error summary" help="this file is an output of seq.error tool"/>
48 <param name="order" type="select" label="order - flow order for nucleotides in the sequencer" help="default is A, was TACG. Also accepts B or I">
49 <option value="A" selected="true">A (TACG)</option>
50 <option value="B">B</option>
51 <option value="I">I</option>
52 </param>
53 <param name="barcode" type="text" value="AACCGTGTC" label="barcode - provide the barcode sequence"/>
54 <param name="key" type="text" value="TCAG" label="key - provide the key sequence"/>
55 <param name="threshold" type="integer" value="10000" min="0" label="threshold - " help=""/>
56 </inputs>
57 <outputs>
58 <expand macro="logfile-output"/>
59 <data name="lookup_out" format="txt" from_work_dir="flow*.lookup" label="${tool.name} on ${on_string}: lookup"/>
60 </outputs>
61 <tests>
62 <test><!-- test with defaults -->
63 <param name="source" value="hist"/>
64 <param name="template" value="HMP_MOCK.v35.align" ftype="mothur.align"/>
65 <param name="flow" value="testflow.flow" ftype="mothur.sff.flow"/>
66 <param name="error" value="Mock_S280_L001_R1_001_small.trim.contigs.good.error.summary" ftype="tabular"/>
67 <output name="lookup_out" ftype="txt">
68 <assert_contents>
69 <has_line_matching expression="^(-?[(\d\.|nan)]+\t?)+$"/>
70 </assert_contents>
71 </output>
72 <expand macro="logfile-test"/>
73 </test>
74 <test><!-- test sanitizers -->
75 <param name="source" value="hist"/>
76 <param name="template" value="HMP_MOCK.v35.align" ftype="mothur.align"/>
77 <param name="flow" value="testflow.flow" ftype="mothur.sff.flow"/>
78 <param name="error" value="Mock_S280_L001_R1_001_small.trim.contigs.good.error.summary" ftype="tabular"/>
79 <param name="barcode" value="XAXAXCXCXGXTXGXTXC"/><!-- should be converted to default value -->
80 <param name="key" value="XTXCXAXGX"/><!-- should be converted to default value -->
81 <output name="lookup_out" ftype="txt">
82 <assert_contents>
83 <has_line_matching expression="^(-?[(\d\.|nan)]+\t?)+$"/>
84 </assert_contents>
85 </output>
86 <expand macro="logfile-test"/>
87 </test>
88 </tests>
89 <help>
90 <![CDATA[
91
92 @MOTHUR_OVERVIEW@
93
94 **Command Documentation**
95
96 The make.lookup_ allows you to create custom lookup files for use with shhh.flows.
97
98 .. _make.lookup: https://www.mothur.org/wiki/Make.lookup
99
100 ]]>
101 </help>
102 <citations>
103 <citation type="doi">10.1128/AEM.01541-09</citation>
104 </citations>
105 </tool>