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