Mercurial > repos > iuc > mothur_cooccurrence
comparison cooccurrence.xml @ 0:6cb0335df5db draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/mothur commit a9d1e0debcd357d8080a1c6c5f1d206dd45a7a4d
author | iuc |
---|---|
date | Fri, 19 May 2017 04:57:18 -0400 |
parents | |
children | c2cf32e92e83 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:6cb0335df5db |
---|---|
1 <tool profile="16.07" id="mothur_cooccurrence" name="Cooccurrence" version="@WRAPPER_VERSION@.0"> | |
2 <description>tests whether presence-absence patterns differ from chance</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 "$otu" otu.dat && | |
14 | |
15 echo 'cooccurrence( | |
16 shared=otu.dat, | |
17 metric=$metric, | |
18 matrixmodel=$matrixmodel, | |
19 iters=$iters | |
20 #if $label: | |
21 ,label=${ str($label).replace(",","-") } | |
22 #end if | |
23 #if $groups: | |
24 ,groups=${ str($groups).replace(",","-") } | |
25 #end if | |
26 )' | |
27 | sed 's/ //g' ## mothur trips over whitespace | |
28 | mothur | |
29 | tee mothur.out.log | |
30 ]]></command> | |
31 <inputs> | |
32 <param name="otu" type="data" format="mothur.shared" label="shared - OTU Shared file"/> | |
33 <param name="iters" type="integer" value="1000" min="1" optional="true" label="iters - Number of iterations to try (default 1000)"/> | |
34 <param name="metric" type="select" label="metric - test metric for scoring"> | |
35 <option value="cscore" selected="true">cscore - species segregation</option> | |
36 <option value="checker">checker - species segregation</option> | |
37 <option value="combo">combo - unique species pairs</option> | |
38 <option value="vratio">vratio - variance</option> | |
39 </param> | |
40 <param name="matrixmodel" type="select" label="matrixmodel - the scoring matrix" help="See the notes below on choosing a metric/matrixmodel combination"> | |
41 <option value="sim1">sim1</option> | |
42 <option value="sim2" selected="true">sim2</option> | |
43 <option value="sim3">sim3</option> | |
44 <option value="sim4">sim4</option> | |
45 <option value="sim5">sim5</option> | |
46 <option value="sim6">sim6</option> | |
47 <option value="sim7">sim7</option> | |
48 <option value="sim8">sim8</option> | |
49 <option value="sim9">sim9</option> | |
50 </param> | |
51 <param name="groups" type="select" optional="true" label="groups - Groups to include" multiple="true" help="By default all are included if no selection is made."> | |
52 <options> | |
53 <filter type="data_meta" ref="otu" key="groups"/> | |
54 </options> | |
55 </param> | |
56 <param name="label" type="select" optional="true" label="label - Select OTU Labels to include" multiple="true" help="By default all are included if no selection is made."> | |
57 <expand macro="labeloptions"/> | |
58 </param> | |
59 </inputs> | |
60 <outputs> | |
61 <expand macro="logfile-output"/> | |
62 <data name="out_summary" format="tabular" from_work_dir="otu*.summary" label="${tool.name} on ${on_string}: cooccurence.summary"/> | |
63 </outputs> | |
64 <tests> | |
65 <test><!-- test with defaults --> | |
66 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> | |
67 <output name="out_summary" ftype="tabular"> | |
68 <assert_contents> | |
69 <has_text text="zScore"/> | |
70 <has_text text="cscore"/> | |
71 <has_text text="unique"/> | |
72 <has_text text="0.05"/> | |
73 </assert_contents> | |
74 </output> | |
75 <expand macro="logfile-test"/> | |
76 </test> | |
77 <test><!-- test with label and group select --> | |
78 <param name="otu" value="amazon.an.shared" ftype="mothur.shared"/> | |
79 <param name="metric" value="vratio"/> | |
80 <param name="label" value="0.05,0.22,0.41"/> | |
81 <param name="groups" value="forest,pasture"/> | |
82 <output name="out_summary" ftype="tabular"> | |
83 <assert_contents> | |
84 <has_text text="zScore"/> | |
85 <has_text text="vratio"/> | |
86 <not_has_text text="unique"/> | |
87 <has_text text="0.05"/> | |
88 </assert_contents> | |
89 </output> | |
90 <expand macro="logfile-test"/> | |
91 </test> | |
92 </tests> | |
93 <help> | |
94 <![CDATA[ | |
95 | |
96 @MOTHUR_OVERVIEW@ | |
97 | |
98 **Command Documentation** | |
99 | |
100 The cooccurrence_ command variance calculates four metrics and tests their significance to assess whether presence-absence patterns are different than what one would expect by chance. The input is a shared_ file. The output can be filtered by groups and labels. | |
101 | |
102 | |
103 | |
104 **metric** | |
105 | |
106 The metric parameter options are **cscore**, **checker**, **combo** and **vratio**. Default=cscore. The cscore or checkerboard score [1] is a metric that measures species segregation. It is the mean number of checkerboard units per species pair. The checker metric [2] counts the number of species pairs forming a perfect checkerboard. The combo metric [3] is the number of unique species pairs. The vratio or variance ratio [4] is a measure of the species association calculated by the ratio of the variance in total species number to the sum of the variances of the species. :: | |
107 | |
108 [1] Stone, L., and A. Roberts. 1990. The checkerboard score and species distributions. Ocelogia. 85:74-79. | |
109 [2] Diamond, J. M. 1975. Assembly of species communities. Pages 342-444 in M. L. Cody and J. M. Diamond, editors. Ecology and evolution of communities. Harvard University Press, Cambridge, Massachusetts, USA. | |
110 [3] Pielou, D. P., and E. C. Pielou. 1968 Association among species of infrequent occurrence: the insect and spider fauna of Polypours betulinus (Bulliard) Fries. Journal of Theoretical Biology 21:202-216. | |
111 [4] Schluter, D. 1984. A variance test for detecting species associations, with some example applications. Ecology 65:998-1005. | |
112 [5] Gotelli, Nicholas J. 2000. NULL MODEL ANALYSIS OF SPECIES CO-OCCURRENCE PATTERNS. Ecology 81:2606-2621. | |
113 | |
114 | |
115 | |
116 **matrixmodel** | |
117 | |
118 The matrixmodel parameter allows you to select the model you would like to use. Options are sim1, sim2, sim3, sim4, sim5, sim6, sim7, sim8 and sim9. Default=sim2. | |
119 | |
120 Each sim implements a different algorithm for generating null matrices with constraints on the rows (species) and columns (sites).:: | |
121 ===================== ====================== ======================= ====================== | |
122 Rows Columns equiprobable Columns proportional Column totals fixed | |
123 ===================== ====================== ======================= ====================== | |
124 Rows equiprobable sim1 sim6 sim3 | |
125 Rows proportional sim7 sim8 sim5 | |
126 Row totals fixed sim2 sim4 sim9 | |
127 ===================== ====================== ======================= ====================== | |
128 | |
129 Equiprobable rows or columns means that each row, column or both is not dependent on the original co-occurrence matrix. Each species or site has an equal change of occurring in the null matrix. | |
130 Proportional rows or columns means that the proportion of occurrences in rows, columns or both in the original co-occurrence matrix are preserved but the totals may differ. Each species or site's chances of occurring are proportional to their occurrence in the original co-occurrence matrix. | |
131 Fixed row or column totals preserves the total number of occurrences in rows, columns or both in the original co-occurrence matrix. Sim9 is a special case that is not probabilistic. Since both the row and column totals are preserved the only way to randomize the matrix is with a checkerboard swap. When a checkerboard appears in the matrix the 1s and 0s are swapped to their mirror image to preserve the species and site totals. | |
132 | |
133 Checkerboard:: | |
134 | |
135 10 | |
136 01 | |
137 | |
138 Swap:: | |
139 | |
140 01 | |
141 10 | |
142 | |
143 | |
144 suggested metric/matrixmodel combinations:: | |
145 ======== ======== ======== ======== | |
146 cscore checker combo vratio | |
147 ======== ======== ======== ======== | |
148 sim9 sim9 sim9 sim2 | |
149 sim2 sim2 sim2 sim4 | |
150 - - sim4 sim8 | |
151 - - sim8 - | |
152 ======== ======== ======== ======== | |
153 | |
154 | |
155 Careful readers will note that none of the suggested matrixmodels have equiprobable rows (species). This is because tests of co-occurrence are quite sensitive to the frequency of species occurrence. As such, rowtotals should be maintained or at least kept proportional in the null models. Sim9 is well suited to co-occurrence matrices that have an "island list" structure. Island lists are often found in classical ecology datasets that contain species with well defined habitat patches and are rarely degenerate (matrices that contain empty rows or columns). Sim2 is well suited for co-occurrence matrices that have a "sample list" structure. Sample list structured data are found where species have relatively homogeneous habitats and degenerate matrices are not uncommon. In these matrices species will often occur in only one site. | |
156 The default values of cscore and sim2 have been selected because the c-score is not very sensitive to noise in the data and when used with sim9 or sim2 is not particularly prone to false positives. Sim2 has been chosen because of the prevalence of degenerate matrices. These are just guidelines, however, be sure to select a metric and matrix model that is best suited to the type of data you are analyzing. | |
157 It should be noted that sim9 cannot be used with vratio because in sim9 both the column and row totals are maintained, hence there will be no variance. | |
158 Please see [5] for more details on metric/null model selection. | |
159 | |
160 | |
161 .. _shared: https://www.mothur.org/wiki/Shared_file | |
162 .. _cooccurrence: https://www.mothur.org/wiki/Cooccurrence | |
163 | |
164 v1.26.0: Updated to Mothur 1.33 | |
165 ]]> | |
166 </help> | |
167 <expand macro="citations"/> | |
168 </tool> |