Mercurial > repos > sanbi-uwc > mothur_test
comparison tools/mothur/screen.seqs.xml @ 0:ee4fee239fe7 draft default tip
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
author | sanbi-uwc |
---|---|
date | Fri, 03 Jun 2016 09:32:47 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ee4fee239fe7 |
---|---|
1 <tool profile="16.07" id="mothur_screen_seqs" name="Screen.seqs" version="@WRAPPER_VERSION@.0"> | |
2 <description>Screen sequences</description> | |
3 <macros> | |
4 <import>macros.xml</import> | |
5 </macros> | |
6 <expand macro="requirements"/> | |
7 <expand macro="version_command"/> | |
8 <command detect_errors="aggressive"><![CDATA[ | |
9 echo 'screen.seqs( | |
10 fasta=$fasta_in | |
11 #if $start > -1: | |
12 ,start=$start | |
13 #end if | |
14 #if $end > -1: | |
15 ,end=$end | |
16 #end if | |
17 #if $minlength > -1: | |
18 ,minlength=$minlength | |
19 #end if | |
20 #if $maxlength > -1: | |
21 ,maxlength=$maxlength | |
22 #end if | |
23 #if $maxambig > -1: | |
24 ,maxambig=$maxambig | |
25 #end if | |
26 #if $maxhomop > -1: | |
27 ,maxhomop=$maxhomop | |
28 #end if | |
29 #if $criteria > -1: | |
30 ,criteria=$criteria | |
31 #end if | |
32 #if $optimize: | |
33 ,optimize=$optimize | |
34 #end if | |
35 #if $qfile_in: | |
36 ,qfile=$qfile_in | |
37 #end if | |
38 #if $names_in: | |
39 ,name=$names_in | |
40 #end if | |
41 #if $groups_in: | |
42 ,group=$groups_in | |
43 #end if | |
44 #if $alignreport_in: | |
45 ,alignreport=$alignreport_in | |
46 #end if | |
47 #if $taxonomy_in: | |
48 ,taxonomy=$taxonomy_in | |
49 #end if | |
50 #if $count_in: | |
51 ,count=$count_in | |
52 #end if | |
53 #if $summary: | |
54 ,summary=$summary | |
55 #end if | |
56 #if $contigsreport: | |
57 ,contigsreport=$contigsreport | |
58 #end if | |
59 ,processors='"\${GALAXY_SLOTS:-8}"' | |
60 )' | |
61 | sed 's/ //g' ## mothur trips over whitespace | |
62 | mothur && | |
63 | |
64 ## move output files to correct destination | |
65 mv mothur.*.logfile "$logfile" && | |
66 prefix="$fasta_in" && | |
67 mv \${prefix%.dat}*.good.* "$fasta_out" && | |
68 mv \${prefix%.dat}*.bad.accnos "$bad_accnos" | |
69 #if $qfile_in: | |
70 && prefix="$qfile_in" && mv \${prefix%.dat}*.good.* "$qfile_out" | |
71 #end if | |
72 #if $names_in: | |
73 && prefix="$names_in" && mv \${prefix%.dat}*.good.* "$names_out" | |
74 #end if | |
75 #if $groups_in: | |
76 && prefix="$groups_in" && mv \${prefix%.dat}*.good.* "$groups_out" | |
77 #end if | |
78 #if $alignreport_in: | |
79 && prefix="$alignreport_in" && mv \${prefix%.dat}*.good.* "$alignreport_out" | |
80 #end if | |
81 #if $taxonomy_in: | |
82 && prefix="$taxonomy_in" && mv \${prefix%.dat}*.good.* "$taxonomy_out" | |
83 #end if | |
84 #if $count_in: | |
85 && prefix="$count_in" && mv \${prefix%.dat}*.good.* "$count_out" | |
86 #end if | |
87 ]]></command> | |
88 <inputs> | |
89 <param name="fasta_in" type="data" format="fasta,mothur.align" label="fasta - Fasta to screen"/> | |
90 <param name="start" type="integer" value="-1" label="start - Remove sequences that start after position (ignored when negative)"/> | |
91 <param name="end" type="integer" value="-1" label="end - Remove sequences that end before position (ignored when negative)"/> | |
92 <param name="minlength" type="integer" value="-1" label="minlength - Remove sequences shorter than (ignored when negative)"/> | |
93 <param name="maxlength" type="integer" value="-1" label="maxlength - Remove sequences longer than (ignored when negative)"/> | |
94 <param name="maxambig" type="integer" value="-1" label="maxambig - Remove sequences with ambiguous bases greater than (ignored when negative)"/> | |
95 <param name="maxhomop" type="integer" value="-1" label="maxhomop - Remove sequences with homopolymers greater than (ignored when negative)"/> | |
96 <param name="criteria" type="integer" value="-1" label="criteria - Percent of sequences that an optimize value must match to be retained(ignored when negative)"/> | |
97 <param name="optimize" type="select" multiple="true" display="checkboxes" label="optimize - Optimize selected paramenters"> | |
98 <option value="start">start</option> | |
99 <option value="end">end</option> | |
100 <option value="minlength">minlength</option> | |
101 <option value="maxlength">maxlength</option> | |
102 <option value="maxambig">maxambig</option> | |
103 <option value="maxhomop">maxhomop</option> | |
104 </param> | |
105 <param name="qfile_in" type="data" format="qual" optional="true" label="qfile - Sequence Quality file to screen"/> | |
106 <param name="names_in" type="data" format="mothur.names" optional="true" label="name - Sequence Names to screen"/> | |
107 <param name="groups_in" type="data" format="mothur.groups" optional="true" label="group - Groups to screen"/> | |
108 <param name="alignreport_in" type="data" format="mothur.align.report" optional="true" label="alignreport - Align Report to screen"/> | |
109 <param name="summary" type="data" format="mothur.summary" optional="true" label="summary - allows you to enter the summary file created by summary.seqs to save processing time when screening with parameters in the summary file"/> | |
110 <param name="contigsreport" type="data" format="contigs.report" optional="true" label="contigsreport - file is created by the make.contigs command. If you provide the contigs report file you can screen your sequences using the following parameters: minoverlap, ostart, oend and mismatches"/> | |
111 <param name="taxonomy_in" type="data" format="taxonomy" optional="true" label="taxonomy - Taxonomy to screen"/> | |
112 <param name="count_in" type="data" format="mothur.count_table" optional="true" label="count - a count_table" help="generated by count.seqs"/> | |
113 </inputs> | |
114 <outputs> | |
115 <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/> | |
116 <data name="fasta_out" format_source="fasta_in" label="${tool.name} on ${on_string}: good.${fasta_in.datatype.file_ext}"/> | |
117 <data name="bad_accnos" format="mothur.accnos" label="${tool.name} on ${on_string}: bad.accnos"/> | |
118 <data name="qfile_out" format_source="qfile_in" label="${tool.name} on ${on_string}: qfile"> | |
119 <filter>qfile_in</filter> | |
120 </data> | |
121 <data name="names_out" format="mothur.names" label="${tool.name} on ${on_string}: names"> | |
122 <filter>names_in</filter> | |
123 </data> | |
124 <data name="groups_out" format="mothur.groups" label="${tool.name} on ${on_string}: groups"> | |
125 <filter>groups_in</filter> | |
126 </data> | |
127 <data name="alignreport_out" format="mothur.align.report" label="${tool.name} on ${on_string}: align.report"> | |
128 <filter>alignreport_in</filter> | |
129 </data> | |
130 <data name="count_out" format="count" label="${tool.name} on ${on_string}: count"> | |
131 <filter>count_in</filter> | |
132 </data> | |
133 </outputs> | |
134 <tests> | |
135 <test> | |
136 <param name="fasta_in" value="Mock_S280_L001_R1_001_small.trim.contigs.fasta"/> | |
137 <param name="maxambig" value="0"/> | |
138 <param name="maxlength" value="275"/> | |
139 <output name="fasta_out" file="Mock_S280_L001_R1_001_small.trim.contigs.good.fasta"/> | |
140 <output name="bad_accnos" file="Mock_S280_L001_R1_001_small.trim.contigs.bad.accnos"/> | |
141 <expand macro="logfile-test"/> | |
142 </test> | |
143 <test> | |
144 <param name="fasta_in" value="amazon.fasta"/> | |
145 <param name="count_in" value="amazon.count_table"/> | |
146 <param name="maxambig" value="0"/> | |
147 <param name="maxlength" value="275"/> | |
148 <output name="fasta_out" md5="d41d8cd98f00b204e9800998ecf8427e"/> | |
149 <output name="count_out" md5="5f4a08bbf3ec12f954edbcc6b2a2feee"/> | |
150 <output name="bad_accnos" md5="66acde5349e34fc97be22032ce68eea5"/> | |
151 <expand macro="logfile-test"/> | |
152 </test> | |
153 </tests> | |
154 <help> | |
155 <![CDATA[ | |
156 | |
157 @MOTHUR_OVERVIEW@ | |
158 | |
159 **Command Documenation** | |
160 | |
161 The screen.seqs_ command enables you to keep sequences that fulfill certain user defined criteria. Furthermore, it enables you to cull those sequences not meeting the criteria from a name_, group_, or align.report_ file. | |
162 | |
163 .. _name: http://www.mothur.org/wiki/Name_file | |
164 .. _group: http://www.mothur.org/wiki/Group_file | |
165 .. _align.report: http://www.mothur.org/wiki/Align.seqs | |
166 .. _screen.seqs: http://www.mothur.org/wiki/Screen.seqs | |
167 | |
168 ]]> | |
169 </help> | |
170 <expand macro="citations"/> | |
171 </tool> |