comparison qiime2/qiime_diversity_core-metrics-phylogenetic.xml @ 0:51b9b6b57732 draft

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