Mercurial > repos > sanbi-uwc > mothur_test
annotate tools/mothur/homova.xml @ 0:ee4fee239fe7 draft default tip
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
| author | sanbi-uwc |
|---|---|
| date | Fri, 03 Jun 2016 09:32:47 -0400 |
| parents | |
| children |
| rev | line source |
|---|---|
|
0
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
1 <tool profile="16.07" id="mothur_homova" name="Homova" version="@WRAPPER_VERSION@.0"> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
2 <description>Homogeneity of molecular variance</description> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
3 <macros> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
4 <import>macros.xml</import> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
5 </macros> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
6 <expand macro="requirements"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
7 <expand macro="version_command"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
8 <command detect_errors="aggressive"><![CDATA[ |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
9 echo 'homova( |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
10 phylip=$dist, |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
11 design=$design, |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
12 #if $sets: |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
13 sets=${ str($sets).replace(",","-") }, |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
14 #end if |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
15 iters=$iters, |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
16 alpha=$alpha |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
17 )' |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
18 | sed 's/ //g' ## mothur trips over whitespace |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
19 | mothur && |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
20 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
21 ## move output files to correct destination |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
22 prefix="$dist" && |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
23 mv mothur.*.logfile "$logfile" && |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
24 mv \${prefix%.dat}*.homova "$homova" |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
25 ]]></command> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
26 <inputs> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
27 <param name="dist" type="data" format="mothur.dist,mothur.lower.dist,mothur.square.dist" label="phylip - Distance Matrix"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
28 <param name="design" type="data" format="mothur.design" label="design - assign groups to new grouping" help="design has 2 columns: group(col 1) and grouping(col 2) (separated by a TAB character)"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
29 <param name="alpha" type="float" optional="true" value="0.05" min="0.0" label="alpha - acceptable stopping precision (default 0.05)"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
30 <param name="iters" type="integer" value="1000" min="0" label="iters - Number of random configuration to try (default 1000)"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
31 <param name="sets" type="select" multiple="true" label="sets - Which of the sets in your design file you would like to analyze. The set names are separated by dashes. The default is all sets in designfile"> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
32 <options> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
33 <filter type="data_meta" ref="design" key="groups"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
34 </options> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
35 </param> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
36 </inputs> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
37 <outputs> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
38 <data name="logfile" format="txt" label="${tool.name} on ${on_string}: logfile"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
39 <data name="homova" format="tabular" label="${tool.name} on ${on_string}: homova"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
40 </outputs> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
41 <tests> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
42 <test><!-- test default settings --> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
43 <param name="dist" value="amazon.dist" ftype="mothur.dist"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
44 <param name="design" value="amazon.design" ftype="tabular"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
45 <output name="homova" ftype="tabular"> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
46 <assert_contents> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
47 <has_line_matching expression="^HOMOVA\tBValue\tP-value\tSSwithin/\(Ni-1\)_values$"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
48 <has_text text="A-B"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
49 </assert_contents> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
50 </output> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
51 <expand macro="logfile-test"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
52 </test> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
53 <test><!-- test with subsets --> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
54 <param name="dist" value="amazon.dist" ftype="mothur.dist"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
55 <param name="design" value="amazon.design" ftype="mothur.design"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
56 <param name="sets" value="A"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
57 <output name="homova" ftype="tabular"> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
58 <assert_contents> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
59 <has_line_matching expression="^HOMOVA\tBValue\tP-value\tSSwithin/\(Ni-1\)_values$"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
60 <has_line_matching expression="A\t.*$"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
61 </assert_contents> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
62 </output> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
63 <expand macro="logfile-test"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
64 </test> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
65 </tests> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
66 <help> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
67 <![CDATA[ |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
68 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
69 @MOTHUR_OVERVIEW@ |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
70 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
71 **Command Documenation** |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
72 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
73 The homova_ command calculates the homogeneity of molecular variance (HOMOVA) from a phylip_distance_matrix_, a nonparametric analog of Bartlett's test for homo- geneity of variance, which has been used in population genetics to test the hypothesis that the genetic diversity within two or more populations is homogeneous. |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
74 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
75 A design file partitions a list of names into groups. It is a tab-delimited file with 2 columns: name and group, e.g. : |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
76 ======= ======= |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
77 duck bird |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
78 cow mammal |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
79 pig mammal |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
80 goose bird |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
81 cobra reptile |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
82 ======= ======= |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
83 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
84 The Make_Design tool can construct a design file from a Mothur dataset that contains group names. |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
85 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
86 .. _phylip_distance_matrix: http://www.mothur.org/wiki/Phylip-formatted_distance_matrix |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
87 .. _homova: http://www.mothur.org/wiki/Homova |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
88 |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
89 v.1.20.0: Updated to Mothur 1.33, added sets parameter |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
90 ]]> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
91 </help> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
92 <expand macro="citations"/> |
|
ee4fee239fe7
planemo upload commit 68a4fd4cc5332c57ac39bef73db224425af0706c-dirty
sanbi-uwc
parents:
diff
changeset
|
93 </tool> |
