comparison pre.cluster.xml @ 2:39cfb67a03c0 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:05:18 -0400
parents cad74a5a9a6f
children fbbe2b081299
comparison
equal deleted inserted replaced
1:58d0fe3cc0f2 2:39cfb67a03c0
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 "$fasta" fasta.dat && 13 ln -s '$fasta' fasta.dat &&
14 ln -s "$name" name.dat && 14 ln -s '$name' name.dat &&
15 ln -s "$group" group.dat && 15 ln -s '$group' group.dat &&
16 16
17 echo 'pre.cluster( 17 echo 'pre.cluster(
18 fasta=fasta.dat, 18 fasta=fasta.dat,
19 #if $name.is_of_type("mothur.names"): 19 #if $name.is_of_type("mothur.names"):
20 name=name.dat, 20 name=name.dat,
21 #elif $name.is_of_type("mothur.count_table"): 21 #elif $name.is_of_type("mothur.count_table"):
22 count=name.dat, 22 count=name.dat,
23 #end if 23 #end if
24 #if $group: 24 #if $group:
25 group=group.dat, 25 group=group.dat,
26 #end if 26 #end if
27 diffs=$diffs, 27 diffs=$diffs,
28 match=$match, 28 match=$match,
29 mismatch=$mismatch, 29 mismatch=$mismatch,
30 gapopen=$gapopen, 30 gapopen=$gapopen,
31 gapextend=$gapextend, 31 gapextend=$gapextend,
32 topdown=$topdown, 32 topdown=$topdown,
33 processors='\${GALAXY_SLOTS:-8}' 33 processors='\${GALAXY_SLOTS:-8}'
34 )' 34 )'
35 | sed 's/ //g' ## mothur trips over whitespace 35 | sed 's/ //g' ## mothur trips over whitespace
36 | mothur 36 | mothur
37 | tee mothur.out.log && 37 | tee mothur.out.log &&
38 38
39 if [ -f fasta.precluster.map ]; then mv fasta.precluster.map fasta.precluster.fasta.map; fi 39 cat fasta* &&
40
41 if [ -f fasta.precluster.map ]; then mv fasta.precluster.map fasta.precluster.fasta.map; fi
40 ]]></command> 42 ]]></command>
41 <inputs> 43 <inputs>
42 <param name="fasta" type="data" format="fasta" label="fasta - Sequence Fasta"/> 44 <param argument="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"/> 45 <param argument="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"/> 46 <param argument="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)"/> 47 <param argument="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)"/> 48 <param argument="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)"/> 49 <param argument="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)"/> 50 <param argument="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)"/> 51 <param argument="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"/> 52 <param argument="topdown" type="boolean" truevalue="true" falsevalue="false" checked="true" label="topdown"
53 help="cluster from largest abundance to smallest or vice versa. Default=Yes, meaning largest to smallest"/>
54 <expand macro="param-savelog"/>
51 </inputs> 55 </inputs>
52 <outputs> 56 <outputs>
53 <expand macro="logfile-output"/> 57 <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"/> 58 <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"> 59 <data name="names_out" format="mothur.names" from_work_dir="fasta*.precluster.names" label="${tool.name} on ${on_string}: precluster.names">
64 </outputs> 68 </outputs>
65 <tests> 69 <tests>
66 <test><!-- test with fasta and names file --> 70 <test><!-- test with fasta and names file -->
67 <param name="fasta" value="amazon.fasta_head" ftype="fasta"/> 71 <param name="fasta" value="amazon.fasta_head" ftype="fasta"/>
68 <param name="name" value="amazon.head.names" ftype="mothur.names"/> 72 <param name="name" value="amazon.head.names" ftype="mothur.names"/>
69 <output name="fasta_out" md5="d5d37ace0f2a5c020edd0aa9eb7aca9b" ftype="fasta"/> 73 <output name="fasta_out" ftype="fasta">
70 <output name="names_out" md5="51090fe5e111920ec1003c2073532d96" ftype="mothur.names"/> 74 <assert_contents>
75 <expand macro="test-fasta-format"/>
76 <has_text text="U68589"/>
77 </assert_contents>
78 </output>
79 <output name="names_out" ftype="mothur.names">
80 <assert_contents>
81 <expand macro="test-names-format"/>
82 <has_line_matching expression="^U68589\tU68589$"/>
83 </assert_contents>
84 </output>
71 <output_collection name="map_out" count="1"> 85 <output_collection name="map_out" count="1">
72 <element name="fasta" md5="c2ca7b0d45aa3881c7bd5cb8a44c853b" ftype="tabular"/> 86 <element name="fasta" ftype="tabular">
87 <assert_contents>
88 <has_text text="ideal_seq_1"/>
89 <has_text text="U68589"/>
90 </assert_contents>
91 </element>
73 </output_collection> 92 </output_collection>
93 <param name="savelog" value="true"/>
74 <expand macro="logfile-test"/> 94 <expand macro="logfile-test"/>
75 </test> 95 </test>
76 <test><!-- test with fasta and count table --> 96 <test><!-- test with fasta and count table -->
77 <param name="fasta" value="amazon.fasta_head" ftype="fasta"/> 97 <param name="fasta" value="amazon.fasta_head" ftype="fasta"/>
78 <param name="name" value="amazon.count_table" ftype="mothur.count_table"/> 98 <param name="name" value="amazon.count_table" ftype="mothur.count_table"/>
79 <output name="fasta_out" md5="d5d37ace0f2a5c020edd0aa9eb7aca9b" ftype="fasta"/> 99 <output name="fasta_out" ftype="fasta">
80 <output name="count_out" md5="9831e271b9a96f91ad700f84aeed03a5" ftype="mothur.count_table"/> 100 <assert_contents>
101 <expand macro="test-fasta-format"/>
102 <has_text text="U68589"/>
103 </assert_contents>
104 </output>
105 <output name="count_out" ftype="mothur.count_table">
106 <assert_contents>
107 <expand macro="test-count-format"/>
108 <has_text text="U68589"/>
109 </assert_contents>
110 </output>
81 <output_collection name="map_out" count="1"> 111 <output_collection name="map_out" count="1">
82 <element name="fasta" md5="c2ca7b0d45aa3881c7bd5cb8a44c853b" ftype="tabular"/> 112 <element name="fasta" ftype="tabular">
113 <assert_contents>
114 <has_text text="ideal_seq_1"/>
115 <has_text text="U68589"/>
116 </assert_contents>
117 </element>
83 </output_collection> 118 </output_collection>
119 <param name="savelog" value="true"/>
84 <expand macro="logfile-test"/> 120 <expand macro="logfile-test"/>
85 </test> 121 </test>
86 </tests> 122 </tests>
87 <help> 123 <help><![CDATA[
88 <![CDATA[
89 124
90 @MOTHUR_OVERVIEW@ 125 @MOTHUR_OVERVIEW@
91 126
92 **Command Documentation** 127 **Command Documentation**
93 128
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. 129 The pre.cluster_ command implements a pseudo-single linkage algorithm with the goal of removing sequences that
130 are likely due to pyrosequencing errors. The basic idea is that abundant sequences are more likely to generate
131 erroneous sequences than rare sequences. With that in mind, the algorithm proceeds by ranking sequences in order
132 of their abundance. Then we walk through the list of sequences looking for rarer sequences that are within some
133 threshold of the original sequence. Those that are within the threshold are merged with the larger sequence.
134 The original Huse method performs this task on a distance matrix, whereas we do it based on the original sequences.
135 The advantage of our approach is that the algorithm works on aligned sequences instead of a distance matrix.
136 This is advantageous because by pre-clustering you remove a large number of sequences making the distance
137 calculation much faster.
95 138
96 .. _pre.cluster: https://www.mothur.org/wiki/Pre.cluster 139 .. _pre.cluster: https://www.mothur.org/wiki/Pre.cluster
97 140
98 v1.24.0: Updated to mothur 1.33, added count and topdown parameter 141 v1.24.0: Updated to mothur 1.33, added count and topdown parameter
99 ]]> 142
100 </help> 143 ]]></help>
101 <expand macro="citations"/> 144 <expand macro="citations"/>
102 </tool> 145 </tool>