0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_diversity_core-metrics-phylogenetic" name="qiime diversity core-metrics-phylogenetic" version="2019.4">
|
|
3 <description> - Core diversity metrics (phylogenetic and non- phylogenetic)</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime diversity core-metrics-phylogenetic
|
|
9
|
|
10 --i-table=$itable
|
|
11 --i-phylogeny=$iphylogeny
|
|
12 --p-sampling-depth="$psamplingdepth"
|
|
13
|
|
14 #set $pnjobs = '${GALAXY_SLOTS:-4}'
|
|
15 #if str($pnjobs):
|
|
16 --p-n-jobs="$pnjobs"
|
|
17 #end if
|
|
18
|
2
|
19
|
|
20 #if $input_files_mmetadatafile:
|
0
|
21 #def list_dict_to_string(list_dict):
|
|
22 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
23 #for d in list_dict[1:]:
|
|
24 #set $file_list = $file_list + ',' + d['additional_input'].__getattr__('file_name')
|
|
25 #end for
|
|
26 #return $file_list
|
|
27 #end def
|
2
|
28 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
|
29 #end if
|
0
|
30
|
|
31
|
|
32
|
|
33 --o-rarefied-table=orarefiedtable
|
|
34 --o-faith-pd-vector=ofaithpdvector
|
|
35 --o-observed-otus-vector=oobservedotusvector
|
|
36 --o-shannon-vector=oshannonvector
|
|
37 --o-evenness-vector=oevennessvector
|
|
38 --o-unweighted-unifrac-distance-matrix=ounweightedunifracdistancematrix
|
|
39 --o-weighted-unifrac-distance-matrix=oweightedunifracdistancematrix
|
|
40 --o-jaccard-distance-matrix=ojaccarddistancematrix
|
|
41 --o-bray-curtis-distance-matrix=obraycurtisdistancematrix
|
|
42 --o-unweighted-unifrac-pcoa-results=ounweightedunifracpcoaresults
|
|
43 --o-weighted-unifrac-pcoa-results=oweightedunifracpcoaresults
|
|
44 --o-jaccard-pcoa-results=ojaccardpcoaresults
|
|
45 --o-bray-curtis-pcoa-results=obraycurtispcoaresults
|
|
46 --o-unweighted-unifrac-emperor=ounweightedunifracemperor
|
|
47 --o-weighted-unifrac-emperor=oweightedunifracemperor
|
|
48 --o-jaccard-emperor=ojaccardemperor
|
|
49 --o-bray-curtis-emperor=obraycurtisemperor
|
|
50 ;
|
|
51 cp orarefiedtable.qza $orarefiedtable;
|
|
52 cp ofaithpdvector.qza $ofaithpdvector;
|
|
53 cp oobservedotusvector.qza $oobservedotusvector;
|
|
54 cp oshannonvector.qza $oshannonvector;
|
|
55 cp oevennessvector.qza $oevennessvector;
|
|
56 cp ounweightedunifracdistancematrix.qza $ounweightedunifracdistancematrix;
|
|
57 cp oweightedunifracdistancematrix.qza $oweightedunifracdistancematrix;
|
|
58 cp ojaccarddistancematrix.qza $ojaccarddistancematrix;
|
|
59 cp obraycurtisdistancematrix.qza $obraycurtisdistancematrix;
|
|
60 cp ounweightedunifracpcoaresults.qza $ounweightedunifracpcoaresults;
|
|
61 cp oweightedunifracpcoaresults.qza $oweightedunifracpcoaresults;
|
|
62 cp ojaccardpcoaresults.qza $ojaccardpcoaresults;
|
|
63 cp obraycurtispcoaresults.qza $obraycurtispcoaresults;
|
|
64 qiime tools export --input-path ounweightedunifracemperor.qzv --output-path out && mkdir -p '$ounweightedunifracemperor.files_path'
|
|
65 && cp -r out/* '$ounweightedunifracemperor.files_path'
|
|
66 && mv '$ounweightedunifracemperor.files_path/index.html' '$ounweightedunifracemperor';
|
|
67 qiime tools export --input-path oweightedunifracemperor.qzv --output-path out && mkdir -p '$oweightedunifracemperor.files_path'
|
|
68 && cp -r out/* '$oweightedunifracemperor.files_path'
|
|
69 && mv '$oweightedunifracemperor.files_path/index.html' '$oweightedunifracemperor';
|
|
70 qiime tools export --input-path ojaccardemperor.qzv --output-path out && mkdir -p '$ojaccardemperor.files_path'
|
|
71 && cp -r out/* '$ojaccardemperor.files_path'
|
|
72 && mv '$ojaccardemperor.files_path/index.html' '$ojaccardemperor';
|
|
73 qiime tools export --input-path obraycurtisemperor.qzv --output-path out && mkdir -p '$obraycurtisemperor.files_path'
|
|
74 && cp -r out/* '$obraycurtisemperor.files_path'
|
|
75 && mv '$obraycurtisemperor.files_path/index.html' '$obraycurtisemperor';
|
|
76 ]]></command>
|
|
77 <inputs>
|
|
78 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] The feature table containing the samples over which diversity metrics should be computed. [required]" name="itable" optional="False" type="data"/>
|
|
79 <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]" name="iphylogeny" optional="False" type="data"/>
|
|
80 <param label="--p-sampling-depth: INTEGER Range(1, None) The total frequency that each sample should be rarefied to prior to computing diversity metrics. [required]" name="psamplingdepth" optional="False" min="1" value="" type="integer"/>
|
|
81
|
|
82 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file">
|
|
83 <param label="--m-metadata-file: (multiple arguments will be merged) The sample metadata to use in the emperor plots. [required]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
84 </repeat>
|
|
85
|
|
86 </inputs>
|
|
87 <outputs>
|
|
88 <data format="qza" label="${tool.name} on ${on_string}: rarefiedtable.qza" name="orarefiedtable"/>
|
|
89 <data format="qza" label="${tool.name} on ${on_string}: faithpdvector.qza" name="ofaithpdvector"/>
|
|
90 <data format="qza" label="${tool.name} on ${on_string}: observedotusvector.qza" name="oobservedotusvector"/>
|
|
91 <data format="qza" label="${tool.name} on ${on_string}: shannonvector.qza" name="oshannonvector"/>
|
|
92 <data format="qza" label="${tool.name} on ${on_string}: evennessvector.qza" name="oevennessvector"/>
|
|
93 <data format="qza" label="${tool.name} on ${on_string}: unweightedunifracdistancematrix.qza" name="ounweightedunifracdistancematrix"/>
|
|
94 <data format="qza" label="${tool.name} on ${on_string}: weightedunifracdistancematrix.qza" name="oweightedunifracdistancematrix"/>
|
|
95 <data format="qza" label="${tool.name} on ${on_string}: jaccarddistancematrix.qza" name="ojaccarddistancematrix"/>
|
|
96 <data format="qza" label="${tool.name} on ${on_string}: braycurtisdistancematrix.qza" name="obraycurtisdistancematrix"/>
|
|
97 <data format="qza" label="${tool.name} on ${on_string}: unweightedunifracpcoaresults.qza" name="ounweightedunifracpcoaresults"/>
|
|
98 <data format="qza" label="${tool.name} on ${on_string}: weightedunifracpcoaresults.qza" name="oweightedunifracpcoaresults"/>
|
|
99 <data format="qza" label="${tool.name} on ${on_string}: jaccardpcoaresults.qza" name="ojaccardpcoaresults"/>
|
|
100 <data format="qza" label="${tool.name} on ${on_string}: braycurtispcoaresults.qza" name="obraycurtispcoaresults"/>
|
|
101 <data format="html" label="${tool.name} on ${on_string}: unweightedunifracemperor.qzv" name="ounweightedunifracemperor"/>
|
|
102 <data format="html" label="${tool.name} on ${on_string}: weightedunifracemperor.qzv" name="oweightedunifracemperor"/>
|
|
103 <data format="html" label="${tool.name} on ${on_string}: jaccardemperor.qzv" name="ojaccardemperor"/>
|
|
104 <data format="html" label="${tool.name} on ${on_string}: braycurtisemperor.qzv" name="obraycurtisemperor"/>
|
|
105 </outputs>
|
|
106 <help><![CDATA[
|
|
107 Core diversity metrics (phylogenetic and non-phylogenetic)
|
|
108 ##########################################################
|
|
109
|
|
110 Applies a collection of diversity metrics (both phylogenetic and non-
|
|
111 phylogenetic) to a feature table.
|
|
112
|
|
113 Parameters
|
|
114 ----------
|
|
115 table : FeatureTable[Frequency]
|
|
116 The feature table containing the samples over which diversity metrics
|
|
117 should be computed.
|
|
118 phylogeny : Phylogeny[Rooted]
|
|
119 Phylogenetic tree containing tip identifiers that correspond to the
|
|
120 feature identifiers in the table. This tree can contain tip ids that
|
|
121 are not present in the table, but all feature ids in the table must be
|
|
122 present in this tree.
|
|
123 sampling_depth : Int % Range(1, None)
|
|
124 The total frequency that each sample should be rarefied to prior to
|
|
125 computing diversity metrics.
|
|
126 metadata : Metadata
|
|
127 The sample metadata to use in the emperor plots.
|
|
128
|
|
129 Returns
|
|
130 -------
|
|
131 rarefied_table : FeatureTable[Frequency]
|
|
132 The resulting rarefied feature table.
|
|
133 faith_pd_vector : SampleData[AlphaDiversity]
|
|
134 Vector of Faith PD values by sample.
|
|
135 observed_otus_vector : SampleData[AlphaDiversity]
|
|
136 Vector of Observed OTUs values by sample.
|
|
137 shannon_vector : SampleData[AlphaDiversity]
|
|
138 Vector of Shannon diversity values by sample.
|
|
139 evenness_vector : SampleData[AlphaDiversity]
|
|
140 Vector of Pielou's evenness values by sample.
|
|
141 unweighted_unifrac_distance_matrix : DistanceMatrix
|
|
142 Matrix of unweighted UniFrac distances between pairs of samples.
|
|
143 weighted_unifrac_distance_matrix : DistanceMatrix
|
|
144 Matrix of weighted UniFrac distances between pairs of samples.
|
|
145 jaccard_distance_matrix : DistanceMatrix
|
|
146 Matrix of Jaccard distances between pairs of samples.
|
|
147 bray_curtis_distance_matrix : DistanceMatrix
|
|
148 Matrix of Bray-Curtis distances between pairs of samples.
|
|
149 unweighted_unifrac_pcoa_results : PCoAResults
|
|
150 PCoA matrix computed from unweighted UniFrac distances between samples.
|
|
151 weighted_unifrac_pcoa_results : PCoAResults
|
|
152 PCoA matrix computed from weighted UniFrac distances between samples.
|
|
153 jaccard_pcoa_results : PCoAResults
|
|
154 PCoA matrix computed from Jaccard distances between samples.
|
|
155 bray_curtis_pcoa_results : PCoAResults
|
|
156 PCoA matrix computed from Bray-Curtis distances between samples.
|
|
157 unweighted_unifrac_emperor : Visualization
|
|
158 Emperor plot of the PCoA matrix computed from unweighted UniFrac.
|
|
159 weighted_unifrac_emperor : Visualization
|
|
160 Emperor plot of the PCoA matrix computed from weighted UniFrac.
|
|
161 jaccard_emperor : Visualization
|
|
162 Emperor plot of the PCoA matrix computed from Jaccard.
|
|
163 bray_curtis_emperor : Visualization
|
|
164 Emperor plot of the PCoA matrix computed from Bray-Curtis.
|
|
165 ]]></help>
|
|
166 <macros>
|
|
167 <import>qiime_citation.xml</import>
|
|
168 </macros>
|
|
169 <expand macro="qiime_citation"/>
|
|
170 </tool>
|