comparison seq.error.xml @ 0:45af9683de29 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:42:13 -0400
parents
children a5418319c97a
comparison
equal deleted inserted replaced
-1:000000000000 0:45af9683de29
1 <tool profile="16.07" id="mothur_seq_error" name="Seq.error" version="@WRAPPER_VERSION@.0">
2 <description>assess error rates in sequencing data</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 ## create symlinks to input datasets
13 ln -s "$fasta_in" fasta_in.dat &&
14 ln -s "$name_in" name_in.dat &&
15 ln -s "$count" count.dat &&
16 ln -s "$alignment.template" alignment.template.dat &&
17 #if $qual.use == "yes":
18 ln -s "$qual.qfile_in" qfile_in.dat &&
19 ln -s "$qual.alignreport_in" alignreport_in.dat &&
20 #end if
21
22 echo 'seq.error(
23 fasta=fasta_in.dat,
24 reference=alignment.template.dat,
25 #if $name_in:
26 name=name_in.dat,
27 #end if
28 #if $qual.use == "yes":
29 qfile=qfile_in.dat,
30 report=alignreport_in.dat,
31 #end if
32 #if $threshold:
33 threshold=$threshold,
34 #end if
35 ignorechimeras=$ignorechimeras,
36 #if $count:
37 count=count.dat,
38 #end if
39 #if $fasta_in.is_of_type('mothur.align')
40 aligned=T,
41 #else
42 aligned=F,
43 #end if
44 processors='\${GALAXY_SLOTS:-8}'
45 )'
46 | sed 's/ //g' ## mothur trips over whitespace
47 | mothur
48 | tee mothur.out.log
49 ]]></command>
50 <inputs>
51 <param name="fasta_in" type="data" format="mothur.align,fasta" label="fasta - Candidate Sequences" help="sequences must be aligned"/>
52 <conditional name="alignment">
53 <param name="source" type="select" label="Select Reference Template from" help="">
54 <option value="ref">Cached Reference</option>
55 <option value="history">Your History</option>
56 </param>
57 <when value="ref">
58 <param name="template" type="select" label="reference - Select an alignment database" help="">
59 <options from_data_table="mothur_aligndb"/>
60 </param>
61 </when>
62 <when value="history">
63 <param name="template" type="data" format="mothur.align,fasta" label="reference - Reference to align with" help=""/>
64 </when>
65 </conditional>
66 <param name="name_in" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/>
67 <conditional name="qual">
68 <param name="use" type="select" label="Include a quality file and an alignment report as inputs" help="">
69 <option value="no">No</option>
70 <option value="yes">Yes</option>
71 </param>
72 <when value="yes">
73 <param name="qfile_in" type="data" format="qual" label="qfile - Fasta Quality"/>
74 <param name="alignreport_in" type="data" format="mothur.align.report" label="alignreport - Align Report"/>
75 </when>
76 <when value="no"/>
77 </conditional>
78 <param name="count" type="data" format="mothur.count_table" optional="true" label="count table"/>
79 <param name="threshold" type="float" value="" min="0" max="1" optional="true" label="threshold - error rate at which to report (default 1.)"/>
80 <param name="ignorechimeras" type="boolean" truevalue="true" falsevalue="false" checked="true" label="ignorechimeras - "/>
81 </inputs>
82 <outputs>
83 <expand macro="logfile-output"/>
84 <data name="summary_out" format="tabular" from_work_dir="fasta_in*.error.summary" label="${tool.name} on ${on_string}: error.summary">
85 <filter>'summary' in output_sel</filter>
86 </data>
87 <data name="seq_out" format="fasta" from_work_dir="fasta_in*.error.seq" label="${tool.name} on ${on_string}: error.seq">
88 <filter>'seq' in output_sel</filter>
89 </data>
90 <data name="seq_forward_out" format="tabular" from_work_dir="fasta_in*.error.seq.forward" label="${tool.name} on ${on_string}: error.seq.forward">
91 <filter>'seq_forward' in output_sel</filter>
92 </data>
93 <data name="seq_reverse_out" format="tabular" from_work_dir="fasta_in*.error.seq.reverse" label="${tool.name} on ${on_string}: error.seq.reverse">
94 <filter>'seq_reverse' in output_sel</filter>
95 </data>
96 <data name="chimera_out" format="tabular" from_work_dir="fasta_in*.error.chimera" label="${tool.name} on ${on_string}: error.chimera">
97 <filter>'chimera' in output_sel</filter>
98 </data>
99 <data name="count_out" format="tabular" from_work_dir="fasta_in*.error.count" label="${tool.name} on ${on_string}: error.count">
100 <filter>'count' in output_sel</filter>
101 </data>
102 <data name="matrix_out" format="tabular" from_work_dir="fasta_in*.error.matrix" label="${tool.name} on ${on_string}: error.matrix">
103 <filter>'matrix' in output_sel</filter>
104 </data>
105 <data name="quality_out" format="tabular" from_work_dir="fasta_in*.error.quality" label="${tool.name} on ${on_string}: error.quality">
106 <filter>qual['use'] == 'yes' and 'quality' in output_sel</filter>
107 </data>
108 <data name="qual_forward_out" format="tabular" from_work_dir="fasta_in*.error.qual.forward" label="${tool.name} on ${on_string}: error.qual.forward">
109 <filter>qual['use'] == 'yes' and 'qual_forward' in output_sel</filter>
110 </data>
111 <data name="qual_reverse_out" format="tabular" from_work_dir="fasta_in*.error.qual.reverse" label="${tool.name} on ${on_string}: error.qual.reverse">
112 <filter>qual['use'] == 'yes' and 'qual_reverse' in output_sel</filter>
113 </data>
114 <data name="ref_query_out" format="mothur.align" from_work_dir="fasta_in*.error.ref" label="${tool.name} on ${on_string}: error.ref-query">
115 <filter>'ref_query' in output_sel</filter>
116 </data>
117 </outputs>
118 <tests>
119 <test><!--test with all outputs and no qual file-->
120 <param name="fasta_in" value="amazon.align_head" ftype="mothur.align"/>
121 <param name="template" value="HMP_MOCK.v35.align" ftype="mothur.align"/>
122 <param name="source" value="history"/>
123 <param name="output_sel" value="summary,seq,seq_forward,seq_reverse,chimera,count,matrix,ref_query"/>
124 <output name="chimera_out" md5="9faf0da7d724a1db5e0d8f5fcb72b486"/>
125 <output name="count_out" md5="9aea787346ad6a1c496aa1d77262a487"/>
126 <output name="matrix_out" md5="b7d9bbf3cdf363b41551e31c0b460a47"/>
127 <output name="ref_query_out" md5="42b42eb4c6bc2705ded2c697a757106f"/>
128 <output name="seq_out" md5="5a884846a8d94b8482c2935d2e7e43e6"/>
129 <output name="seq_forward_out" md5="92a24ef3155bc050ae4fd31bab43cf92"/>
130 <output name="seq_reverse_out" md5="92a24ef3155bc050ae4fd31bab43cf92"/>
131 <output name="summary_out" md5="04abbbd6aa82f084e4a3bd51c4ce98e6"/>
132 <expand macro="logfile-test"/>
133 </test>
134 <test><!--test with qual file and all outputs -->
135 <param name="fasta_in" value="Mock_S280_L001_R1_001_small.trim.contigs.good.align_head" ftype="mothur.align"/>
136 <param name="template" value="HMP_MOCK.v35.align" ftype="mothur.align"/>
137 <param name="source" value="history"/>
138 <param name="output_sel" value="summary,seq,seq_forward,seq_reverse,chimera,count,matrix,ref_query,quality,qual_forward,qual_reverse"/>
139 <param name="use" value="yes"/>
140 <param name="qfile_in" value="Mock_S280_L001_R1_001_small.trim.contigs.qual"/>
141 <param name="alignreport_in" value="Mock_S280_L001_R1_001_small.trim.contigs.good.align.report"/>
142 <output name="chimera_out" md5="78e586f1a1362fd98808d7725d786caa"/>
143 <output name="count_out" md5="ee987c7b5dc90d4d3a0ef55d817cc540"/>
144 <output name="matrix_out" md5="6b9310b4acd95c560cd062b620b35826"/>
145 <output name="ref_query_out" md5="dd569264c5a4628079de3ef828766e90"/>
146 <output name="quality_out" md5="844b50d6642381a7f434b8182b9307da"/>
147 <output name="qual_forward_out" md5="371fc760fc51b5adf10044fc26c1bbb8"/>
148 <output name="qual_reverse_out" md5="81f17617ba99cac5807e454a626eb006"/>
149 <output name="seq_out" md5="69a8ec131df0b1d4d95eaeb04e057941"/>
150 <output name="seq_forward_out" md5="dbcbbefdc83c2a7c045e3930850cdbd9"/>
151 <output name="seq_reverse_out" md5="5618b1e431306ec1275f1572d6c0c2fc"/>
152 <output name="summary_out" md5="d33bddf9b112f2f3a80b38cf7ac50e6a"/>
153 <expand macro="logfile-test"/>
154 </test>
155 </tests>
156 <help>
157 <![CDATA[
158
159 @MOTHUR_OVERVIEW@
160
161 **Command Documentation**
162
163 The seq.error_ command evaluates error rate for sequences by comparing to the fasta-formatted template_alignment_.
164 This is demonstrated in https://www.mothur.org/wiki/Schloss_SOP#Error_analysis
165
166 .. _template_alignment: https://www.mothur.org/wiki/Alignment_database
167 .. _seq.error: https://www.mothur.org/wiki/Seq.error
168
169 ]]>
170 </help>
171 <expand macro="citations"/>
172 </tool>