annotate qiime2/qiime_diversity_beta-correlation.xml @ 3:558645416841 draft

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