0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_diversity_mantel" name="qiime diversity mantel" version="2019.4">
|
|
3 <description> - Apply the Mantel test to two distance matrices</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime diversity mantel
|
|
9
|
|
10 --i-dm1=$idm1
|
|
11 --i-dm2=$idm2
|
|
12
|
|
13 #if str($pmethod) != 'None':
|
|
14 --p-method=$pmethod
|
|
15 #end if
|
|
16
|
4
|
17 #if str($ppermutations):
|
0
|
18 --p-permutations=$ppermutations
|
|
19 #end if
|
|
20
|
|
21 #if $pintersectids:
|
|
22 --p-intersect-ids
|
|
23 #end if
|
|
24
|
4
|
25
|
|
26
|
|
27 #if '__sq__' in str($plabel1):
|
|
28 #set $plabel1_temp = $plabel1.replace('__sq__', "'")
|
|
29 #set $plabel1 = $plabel1_temp
|
|
30 #end if
|
|
31
|
0
|
32 #if str($plabel1):
|
|
33 --p-label1="$plabel1"
|
|
34 #end if
|
|
35
|
4
|
36
|
|
37
|
|
38 #if '__sq__' in str($plabel2):
|
|
39 #set $plabel2_temp = $plabel2.replace('__sq__', "'")
|
|
40 #set $plabel2 = $plabel2_temp
|
|
41 #end if
|
|
42
|
0
|
43 #if str($plabel2):
|
|
44 --p-label2="$plabel2"
|
|
45 #end if
|
|
46
|
4
|
47
|
|
48
|
0
|
49 --o-visualization=ovisualization
|
|
50 ;
|
|
51 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
52 && cp -r out/* '$ovisualization.files_path'
|
|
53 && mv '$ovisualization.files_path/index.html' '$ovisualization';
|
|
54 ]]></command>
|
|
55 <inputs>
|
|
56 <param format="qza,no_unzip.zip" label="--i-dm1: ARTIFACT Matrix of distances between pairs of samples. DistanceMatrix [required]" name="idm1" optional="False" type="data"/>
|
|
57 <param format="qza,no_unzip.zip" label="--i-dm2: ARTIFACT Matrix of distances between pairs of samples. DistanceMatrix [required]" name="idm2" optional="False" type="data"/>
|
|
58 <param label="--p-method: " name="pmethod" optional="True" type="select">
|
|
59 <option selected="True" value="None">Selection is Optional</option>
|
|
60 <option value="spearman">spearman</option>
|
|
61 <option value="pearson">pearson</option>
|
|
62 </param>
|
|
63 <param label="--p-permutations: INTEGER Range(0, None) The number of permutations to be run when computing p-values. Supplying a value of zero will disable permutation testing and p-values will not be calculated (this results in *much* quicker execution time if p-values are not desired). [default: 999]" name="ppermutations" optional="True" type="integer" min="0" value="999"/>
|
|
64 <param label="--p-intersect-ids: --p-no-intersect-ids If supplied, IDs that are not found in both distance matrices will be discarded before applying the Mantel test. Default behavior is to error on any mismatched IDs. [default: False]" name="pintersectids" selected="False" type="boolean"/>
|
4
|
65 <param label="--p-label1: TEXT Label for `dm1` in the output visualization. [default: 'Distance Matrix 1']" name="plabel1" optional="True" type="text" value="Distance Matrix 1"/>
|
|
66 <param label="--p-label2: TEXT Label for `dm2` in the output visualization. [default: 'Distance Matrix 2']" name="plabel2" optional="True" type="text" value="Distance Matrix 2"/>
|
0
|
67 </inputs>
|
|
68 <outputs>
|
|
69 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
70 </outputs>
|
|
71 <help><![CDATA[
|
|
72 Apply the Mantel test to two distance matrices
|
|
73 ##############################################
|
|
74
|
|
75 Apply a two-sided Mantel test to identify correlation between two distance
|
|
76 matrices. Note: the directionality of the comparison has no bearing on the
|
|
77 results. Thus, comparing distance matrix X to distance matrix Y is
|
|
78 equivalent to comparing Y to X. Note: the order of samples within the two
|
|
79 distance matrices does not need to be the same; the distance matrices will
|
|
80 be reordered before applying the Mantel test. See the scikit-bio docs for
|
|
81 more details about the Mantel test: http://scikit-
|
|
82 bio.org/docs/latest/generated/generated/skbio.stats.distance.mantel.html
|
|
83
|
|
84 Parameters
|
|
85 ----------
|
|
86 dm1 : DistanceMatrix
|
|
87 Matrix of distances between pairs of samples.
|
|
88 dm2 : DistanceMatrix
|
|
89 Matrix of distances between pairs of samples.
|
|
90 method : Str % Choices('spearman', 'pearson'), optional
|
|
91 The correlation test to be applied in the Mantel test.
|
|
92 permutations : Int % Range(0, None), optional
|
|
93 The number of permutations to be run when computing p-values. Supplying
|
|
94 a value of zero will disable permutation testing and p-values will not
|
|
95 be calculated (this results in *much* quicker execution time if
|
|
96 p-values are not desired).
|
|
97 intersect_ids : Bool, optional
|
|
98 If supplied, IDs that are not found in both distance matrices will be
|
|
99 discarded before applying the Mantel test. Default behavior is to error
|
|
100 on any mismatched IDs.
|
|
101 label1 : Str, optional
|
|
102 Label for `dm1` in the output visualization.
|
|
103 label2 : Str, optional
|
|
104 Label for `dm2` in the output visualization.
|
|
105
|
|
106 Returns
|
|
107 -------
|
|
108 visualization : Visualization
|
|
109 ]]></help>
|
|
110 <macros>
|
|
111 <import>qiime_citation.xml</import>
|
|
112 </macros>
|
|
113 <expand macro="qiime_citation"/>
|
|
114 </tool>
|