comparison trim.flows.xml @ 2:9d48c9a47566 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 3418f23b9768f5aafb86488f5ec1cb97530d4fb3
author iuc
date Tue, 20 Mar 2018 22:00:16 -0400
parents 8e25e5e9e75f
children
comparison
equal deleted inserted replaced
1:d40f783c5d65 2:9d48c9a47566
5 </macros> 5 </macros>
6 <expand macro="requirements"/> 6 <expand macro="requirements"/>
7 <expand macro="stdio"/> 7 <expand macro="stdio"/>
8 <expand macro="version_command"/> 8 <expand macro="version_command"/>
9 <command><![CDATA[ 9 <command><![CDATA[
10 @SHELL_OPTIONS@ 10 @SHELL_OPTIONS@
11 11
12 ## create symlinks to input datasets 12 ## create symlinks to input datasets
13 ln -s "$flow" flow.dat && 13 ln -s '$flow' flow.dat &&
14 #if $oligo.add == "yes": 14 #if $oligo.add == "yes":
15 ln -s "$oligo.oligos" oligo.oligos.dat && 15 ln -s '$oligo.oligos' oligo.oligos.dat &&
16 #end if 16 #end if
17 17
18 echo 'trim.flows( 18 echo 'trim.flows(
19 flow=flow.dat, 19 flow=flow.dat,
20 minflows=$minflows, 20 minflows=$minflows,
21 maxflows=$maxflows, 21 maxflows=$maxflows,
22 #if $maxhomop: 22 #if $maxhomop:
23 maxhomop=$maxhomop, 23 maxhomop=$maxhomop,
24 #end if 24 #end if
25 order=$order, 25 order=$order,
26 signal=$signal, 26 signal=$signal,
27 noise=$noise, 27 noise=$noise,
28 #if $oligo.add == "yes": 28 #if $oligo.add == "yes":
29 oligos=oligo.oligos.dat, 29 oligos=oligo.oligos.dat,
30 bdiffs=$oligo.bdiffs, 30 bdiffs=$oligo.bdiffs,
31 pdiffs=$oligo.pdiffs, 31 pdiffs=$oligo.pdiffs,
32 tdiffs=$oligo.tdiffs, 32 tdiffs=$oligo.tdiffs,
33 ldiffs=$oligo.ldiffs, 33 ldiffs=$oligo.ldiffs,
34 sdiffs=$oligo.sdiffs, 34 sdiffs=$oligo.sdiffs,
35 #end if 35 #end if
36 fasta=$fasta, 36 fasta=$fasta,
37 processors='\${GALAXY_SLOTS:-8}' 37 processors='\${GALAXY_SLOTS:-8}'
38 )' 38 )'
39 | sed 's/ //g' ## mothur trips over whitespace 39 | sed 's/ //g' ## mothur trips over whitespace
40 | mothur 40 | mothur
41 | tee mothur.out.log 41 | tee mothur.out.log
42 ## prevent these two files from being gathered into collection 42
43 && mv flow.trim.flow flow.trim 43 ## prevent these two files from being gathered into collection
44 && mv flow.scrap.flow flow.scrap 44 && mv flow.trim.flow flow.trim
45 && mv flow.scrap.flow flow.scrap
45 ]]></command> 46 ]]></command>
46 <inputs> 47 <inputs>
47 <param name="flow" type="data" format="mothur.sff.flow" label="flow - flowgram data" help="Use sffinfo to generate flow data from an sff file"/> 48 <param name="flow" type="data" format="mothur.sff.flow" label="flow - flowgram data" help="Use sffinfo to generate flow data from an sff file"/>
48 <conditional name="oligo"> 49 <conditional name="oligo">
49 <param name="add" type="select" label="Trim with an oligos file?" help="a file that can contain the sequences of the forward and reverse primers and barcodes and their sample identifier. Each line of the oligos file can start with the key words &quot;forward&quot;, &quot;reverse&quot;, and &quot;barcode&quot; or it can start with a &quot;#&quot; to tell mothur to ignore that line of the oligos file"> 50 <param name="add" type="select" label="Trim with an oligos file?" help="a file that can contain the sequences of the forward and reverse primers and barcodes and their sample identifier. Each line of the oligos file can start with the key words &quot;forward&quot;, &quot;reverse&quot;, and &quot;barcode&quot; or it can start with a &quot;#&quot; to tell mothur to ignore that line of the oligos file">
69 <option value="A" selected="true"> A (TACG) </option> 70 <option value="A" selected="true"> A (TACG) </option>
70 <option value="B"> B </option> 71 <option value="B"> B </option>
71 <option value="I"> I </option> 72 <option value="I"> I </option>
72 </param> 73 </param>
73 <param name="fasta" type="boolean" truevalue="true" falsevalue="false" checked="false" label="fasta - translate the flowgram data to fasta sequence format"/> 74 <param name="fasta" type="boolean" truevalue="true" falsevalue="false" checked="false" label="fasta - translate the flowgram data to fasta sequence format"/>
75 <expand macro="param-savelog"/>
74 </inputs> 76 </inputs>
75 <outputs> 77 <outputs>
76 <expand macro="logfile-output"/> 78 <expand macro="logfile-output"/>
77 <data name="trim_flow" format="mothur.sff.flow" from_work_dir="flow.trim" label="${tool.name} on ${on_string}: trim.flow"/> 79 <data name="trim_flow" format="mothur.sff.flow" from_work_dir="flow.trim" label="${tool.name} on ${on_string}: trim.flow"/>
78 <data name="scrap_flow" format="mothur.sff.flow" from_work_dir="flow.scrap" label="${tool.name} on ${on_string}: scrap.flow"/> 80 <data name="scrap_flow" format="mothur.sff.flow" from_work_dir="flow.scrap" label="${tool.name} on ${on_string}: scrap.flow"/>
93 <output name="flow_files" ftype="tabular"> 95 <output name="flow_files" ftype="tabular">
94 <assert_contents> 96 <assert_contents>
95 <has_text text="flow"/> 97 <has_text text="flow"/>
96 </assert_contents> 98 </assert_contents>
97 </output> 99 </output>
100 <param name="savelog" value="true"/>
98 <expand macro="logfile-test"/> 101 <expand macro="logfile-test"/>
99 </test> 102 </test>
100 <test><!-- test with oligos file and fasta output --> 103 <test><!-- test with oligos file and fasta output -->
101 <param name="flow" value="testflow.flow" ftype="mothur.sff.flow"/> 104 <param name="flow" value="testflow.flow" ftype="mothur.sff.flow"/>
102 <param name="add" value="yes"/> 105 <param name="add" value="yes"/>
114 </output> 117 </output>
115 <output_collection name="flow_oligos" count="2"> 118 <output_collection name="flow_oligos" count="2">
116 <element name="F003D006" md5="5ea6613d7aa26f87ca9b983152e14a4b" ftype="mothur.sff.flow"/> 119 <element name="F003D006" md5="5ea6613d7aa26f87ca9b983152e14a4b" ftype="mothur.sff.flow"/>
117 </output_collection> 120 </output_collection>
118 <output name="flow_fasta" md5="0725967a9ed731c049d48ea876b0e308" ftype="fasta"/> 121 <output name="flow_fasta" md5="0725967a9ed731c049d48ea876b0e308" ftype="fasta"/>
122 <param name="savelog" value="true"/>
119 <expand macro="logfile-test"/> 123 <expand macro="logfile-test"/>
120 </test> 124 </test>
121 </tests> 125 </tests>
122 <help> 126 <help><![CDATA[
123 <![CDATA[
124 127
125 @MOTHUR_OVERVIEW@ 128 @MOTHUR_OVERVIEW@
126 129
127 **Command Documentation** 130 **Command Documentation**
128 131
129 The trim.flows_ command is analogous to the trim.seqs command, except that it uses the flowgram data that comes bundled in the sff file that is generated by 454 sequencing. It's primary usage is as a preliminary step to running shhh.seqs. Chris Quince has a series of perl scripts that fulfill a similar role [1]. This command will allow you to partition your flowgram data by sample based on the barcode, trim the flows to a specified length range, and cull sequences that are too short or have too many mismatches to barcodes and primers. 132 The trim.flows_ command is analogous to the trim.seqs command, except that it uses the flowgram data that comes bundled in the sff file that is generated by 454 sequencing. It's primary usage is as a preliminary step to running shhh.seqs. Chris Quince has a series of perl scripts that fulfill a similar role [1]. This command will allow you to partition your flowgram data by sample based on the barcode, trim the flows to a specified length range, and cull sequences that are too short or have too many mismatches to barcodes and primers.
130 133
131 .. _trim.flows: https://www.mothur.org/wiki/Trim.flows 134 .. _trim.flows: https://www.mothur.org/wiki/Trim.flows
132 135
133 ]]> 136 ]]></help>
134 </help>
135 <expand macro="citations"/> 137 <expand macro="citations"/>
136 </tool> 138 </tool>