comparison pre.cluster.xml @ 0:cad74a5a9a6f 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:49:39 -0400
parents
children 39cfb67a03c0
comparison
equal deleted inserted replaced
-1:000000000000 0:cad74a5a9a6f
1 <tool profile="16.07" id="mothur_pre_cluster" name="Pre.cluster" version="@WRAPPER_VERSION@.0">
2 <description>Remove sequences due to pyrosequencing errors</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" fasta.dat &&
14 ln -s "$name" name.dat &&
15 ln -s "$group" group.dat &&
16
17 echo 'pre.cluster(
18 fasta=fasta.dat,
19 #if $name.is_of_type("mothur.names"):
20 name=name.dat,
21 #elif $name.is_of_type("mothur.count_table"):
22 count=name.dat,
23 #end if
24 #if $group:
25 group=group.dat,
26 #end if
27 diffs=$diffs,
28 match=$match,
29 mismatch=$mismatch,
30 gapopen=$gapopen,
31 gapextend=$gapextend,
32 topdown=$topdown,
33 processors='\${GALAXY_SLOTS:-8}'
34 )'
35 | sed 's/ //g' ## mothur trips over whitespace
36 | mothur
37 | tee mothur.out.log &&
38
39 if [ -f fasta.precluster.map ]; then mv fasta.precluster.map fasta.precluster.fasta.map; fi
40 ]]></command>
41 <inputs>
42 <param name="fasta" type="data" format="fasta" label="fasta - Sequence Fasta"/>
43 <param name="name" type="data" format="mothur.names,mothur.count_table" optional="true" label="name file or count table - Sequences Name reference"/>
44 <param name="group" type="data" format="mothur.groups" optional="true" label="group - Sequences Name reference"/>
45 <param name="diffs" type="integer" value="1" min="0" label="diffs - Number of mismatched bases to allow between sequences in a group (default 1)"/>
46 <param name="match" type="integer" value="1" label="match - reward for a match (default 1)"/>
47 <param name="mismatch" type="integer" value="-1" label="mismatch - penalty for a mismatch (default -1)"/>
48 <param name="gapopen" type="integer" value="-2" label="gapopen - penalty for opening a gap (default -2)"/>
49 <param name="gapextend" type="integer" value="-1" label="gapextend - penalty for extending a gap (default -1)"/>
50 <param name="topdown" type="boolean" truevalue="true" falsevalue="false" checked="true" label="topdown" help="cluster from largest abundance to smallest or vice versa. Default=Yes, meaning largest to smallest"/>
51 </inputs>
52 <outputs>
53 <expand macro="logfile-output"/>
54 <data name="fasta_out" format_source="fasta" from_work_dir="fasta*.precluster.dat" label="${tool.name} on ${on_string}: precluster.fasta"/>
55 <data name="names_out" format="mothur.names" from_work_dir="fasta*.precluster.names" label="${tool.name} on ${on_string}: precluster.names">
56 <filter>name.ext != "mothur.count_table"</filter>
57 </data>
58 <data name="count_out" format="mothur.count_table" from_work_dir="fasta*.precluster.count_table" label="${tool.name} on ${on_string}: precluster.count_table">
59 <filter>name.ext == "mothur.count_table"</filter>
60 </data>
61 <collection name="map_out" type="list" label="${tool.name} on ${on_string}: precluster.map">
62 <discover_datasets pattern="fasta\.precluster\.(?P&lt;designation&gt;.*)\.map" format="tabular"/>
63 </collection>
64 </outputs>
65 <tests>
66 <test><!-- test with fasta and names file -->
67 <param name="fasta" value="amazon.fasta_head" ftype="fasta"/>
68 <param name="name" value="amazon.head.names" ftype="mothur.names"/>
69 <output name="fasta_out" md5="d5d37ace0f2a5c020edd0aa9eb7aca9b" ftype="fasta"/>
70 <output name="names_out" md5="51090fe5e111920ec1003c2073532d96" ftype="mothur.names"/>
71 <output_collection name="map_out" count="1">
72 <element name="fasta" md5="c2ca7b0d45aa3881c7bd5cb8a44c853b" ftype="tabular"/>
73 </output_collection>
74 <expand macro="logfile-test"/>
75 </test>
76 <test><!-- test with fasta and count table -->
77 <param name="fasta" value="amazon.fasta_head" ftype="fasta"/>
78 <param name="name" value="amazon.count_table" ftype="mothur.count_table"/>
79 <output name="fasta_out" md5="d5d37ace0f2a5c020edd0aa9eb7aca9b" ftype="fasta"/>
80 <output name="count_out" md5="9831e271b9a96f91ad700f84aeed03a5" ftype="mothur.count_table"/>
81 <output_collection name="map_out" count="1">
82 <element name="fasta" md5="c2ca7b0d45aa3881c7bd5cb8a44c853b" ftype="tabular"/>
83 </output_collection>
84 <expand macro="logfile-test"/>
85 </test>
86 </tests>
87 <help>
88 <![CDATA[
89
90 @MOTHUR_OVERVIEW@
91
92 **Command Documentation**
93
94 The pre.cluster_ command implements a pseudo-single linkage algorithm with the goal of removing sequences that are likely due to pyrosequencing errors. The basic idea is that abundant sequences are more likely to generate erroneous sequences than rare sequences. With that in mind, the algorithm proceeds by ranking sequences in order of their abundance. Then we walk through the list of sequences looking for rarer sequences that are within some threshold of the original sequence. Those that are within the threshold are merged with the larger sequence. The original Huse method performs this task on a distance matrix, whereas we do it based on the original sequences. The advantage of our approach is that the algorithm works on aligned sequences instead of a distance matrix. This is advantageous because by pre-clustering you remove a large number of sequences making the distance calculation much faster.
95
96 .. _pre.cluster: https://www.mothur.org/wiki/Pre.cluster
97
98 v1.24.0: Updated to mothur 1.33, added count and topdown parameter
99 ]]>
100 </help>
101 <expand macro="citations"/>
102 </tool>