0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_diversity_beta-rarefaction" name="qiime diversity beta-rarefaction" version="2019.4">
|
|
3 <description> - Beta diversity rarefaction</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime diversity beta-rarefaction
|
|
9
|
|
10 --i-table=$itable
|
|
11 --p-metric=$pmetric
|
|
12 --p-clustering-method=$pclusteringmethod
|
|
13 --p-sampling-depth="$psamplingdepth"
|
|
14
|
|
15 #if str($iphylogeny) != 'None':
|
|
16 --i-phylogeny=$iphylogeny
|
|
17 #end if
|
|
18
|
|
19 #if $piterations:
|
|
20 --p-iterations=$piterations
|
|
21 #end if
|
|
22
|
|
23 #if str($pcorrelationmethod) != 'None':
|
|
24 --p-correlation-method=$pcorrelationmethod
|
|
25 #end if
|
|
26
|
|
27 #if str($pcolorscheme) != 'None':
|
|
28 --p-color-scheme=$pcolorscheme
|
|
29 #end if
|
|
30
|
2
|
31 #if $input_files_mmetadatafile:
|
0
|
32 #def list_dict_to_string(list_dict):
|
|
33 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
34 #for d in list_dict[1:]:
|
4
|
35 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
0
|
36 #end for
|
|
37 #return $file_list
|
|
38 #end def
|
|
39 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
2
|
40 #end if
|
0
|
41
|
|
42 --o-visualization=ovisualization
|
|
43 ;
|
|
44 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
45 && cp -r out/* '$ovisualization.files_path'
|
|
46 && mv '$ovisualization.files_path/index.html' '$ovisualization';
|
|
47 ]]></command>
|
|
48 <inputs>
|
|
49 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table upon which to perform beta diversity rarefaction analyses. [required]" name="itable" optional="False" type="data"/>
|
|
50 <param label="--p-metric: " name="pmetric" optional="False" type="select">
|
|
51 <option value="kulsinski">kulsinski</option>
|
|
52 <option value="euclidean">euclidean</option>
|
|
53 <option value="wminkowski">wminkowski</option>
|
|
54 <option value="dice">dice</option>
|
|
55 <option value="correlation">correlation</option>
|
|
56 <option value="hamming">hamming</option>
|
|
57 <option value="canberra">canberra</option>
|
|
58 <option value="canberra_adkins">canberra_adkins</option>
|
|
59 <option value="rogerstanimoto">rogerstanimoto</option>
|
|
60 <option value="sqeuclidean">sqeuclidean</option>
|
|
61 <option value="cosine">cosine</option>
|
|
62 <option value="seuclidean">seuclidean</option>
|
|
63 <option value="weighted_normalized_unifrac">weighted_normalized_unifrac</option>
|
|
64 <option value="sokalmichener">sokalmichener</option>
|
|
65 <option value="unweighted_unifrac">unweighted_unifrac</option>
|
|
66 <option value="cityblock">cityblock</option>
|
|
67 <option value="generalized_unifrac">generalized_unifrac</option>
|
|
68 <option value="weighted_unifrac">weighted_unifrac</option>
|
|
69 <option value="braycurtis">braycurtis</option>
|
|
70 <option value="jaccard">jaccard</option>
|
|
71 <option value="sokalsneath">sokalsneath</option>
|
|
72 <option value="aitchison">aitchison</option>
|
|
73 <option value="matching">matching</option>
|
|
74 <option value="chebyshev">chebyshev</option>
|
|
75 <option value="russellrao">russellrao</option>
|
|
76 <option value="yule">yule</option>
|
|
77 <option value="mahalanobis">mahalanobis</option>
|
|
78 </param>
|
|
79 <param label="--p-clustering-method: " name="pclusteringmethod" optional="False" type="select">
|
|
80 <option value="upgma">upgma</option>
|
|
81 <option value="nj">nj</option>
|
|
82 </param>
|
|
83 <param label="--p-sampling-depth: INTEGER Range(1, None) The total frequency that each sample should be rarefied to prior to computing the diversity metric. [required]" name="psamplingdepth" optional="False" min="1" value="" type="integer"/>
|
|
84 <param format="qza,no_unzip.zip" label="--i-phylogeny: ARTIFACT Phylogenetic tree containing tip identifiers that Phylogeny[Rooted] correspond to the feature identifiers in the table. This tree can contain tip ids that are not present in the table, but all feature ids in the table must be present in this tree. [required for phylogenetic metrics] [optional]" name="iphylogeny" optional="True" type="data"/>
|
|
85 <param label="--p-iterations: INTEGER Number of times to rarefy the feature table at a Range(2, None) given sampling depth. [default: 10]" name="piterations" optional="True" type="integer" min="2" value="10"/>
|
|
86 <param label="--p-correlation-method: " name="pcorrelationmethod" optional="True" type="select">
|
|
87 <option selected="True" value="None">Selection is Optional</option>
|
|
88 <option value="spearman">spearman</option>
|
|
89 <option value="pearson">pearson</option>
|
|
90 </param>
|
|
91 <param label="--p-color-scheme: " name="pcolorscheme" optional="True" type="select">
|
|
92 <option selected="True" value="None">Selection is Optional</option>
|
|
93 <option value="BrBG">BrBG</option>
|
|
94 <option value="BrBG_r">BrBG_r</option>
|
|
95 <option value="PRGn">PRGn</option>
|
|
96 <option value="PRGn_r">PRGn_r</option>
|
|
97 <option value="PiYG">PiYG</option>
|
|
98 <option value="PiYG_r">PiYG_r</option>
|
|
99 <option value="PuOr">PuOr</option>
|
|
100 <option value="PuOr_r">PuOr_r</option>
|
|
101 <option value="RdBu">RdBu</option>
|
|
102 <option value="RdBu_r">RdBu_r</option>
|
|
103 <option value="RdGy">RdGy</option>
|
|
104 <option value="RdGy_r">RdGy_r</option>
|
|
105 <option value="RdYlBu">RdYlBu</option>
|
|
106 <option value="RdYlBu_r">RdYlBu_r</option>
|
|
107 <option value="RdYlGn">RdYlGn</option>
|
|
108 <option value="RdYlGn_r">RdYlGn_r</option>
|
|
109 </param>
|
|
110
|
4
|
111 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file [required]">
|
0
|
112 <param label="--m-metadata-file: METADATA... (multiple arguments will be merged) The sample metadata used for the Emperor jackknifed PCoA plot. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
113 </repeat>
|
|
114
|
|
115 </inputs>
|
|
116 <outputs>
|
|
117 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
118 </outputs>
|
|
119 <help><![CDATA[
|
|
120 Beta diversity rarefaction
|
|
121 ##########################
|
|
122
|
|
123 Repeatedly rarefy a feature table to compare beta diversity results within
|
|
124 a given rarefaction depth. For a given beta diversity metric, this
|
|
125 visualizer will provide: an Emperor jackknifed PCoA plot, samples clustered
|
|
126 by UPGMA or neighbor joining with support calculation, and a heatmap
|
|
127 showing the correlation between rarefaction trials of that beta diversity
|
|
128 metric.
|
|
129
|
|
130 Parameters
|
|
131 ----------
|
|
132 table : FeatureTable[Frequency]
|
|
133 Feature table upon which to perform beta diversity rarefaction
|
|
134 analyses.
|
|
135 metric : Str % Choices('generalized_unifrac', 'sokalmichener', 'matching', 'yule', 'weighted_normalized_unifrac', 'dice', 'russellrao', 'rogerstanimoto', 'mahalanobis', 'wminkowski', 'kulsinski', 'aitchison', 'seuclidean', 'correlation', 'sokalsneath', 'hamming', 'jaccard', 'unweighted_unifrac', 'weighted_unifrac', 'cosine', 'canberra', 'euclidean', 'sqeuclidean', 'chebyshev', 'cityblock', 'canberra_adkins', 'braycurtis')
|
|
136 The beta diversity metric to be computed.
|
|
137 clustering_method : Str % Choices('upgma', 'nj')
|
|
138 Samples can be clustered with neighbor joining or UPGMA. An arbitrary
|
|
139 rarefaction trial will be used for the tree, and the remaining trials
|
|
140 are used to calculate the support of the internal nodes of that tree.
|
|
141 metadata : Metadata
|
|
142 The sample metadata used for the Emperor jackknifed PCoA plot.
|
|
143 sampling_depth : Int % Range(1, None)
|
|
144 The total frequency that each sample should be rarefied to prior to
|
|
145 computing the diversity metric.
|
|
146 iterations : Int % Range(2, None), optional
|
|
147 Number of times to rarefy the feature table at a given sampling depth.
|
|
148 phylogeny : Phylogeny[Rooted], optional
|
|
149 Phylogenetic tree containing tip identifiers that correspond to the
|
|
150 feature identifiers in the table. This tree can contain tip ids that
|
|
151 are not present in the table, but all feature ids in the table must be
|
|
152 present in this tree. [required for phylogenetic metrics]
|
|
153 correlation_method : Str % Choices('pearson', 'spearman'), optional
|
|
154 The Mantel correlation test to be applied when computing correlation
|
|
155 between beta diversity distance matrices.
|
|
156 color_scheme : Str % Choices('BrBG', 'BrBG_r', 'PRGn', 'PRGn_r', 'PiYG', 'PiYG_r', 'PuOr', 'PuOr_r', 'RdBu', 'RdBu_r', 'RdGy', 'RdGy_r', 'RdYlBu', 'RdYlBu_r', 'RdYlGn', 'RdYlGn_r'), optional
|
|
157 The matplotlib color scheme to generate the heatmap with.
|
|
158
|
|
159 Returns
|
|
160 -------
|
|
161 visualization : Visualization
|
|
162 ]]></help>
|
|
163 <macros>
|
|
164 <import>qiime_citation.xml</import>
|
|
165 </macros>
|
|
166 <expand macro="qiime_citation"/>
|
|
167 </tool>
|