Mercurial > repos > iuc > mothur_cluster
comparison cluster.xml @ 3:d7782c32375c draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit 4648c7574a78601e03ae6a318cbcd5b492a8a9f4
| author | iuc |
|---|---|
| date | Wed, 14 Feb 2018 09:41:12 -0500 |
| parents | c212b5d35bfe |
| children | 7fbfa011df79 |
comparison
equal
deleted
inserted
replaced
| 2:a0abee5c5776 | 3:d7782c32375c |
|---|---|
| 1 <tool profile="16.07" id="mothur_cluster" name="Cluster" version="@WRAPPER_VERSION@.0"> | 1 <tool profile="16.07" id="mothur_cluster" name="Cluster" version="@WRAPPER_VERSION@.0"> |
| 2 <description>Assign sequences to OTUs (Operational Taxonomic Unit)</description> | 2 <description>Assign sequences to OTUs (Operational Taxonomic Unit)</description> |
| 3 <macros> | 3 <macros> |
| 4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
| 5 </macros> | 5 </macros> |
| 6 <expand macro="requirements"/> | 6 <expand macro="requirements"> |
| 7 <requirement type="package" version="2.6.0">vsearch</requirement> | |
| 8 </expand> | |
| 7 <expand macro="stdio"/> | 9 <expand macro="stdio"/> |
| 8 <expand macro="version_command"/> | 10 <expand macro="version_command"/> |
| 9 <command><![CDATA[ | 11 <command><![CDATA[ |
| 10 @SHELL_OPTIONS@ | 12 @SHELL_OPTIONS@ |
| 11 | 13 |
| 12 ## create symlinks to input datasets | 14 ## create symlinks to input datasets |
| 13 ln -s "$matrix.dist" matrix.dist.dat && | 15 ln -s '$matrix.dist' matrix.dist.dat && |
| 14 ln -s "$matrix.name" matrix.name.dat && | 16 ln -s '$matrix.name' matrix.name.dat && |
| 15 ln -s "$count" count.dat && | 17 ln -s '$count' count.dat && |
| 16 | 18 |
| 17 echo 'cluster( | 19 echo 'cluster( |
| 18 #if $matrix.format == "phylip": | 20 #if $matrix.format == "phylip": |
| 19 phylip=matrix.dist.dat, | 21 phylip=matrix.dist.dat, |
| 20 #else | 22 #else |
| 21 column=matrix.dist.dat, | 23 column=matrix.dist.dat, |
| 22 #end if | 24 #end if |
| 23 #if $matrix.name: | 25 #if $matrix.name: |
| 24 name=matrix.name.dat, | 26 name=matrix.name.dat, |
| 25 #end if | 27 #end if |
| 26 #if $count: | 28 #if $count: |
| 27 count=count.dat, | 29 count=count.dat, |
| 28 #end if | 30 #end if |
| 29 hard=$hard, | 31 #if float($cutoff) > 0.0: |
| 30 #if float($cutoff) > 0.0: | 32 cutoff=$cutoff, |
| 31 cutoff=$cutoff, | 33 #end if |
| 32 #end if | 34 #if $select_method.method =="opti": |
| 33 precision=$precision, | 35 metric=$select_method.metric, |
| 34 sim=$sim, | 36 initialize=$select_method.initialize, |
| 35 method=$method | 37 delta=$select_method.delta, |
| 36 )' | 38 iters=$select_method.iters, |
| 37 | sed 's/ //g' ## mothur trips over whitespace | 39 #end if |
| 38 | mothur | 40 precision=$precision, |
| 39 | tee mothur.out.log | 41 sim=$sim, |
| 42 method=$select_method.method | |
| 43 )' | |
| 44 | sed 's/ //g' ## mothur trips over whitespace | |
| 45 | mothur | |
| 46 | tee mothur.out.log | |
| 40 ]]></command> | 47 ]]></command> |
| 41 <inputs> | 48 <inputs> |
| 42 <conditional name="matrix"> | 49 <conditional name="matrix"> |
| 43 <param name="format" type="select" label="Select a Distance Matrix Format" help=""> | 50 <param name="format" type="select" label="Cluster based on" help=""> |
| 44 <option value="column">Pairwise Column Matrix</option> | 51 <option value="column">Pairwise Column Matrix</option> |
| 45 <option value="phylip">Phylip Distance Matrix</option> | 52 <option value="phylip">Phylip Distance Matrix</option> |
| 53 <option value="fasta">Fasta (VSEARCH)</option> | |
| 46 </param> | 54 </param> |
| 47 <when value="column"> | 55 <when value="column"> |
| 48 <param name="dist" type="data" format="mothur.pair.dist" label="column - Distance Matrix"/> | 56 <param name="dist" argument="column" type="data" format="mothur.pair.dist" label="column - Distance Matrix"/> |
| 49 <param name="name" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/> | 57 <param argument="name" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/> |
| 50 </when> | 58 </when> |
| 51 <when value="phylip"> | 59 <when value="phylip"> |
| 52 <param name="dist" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/> | 60 <param name="dist" argument="phylip" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/> |
| 53 <param name="name" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/> | 61 <param argument="name" type="data" format="mothur.names" optional="true" label="name - Sequences Name reference"/> |
| 62 </when> | |
| 63 <when value="fasta"> | |
| 64 <param argument="fasta" type="data" format="mothur.align,fasta" label="Fasta file"/> | |
| 54 </when> | 65 </when> |
| 55 </conditional> | 66 </conditional> |
| 56 <param name="count" type="data" format="mothur.count_table" optional="true" label="count - a count_table" help="generated by count.seqs"/> | 67 <param argument="count" type="data" format="mothur.count_table" optional="true" label="count - a count_table" help="generated by count.seqs"/> |
| 57 <param name="method" type="select" label="method - Select a Clustering Method" help=""> | 68 <conditional name="select_method"> |
| 58 <option value="furthest">Furthest neighbor</option> | 69 <expand macro="param-clustermethods"> |
| 59 <option value="nearest">Nearest neighbor</option> | 70 <expand macro="option-vsearch-clustermethods"/> |
| 60 <option value="average" selected="true">Average neighbor</option> | 71 </expand> |
| 61 <option value="weighted">Weighted</option> | 72 <when value="furthest"/> |
| 62 </param> | 73 <when value="nearest"/> |
| 63 <param name="cutoff" type="float" value="0.0" label="cutoff - Distance Cutoff threshold - ignored if not > 0.0" help="Ignore pairwise distances larger than this, a common value would be 0.10"/> | 74 <when value="average"/> |
| 64 <param name="hard" type="boolean" checked="true" truevalue="true" falsevalue="false" label="hard - Use hard cutoff instead of rounding"/> | 75 <when value="agc"> |
| 65 <param name="precision" type="select" optional="true" label="precision - Precision for rounding distance values" help="Set higher precision for longer genome scale sequence lengths"> | 76 <param argument="fasta" type="data" format="mothur.align,fasta" label="Fasta file"/> |
| 77 </when> | |
| 78 <when value="dgc"> | |
| 79 <param argument="fasta" type="data" format="mothur.align,fasta" label="Fasta file"/> | |
| 80 </when> | |
| 81 <when value="opti"> | |
| 82 <expand macro="params-opticlust"/> | |
| 83 </when> | |
| 84 </conditional> | |
| 85 <param argument="cutoff" type="float" value="0.0" label="cutoff - Distance Cutoff threshold - ignored if not > 0.0" | |
| 86 help="Ignore pairwise distances larger than this, a common value would be 0.10"/> | |
| 87 <param name="precision" type="select" optional="true" label="precision - Precision for rounding distance values" | |
| 88 help="Set higher precision for longer genome scale sequence lengths"> | |
| 66 <option value="10">.1</option> | 89 <option value="10">.1</option> |
| 67 <option value="100" selected="true">.01</option> | 90 <option value="100" selected="true">.01</option> |
| 68 <option value="1000">.001</option> | 91 <option value="1000">.001</option> |
| 69 <option value="10000">.0001</option> | 92 <option value="10000">.0001</option> |
| 70 <option value="100000">.00001</option> | 93 <option value="100000">.00001</option> |
| 71 <option value="1000000">.000001</option> | 94 <option value="1000000">.000001</option> |
| 72 </param> | 95 </param> |
| 73 <param name="sim" type="boolean" checked="false" truevalue="true" falsevalue="false" label="sim - Matrix values are Similary instead of Distance"/> | 96 <param argument="sim" type="boolean" checked="false" truevalue="true" falsevalue="false" label="sim - Matrix values are Similary instead of Distance"/> |
| 74 </inputs> | 97 </inputs> |
| 75 <outputs> | 98 <outputs> |
| 76 <expand macro="logfile-output"/> | 99 <expand macro="logfile-output"/> |
| 77 <data name="rabund" format="mothur.rabund" from_work_dir="matrix.dist*.rabund" label="${tool.name} on ${on_string}: rabund (Rank Abundance)"/> | 100 <data name="rabund" format="mothur.rabund" from_work_dir="matrix.dist*.rabund" label="${tool.name} on ${on_string}: rabund (Rank Abundance)"/> |
| 78 <data name="sabund" format="mothur.sabund" from_work_dir="matrix.dist*.sabund" label="${tool.name} on ${on_string}: sabund (Species Abundance)"/> | 101 <data name="sabund" format="mothur.sabund" from_work_dir="matrix.dist*.sabund" label="${tool.name} on ${on_string}: sabund (Species Abundance)"/> |
| 80 </outputs> | 103 </outputs> |
| 81 <tests> | 104 <tests> |
| 82 <test><!-- test with phylip input --> | 105 <test><!-- test with phylip input --> |
| 83 <param name="format" value="phylip"/> | 106 <param name="format" value="phylip"/> |
| 84 <param name="dist" value="amazon.dist"/> | 107 <param name="dist" value="amazon.dist"/> |
| 85 <output name="rabund" file="amazon.an.rabund" ftype="mothur.rabund"/> | 108 <output name="rabund" ftype="mothur.rabund"> |
| 86 <output name="sabund" file="amazon.an.sabund" ftype="mothur.sabund"/> | 109 <assert_contents> |
| 87 <output name="otulist" md5="a6bf2a6ef7950b3ee2aa5bff4a662b6d" ftype="mothur.list"/> | 110 <has_line_matching expression="^0\.03(\t\d+)+$"/> |
| 111 </assert_contents> | |
| 112 </output> | |
| 113 <output name="sabund" ftype="mothur.sabund"> | |
| 114 <assert_contents> | |
| 115 <has_line_matching expression="^0\.03(\t\d+)+$"/> | |
| 116 </assert_contents> | |
| 117 </output> | |
| 118 <output name="otulist" ftype="mothur.list"> | |
| 119 <assert_contents> | |
| 120 <expand macro="test-list-format"/> | |
| 121 <has_text text="0.03"/> | |
| 122 <has_text text="U68688"/> | |
| 123 </assert_contents> | |
| 124 </output> | |
| 88 <expand macro="logfile-test"/> | 125 <expand macro="logfile-test"/> |
| 89 </test> | 126 </test> |
| 90 <test><!-- test with column input --> | 127 <test><!-- test with column input --> |
| 91 <param name="format" value="column"/> | 128 <param name="format" value="column"/> |
| 92 <param name="dist" value="amazon.pair.dist"/> | 129 <param name="dist" value="amazon.pair.dist"/> |
| 93 <param name="name" value="amazon.names"/> | 130 <param name="name" value="amazon.names"/> |
| 94 <output name="rabund" md5="ec88216404729d0f4a0463e50e60c9ad" ftype="mothur.rabund"/> | 131 <output name="rabund" ftype="mothur.rabund"> |
| 95 <output name="sabund" md5="f2c714531430b98d8cdfd3497468eec2" ftype="mothur.sabund"/> | 132 <assert_contents> |
| 96 <output name="otulist" md5="1769463ed0b6680babe5801bf9c0a85c" ftype="mothur.list"/> | 133 <has_line_matching expression="^0\.03(\t\d+)+$"/> |
| 134 </assert_contents> | |
| 135 </output> | |
| 136 <output name="sabund" ftype="mothur.sabund"> | |
| 137 <assert_contents> | |
| 138 <has_line_matching expression="^0\.03(\t\d+)+$"/> | |
| 139 </assert_contents> | |
| 140 </output> | |
| 141 <output name="otulist" ftype="mothur.list"> | |
| 142 <assert_contents> | |
| 143 <expand macro="test-list-format"/> | |
| 144 <has_text text="0.03"/> | |
| 145 <has_text text="U68688"/> | |
| 146 </assert_contents> | |
| 147 </output> | |
| 148 <expand macro="logfile-test"/> | |
| 149 </test> | |
| 150 <test><!-- test with column input --> | |
| 151 <param name="format" value="column"/> | |
| 152 <param name="dist" value="amazon.pair.dist"/> | |
| 153 <param name="name" value="amazon.names"/> | |
| 154 <output name="rabund" ftype="mothur.rabund"> | |
| 155 <assert_contents> | |
| 156 <has_line_matching expression="^0\.03(\t\d+)+$"/> | |
| 157 </assert_contents> | |
| 158 </output> | |
| 159 <output name="sabund" ftype="mothur.sabund"> | |
| 160 <assert_contents> | |
| 161 <has_line_matching expression="^0\.03(\t\d+)+$"/> | |
| 162 </assert_contents> | |
| 163 </output> | |
| 164 <output name="otulist" ftype="mothur.list"> | |
| 165 <assert_contents> | |
| 166 <expand macro="test-list-format"/> | |
| 167 <has_text text="0.03"/> | |
| 168 <has_text text="U68688"/> | |
| 169 </assert_contents> | |
| 170 </output> | |
| 97 <expand macro="logfile-test"/> | 171 <expand macro="logfile-test"/> |
| 98 </test> | 172 </test> |
| 99 </tests> | 173 </tests> |
| 100 <help> | 174 <help><![CDATA[ |
| 101 <![CDATA[ | |
| 102 | 175 |
| 103 @MOTHUR_OVERVIEW@ | 176 @MOTHUR_OVERVIEW@ |
| 104 | 177 |
| 105 **Command Documentation** | 178 **Command Documentation** |
| 106 | 179 |
| 112 .. _list: https://www.mothur.org/wiki/List_file | 185 .. _list: https://www.mothur.org/wiki/List_file |
| 113 .. _rabund: https://www.mothur.org/wiki/Rabund_file | 186 .. _rabund: https://www.mothur.org/wiki/Rabund_file |
| 114 .. _sabund: https://www.mothur.org/wiki/Sabund_file | 187 .. _sabund: https://www.mothur.org/wiki/Sabund_file |
| 115 .. _cluster: https://www.mothur.org/wiki/Cluster | 188 .. _cluster: https://www.mothur.org/wiki/Cluster |
| 116 | 189 |
| 117 ]]> | 190 ]]></help> |
| 118 </help> | |
| 119 <expand macro="citations"/> | 191 <expand macro="citations"/> |
| 120 </tool> | 192 </tool> |
