annotate qiime2/qiime_diversity_mantel.xml @ 29:3ba9833030c1 draft

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