annotate qiime2-2020.8/qiime_diversity_beta-correlation.xml @ 23:b2b992719dda draft

Deleted selected files
author florianbegusch
date Fri, 04 Sep 2020 12:55:23 +0000
parents d93d8888f0b0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
2 <tool id="qiime_diversity_beta-correlation" name="qiime diversity beta-correlation"
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
3 version="2020.8">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
4 <description>Beta diversity correlation</description>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
5 <requirements>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
6 <requirement type="package" version="2020.8">qiime2</requirement>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
7 </requirements>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
8 <command><![CDATA[
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
9 qiime diversity beta-correlation
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
10
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
11 --i-distance-matrix=$idistancematrix
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
12 # if $input_files_mmetadatafile:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
13 # def list_dict_to_string(list_dict):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
14 # set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
15 # for d in list_dict[1:]:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
16 # set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
17 # end for
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
18 # return $file_list
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
19 # end def
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
20 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
21 # end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
22
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
23 #if '__ob__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
24 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__ob__', '[')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
25 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
26 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
27 #if '__cb__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
28 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__cb__', ']')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
29 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
30 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
31 #if 'X' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
32 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('X', '\\')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
33 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
34 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
35 #if '__sq__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
36 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__sq__', "'")
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
37 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
38 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
39 #if '__db__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
40 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__db__', '"')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
41 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
42 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
43
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
44 --m-metadata-column=$mmetadatacolumn
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
45
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
46
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
47 #if str($pmethod) != 'None':
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
48 --p-method=$pmethod
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
49 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
50
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
51 --p-permutations=$ppermutations
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
52
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
53 #if $pintersectids:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
54 --p-intersect-ids
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
55 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
56
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
57 #if str($plabel1):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
58 --p-label1=$plabel1
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
59 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
60 #if str($plabel2):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
61 --p-label2=$plabel2
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
62 #end if# if $input_files_ometadatadistancematrix:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
63 # def list_dict_to_string(list_dict):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
64 # set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
65 # for d in list_dict[1:]:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
66 # set $file_list = $file_list + ' --o-metadata-distance-matrix=' + d['additional_input'].__getattr__('file_name')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
67 # end for
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
68 # return $file_list
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
69 # end def
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
70 --o-metadata-distance-matrix=$list_dict_to_string($input_files_ometadatadistancematrix)
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
71 # end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
72
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
73 --o-mantel-scatter-visualization=omantelscattervisualization
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
74
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
75 #if str($examples) != 'None':
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
76 --examples=$examples
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
77 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
78
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
79 ;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
80 cp odistancematrix.qza $odistancematrix
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
81
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
82 ;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
83 qiime tools export omantelscattervisualization.qzv --output-path out
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
84 && mkdir -p '$omantelscattervisualization.files_path'
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
85 && cp -r out/* '$omantelscattervisualization.files_path'
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
86 && mv '$omantelscattervisualization.files_path/index.html' '$omantelscattervisualization'
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
87
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
88 ]]></command>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
89 <inputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
90 <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" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
91 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
92 <param format="tabular,qza,no_unzip.zip" label="--m-metadata-file: METADATA" name="additional_input" optional="True" type="data" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
93 </repeat>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
94 <param label="--m-metadata-column: COLUMN MetadataColumn[Numeric] Numeric metadata column from which to compute pairwise Euclidean distances [required]" name="mmetadatacolumn" optional="False" type="text" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
95 <param label="--p-method: " name="pmethod" optional="True" type="select">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
96 <option selected="True" value="None">Selection is Optional</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
97 <option value="spearman">spearman</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
98 <option value="pearson">pearson</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
99 </param>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
100 <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" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
101 <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" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
102 <param label="--p-label1: TEXT Label for `distance-matrix` in the output visualization. [default: \'Metadata\']" name="plabel1" optional="False" type="text" value="\'Metadata\'" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
103 <param label="--p-label2: TEXT Label for `metadata-distance-matrix` in the output visualization. [default: \'Distance Matrix\']" name="plabel2" optional="False" type="text" value="\'Distance Matrix\'" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
104 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
105
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
106 </inputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
107
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
108 <outputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
109 <repeat name="input_files_ometadatadistancematrix" optional="False" title="--o-metadata-distance-matrix">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
110 <param format="tabular,qza,no_unzip.zip" label="--o-metadata-distance-matrix: ARTIFACT DistanceMatrix The Distance Matrix produced from the metadata column and used in the mantel test [required]" name="additional_input" optional="False" type="data" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
111 </repeat>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
112 <data format="html" label="${tool.name} on ${on_string}: mantelscattervisualization.html" name="omantelscattervisualization" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
113
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
114 </outputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
115
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
116 <help><![CDATA[
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
117 Beta diversity correlation
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
118 ###############################################################
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
119
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
120 Create a distance matrix from a numeric metadata column and apply a two-
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
121 sided Mantel test to identify correlation between two distance matrices.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
122 Actions used internally: `distance-matrix` from q2-metadata and `mantel`
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
123 from q2-diversity.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
124
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
125 Parameters
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
126 ----------
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
127 metadata : MetadataColumn[Numeric]
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
128 Numeric metadata column from which to compute pairwise Euclidean
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
129 distances
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
130 distance_matrix : DistanceMatrix
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
131 Matrix of distances between pairs of samples.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
132 method : Str % Choices('spearman', 'pearson'), optional
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
133 The correlation test to be applied in the Mantel test.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
134 permutations : Int % Range(0, None), optional
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
135 The number of permutations to be run when computing p-values. Supplying
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
136 a value of zero will disable permutation testing and p-values will not
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
137 be calculated (this results in *much* quicker execution time if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
138 p-values are not desired).
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
139 intersect_ids : Bool, optional
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
140 If supplied, IDs that are not found in both distance matrices will be
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
141 discarded before applying the Mantel test. Default behavior is to error
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
142 on any mismatched IDs.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
143 label1 : Str, optional
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
144 Label for `distance_matrix` in the output visualization.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
145 label2 : Str, optional
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
146 Label for `metadata_distance_matrix` in the output visualization.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
147
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
148 Returns
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
149 -------
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
150 metadata_distance_matrix : DistanceMatrix
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
151 The Distance Matrix produced from the metadata column and used in the
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
152 mantel test
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
153 mantel_scatter_visualization : Visualization
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
154 Scatter plot rendering of the manteltest results
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
155 ]]></help>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
156 <macros>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
157 <import>qiime_citation.xml</import>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
158 </macros>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
159 <expand macro="qiime_citation"/>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
160 </tool>