0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_diversity_core-metrics" name="qiime diversity core-metrics" version="2019.4">
|
|
3 <description> - Core diversity metrics (non-phylogenetic)</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime diversity core-metrics
|
|
9
|
|
10 --i-table=$itable
|
|
11 --p-sampling-depth="$psamplingdepth"
|
|
12
|
|
13 #set $pnjobs = '${GALAXY_SLOTS:-4}'
|
|
14 #if str($pnjobs):
|
|
15 --p-n-jobs="$pnjobs"
|
|
16 #end if
|
|
17
|
2
|
18 #if $input_files_mmetadatafile:
|
0
|
19 #def list_dict_to_string(list_dict):
|
|
20 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
21 #for d in list_dict[1:]:
|
|
22 #set $file_list = $file_list + ',' + d['additional_input'].__getattr__('file_name')
|
|
23 #end for
|
|
24 #return $file_list
|
|
25 #end def
|
|
26
|
|
27 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
2
|
28 #end if
|
0
|
29
|
|
30 --o-rarefied-table=orarefiedtable
|
|
31 --o-observed-otus-vector=oobservedotusvector
|
|
32 --o-shannon-vector=oshannonvector
|
|
33 --o-evenness-vector=oevennessvector
|
|
34 --o-jaccard-distance-matrix=ojaccarddistancematrix
|
|
35 --o-bray-curtis-distance-matrix=obraycurtisdistancematrix
|
|
36 --o-jaccard-pcoa-results=ojaccardpcoaresults
|
|
37 --o-bray-curtis-pcoa-results=obraycurtispcoaresults
|
|
38 --o-jaccard-emperor=ojaccardemperor
|
|
39 --o-bray-curtis-emperor=obraycurtisemperor
|
|
40 ;
|
|
41 cp orarefiedtable.qza $orarefiedtable;
|
|
42 cp oobservedotusvector.qza $oobservedotusvector;
|
|
43 cp oshannonvector.qza $oshannonvector;
|
|
44 cp oevennessvector.qza $oevennessvector;
|
|
45 cp ojaccarddistancematrix.qza $ojaccarddistancematrix;
|
|
46 cp obraycurtisdistancematrix.qza $obraycurtisdistancematrix;
|
|
47 cp ojaccardpcoaresults.qza $ojaccardpcoaresults;
|
|
48 cp obraycurtispcoaresults.qza $obraycurtispcoaresults;
|
|
49 qiime tools export --input-path ojaccardemperor.qzv --output-path out && mkdir -p '$ojaccardemperor.files_path'
|
|
50 && cp -r out/* '$ojaccardemperor.files_path'
|
|
51 && mv '$ojaccardemperor.files_path/index.html' '$ojaccardemperor';
|
|
52 qiime tools export --input-path obraycurtisemperor.qzv --output-path out && mkdir -p '$obraycurtisemperor.files_path'
|
|
53 && cp -r out/* '$obraycurtisemperor.files_path'
|
|
54 && mv '$obraycurtisemperor.files_path/index.html' '$obraycurtisemperor';
|
|
55 ]]></command>
|
|
56 <inputs>
|
|
57 <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"/>
|
|
58 <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"/>
|
|
59
|
|
60 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file">
|
|
61 <param label="--m-metadata-file: METADATA... (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" />
|
|
62 </repeat>
|
|
63
|
|
64 </inputs>
|
|
65 <outputs>
|
|
66 <data format="qza" label="${tool.name} on ${on_string}: rarefiedtable.qza" name="orarefiedtable"/>
|
|
67 <data format="qza" label="${tool.name} on ${on_string}: observedotusvector.qza" name="oobservedotusvector"/>
|
|
68 <data format="qza" label="${tool.name} on ${on_string}: shannonvector.qza" name="oshannonvector"/>
|
|
69 <data format="qza" label="${tool.name} on ${on_string}: evennessvector.qza" name="oevennessvector"/>
|
|
70 <data format="qza" label="${tool.name} on ${on_string}: jaccarddistancematrix.qza" name="ojaccarddistancematrix"/>
|
|
71 <data format="qza" label="${tool.name} on ${on_string}: braycurtisdistancematrix.qza" name="obraycurtisdistancematrix"/>
|
|
72 <data format="qza" label="${tool.name} on ${on_string}: jaccardpcoaresults.qza" name="ojaccardpcoaresults"/>
|
|
73 <data format="qza" label="${tool.name} on ${on_string}: braycurtispcoaresults.qza" name="obraycurtispcoaresults"/>
|
|
74 <data format="html" label="${tool.name} on ${on_string}: jaccardemperor.qzv" name="ojaccardemperor"/>
|
|
75 <data format="html" label="${tool.name} on ${on_string}: braycurtisemperor.qzv" name="obraycurtisemperor"/>
|
|
76 </outputs>
|
|
77 <help><![CDATA[
|
|
78 Core diversity metrics (non-phylogenetic)
|
|
79 #########################################
|
|
80
|
|
81 Applies a collection of diversity metrics (non-phylogenetic) to a feature
|
|
82 table.
|
|
83
|
|
84 Parameters
|
|
85 ----------
|
|
86 table : FeatureTable[Frequency]
|
|
87 The feature table containing the samples over which diversity metrics
|
|
88 should be computed.
|
|
89 sampling_depth : Int % Range(1, None)
|
|
90 The total frequency that each sample should be rarefied to prior to
|
|
91 computing diversity metrics.
|
|
92 metadata : Metadata
|
|
93 The sample metadata to use in the emperor plots.
|
|
94
|
|
95 Returns
|
|
96 -------
|
|
97 rarefied_table : FeatureTable[Frequency]
|
|
98 The resulting rarefied feature table.
|
|
99 observed_otus_vector : SampleData[AlphaDiversity]
|
|
100 Vector of Observed OTUs values by sample.
|
|
101 shannon_vector : SampleData[AlphaDiversity]
|
|
102 Vector of Shannon diversity values by sample.
|
|
103 evenness_vector : SampleData[AlphaDiversity]
|
|
104 Vector of Pielou's evenness values by sample.
|
|
105 jaccard_distance_matrix : DistanceMatrix
|
|
106 Matrix of Jaccard distances between pairs of samples.
|
|
107 bray_curtis_distance_matrix : DistanceMatrix
|
|
108 Matrix of Bray-Curtis distances between pairs of samples.
|
|
109 jaccard_pcoa_results : PCoAResults
|
|
110 PCoA matrix computed from Jaccard distances between samples.
|
|
111 bray_curtis_pcoa_results : PCoAResults
|
|
112 PCoA matrix computed from Bray-Curtis distances between samples.
|
|
113 jaccard_emperor : Visualization
|
|
114 Emperor plot of the PCoA matrix computed from Jaccard.
|
|
115 bray_curtis_emperor : Visualization
|
|
116 Emperor plot of the PCoA matrix computed from Bray-Curtis.
|
|
117 ]]></help>
|
|
118 <macros>
|
|
119 <import>qiime_citation.xml</import>
|
|
120 </macros>
|
|
121 <expand macro="qiime_citation"/>
|
|
122 </tool>
|