0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_diversity_adonis" name="qiime diversity adonis" version="2019.4">
|
|
3 <description> - adonis PERMANOVA test for beta group significance</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime diversity adonis
|
|
9
|
|
10 --i-distance-matrix=$idistancematrix
|
|
11
|
|
12
|
2
|
13 #if $input_files_mmetadatafile:
|
0
|
14 #def list_dict_to_string(list_dict):
|
|
15 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
16 #for d in list_dict[1:]:
|
4
|
17 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
0
|
18 #end for
|
|
19 #return $file_list
|
|
20 #end def
|
4
|
21 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
2
|
22 #end if
|
0
|
23
|
|
24
|
4
|
25
|
|
26 #if '__sq__' in str($pformula):
|
|
27 #set $pformula_temp = $pformula.replace('__sq__', "'")
|
|
28 #set $pformula = $pformula_temp
|
|
29 #end if
|
|
30
|
0
|
31 --p-formula="$pformula"
|
|
32
|
4
|
33
|
|
34
|
6
|
35 #if str($ppermutations):
|
0
|
36 --p-permutations=$ppermutations
|
|
37 #end if
|
|
38
|
|
39 #set $pnjobs = '${GALAXY_SLOTS:-4}'
|
|
40 #if str($pnjobs):
|
|
41 --p-n-jobs="$pnjobs"
|
|
42 #end if
|
|
43
|
|
44 --o-visualization=ovisualization
|
|
45 ;
|
|
46 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
47 && cp -r out/* '$ovisualization.files_path'
|
|
48 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
49 ]]></command>
|
|
50 <inputs>
|
|
51 <param format="qza,no_unzip.zip" label="--i-distance-matrix: ARTIFACT DistanceMatrix Matrix of distances between pairs of samples. [required]" name="idistancematrix" optional="False" type="data"/>
|
|
52 <param label="--p-formula: TEXT Model formula containing only independent terms contained in the sample metadata. These can be continuous variables or factors, and they can have interactions as in a typical R formula. E.g., the formula 'treatment+block' would test whether the input distance matrix partitions based on 'treatment' and 'block' sample metadata. The formula 'treatment*block' would test both of those effects as well as their interaction. Enclose formulae in quotes to avoid unpleasant surprises. [required]" name="pformula" optional="False" type="text"/>
|
|
53 <param label="--p-permutations: INTEGER Range(1, None) The number of permutations to be run when computing p-values. [default: 999]" name="ppermutations" optional="True" min="1" type="integer" value="999"/>
|
|
54
|
4
|
55 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file [required]">
|
0
|
56 <param format="tabular" label="--m-metadata-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [required]" name="additional_input" type="data"/>
|
|
57 </repeat>
|
|
58 </inputs>
|
|
59 <outputs>
|
|
60 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
61 </outputs>
|
|
62 <help><![CDATA[
|
|
63 adonis PERMANOVA test for beta group significance
|
|
64 #################################################
|
|
65
|
|
66 Determine whether groups of samples are significantly different from one
|
|
67 another using the ADONIS permutation-based statistical test in vegan-R. The
|
|
68 function partitions sums of squares of a multivariate data set, and is
|
|
69 directly analogous to MANOVA (multivariate analysis of variance). This
|
|
70 action differs from beta_group_signficance in that it accepts R formulae to
|
|
71 perform multi-way ADONIS tests; beta_group_signficance only performs one-
|
|
72 way tests. For more details see
|
|
73 http://cc.oulu.fi/~jarioksa/softhelp/vegan/html/adonis.html
|
|
74
|
|
75 Parameters
|
|
76 ----------
|
|
77 distance_matrix : DistanceMatrix
|
|
78 Matrix of distances between pairs of samples.
|
|
79 metadata : Metadata
|
|
80 Sample metadata containing formula terms.
|
|
81 formula : Str
|
|
82 Model formula containing only independent terms contained in the sample
|
|
83 metadata. These can be continuous variables or factors, and they can
|
|
84 have interactions as in a typical R formula. E.g., the formula
|
|
85 "treatment+block" would test whether the input distance matrix
|
|
86 partitions based on "treatment" and "block" sample metadata. The
|
|
87 formula "treatment*block" would test both of those effects as well as
|
|
88 their interaction. Enclose formulae in quotes to avoid unpleasant
|
|
89 surprises.
|
|
90 permutations : Int % Range(1, None), optional
|
|
91 The number of permutations to be run when computing p-values.
|
|
92
|
|
93 Returns
|
|
94 -------
|
|
95 visualization : Visualization
|
|
96 ]]></help>
|
|
97 <macros>
|
|
98 <import>qiime_citation.xml</import>
|
|
99 </macros>
|
|
100 <expand macro="qiime_citation"/>
|
|
101 </tool>
|