0
|
1 <?xml version="1.0" ?>
|
9
|
2 <tool id="qiime_gneiss_balance-taxonomy" name="qiime gneiss balance-taxonomy" version="2019.7">
|
0
|
3 <description> - Balance Summary</description>
|
|
4 <requirements>
|
9
|
5 <requirement type="package" version="2019.7">qiime2</requirement>
|
0
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime gneiss balance-taxonomy
|
|
9
|
6
|
10
|
|
11 #if str( $id_to_taxonomy_fp.selector ) == 'history'
|
|
12 #set $tax = $id_to_taxonomy_fp.taxonomy_fp
|
|
13 --i-taxonomy '$tax'
|
|
14 #else:
|
|
15 #set $tax = $id_to_taxonomy_fp.taxonomy_fp.fields.path
|
|
16 --i-taxonomy '$tax'
|
|
17 #end if
|
|
18
|
|
19
|
0
|
20 --i-table=$itable
|
|
21 --i-tree=$itree
|
|
22 --p-balance-name="$pbalancename"
|
|
23
|
|
24
|
6
|
25
|
|
26 #if $metadatafile:
|
|
27 --m-metadata-file=$metadatafile
|
0
|
28 #end if
|
|
29
|
|
30
|
6
|
31
|
|
32 #if str($ppseudocount):
|
0
|
33 --p-pseudocount=$ppseudocount
|
|
34 #end if
|
|
35
|
6
|
36 #if str($ptaxalevel):
|
0
|
37 --p-taxa-level=$ptaxalevel
|
|
38 #end if
|
|
39
|
6
|
40 #if str($pnfeatures):
|
0
|
41 --p-n-features=$pnfeatures
|
|
42 #end if
|
|
43
|
|
44 #if str($pthreshold):
|
|
45 --p-threshold="$pthreshold"
|
|
46 #end if
|
|
47 #if str($mmetadatacolumn):
|
|
48 --m-metadata-column="$mmetadatacolumn"
|
|
49 #end if
|
|
50
|
|
51 --o-visualization=ovisualization
|
|
52 ;
|
|
53 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
54 && cp -r out/* '$ovisualization.files_path'
|
|
55 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
56 ]]></command>
|
|
57 <inputs>
|
6
|
58
|
|
59 <conditional name="id_to_taxonomy_fp" optional="True">
|
|
60 <param name="selector" type="select" label="Reference taxonomy to query">
|
|
61 <option value="cached">Public databases</option>
|
|
62 <option value="history">Databases from your history</option>
|
|
63 </param>
|
|
64 <when value="cached">
|
|
65 <param argument="--taxonomy_fp" label="Reference taxonomy" type="select" optional="True">
|
|
66 <options from_data_table="qiime_taxonomy" />
|
|
67 </param>
|
|
68 </when>
|
|
69 <when value="history">
|
|
70 <param argument="--taxonomy_fp" type="data" format="qza,no_unzip.zip" label="Reference databases" optional="True" />
|
|
71 </when>
|
|
72 </conditional>
|
|
73
|
0
|
74 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] A table of abundances. [required]" name="itable" optional="False" type="data"/>
|
|
75 <param format="qza,no_unzip.zip" label="--i-tree: ARTIFACT The tree used to calculate the balances. Hierarchy [required]" name="itree" optional="False" type="data"/>
|
|
76 <param format="qza,no_unzip.zip" label="--i-taxonomy: ARTIFACT FeatureData[Taxonomy] Taxonomy information for the OTUs. [required]" name="itaxonomy" optional="False" type="data"/>
|
|
77 <param label="--p-balance-name: TEXT Name of the balance to summarize. [required]" name="pbalancename" optional="False" type="text"/>
|
|
78 <param label="--p-pseudocount: NUMBER The pseudocount to add to avoid division by zero. [default: 0.5]" name="ppseudocount" optional="True" type="float" value="0.5"/>
|
|
79 <param label="--p-taxa-level: INTEGER Level of taxonomy to summarize. [default: 0]" name="ptaxalevel" optional="True" type="integer" value="0"/>
|
|
80 <param label="--p-n-features: INTEGER The number of features to plot in the proportion plot. [default: 10]" name="pnfeatures" optional="True" type="integer" value="10"/>
|
|
81 <param label="--p-threshold: NUMBER A threshold to designate discrete categories for a numerical metadata column. This will split the numerical column values into two categories, values below the threshold, and values above the threshold. If not specified, this threshold will default to the mean. [optional]" name="pthreshold" optional="True" type="float"/>
|
|
82 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical | Numeric] Metadata column for plotting the balance (optional). [optional]" name="mmetadatacolumn" optional="True" type="text"/>
|
|
83
|
6
|
84 <param label="--m-metadata-file METADATA" name="metadatafile" type="data" format="tabular,qza,no_unzip.zip" optional="True" />
|
0
|
85
|
|
86 </inputs>
|
|
87 <outputs>
|
|
88 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
89 </outputs>
|
|
90 <help><![CDATA[
|
|
91 Balance Summary
|
|
92 ###############
|
|
93
|
|
94 Visualize the distribution of a single balance and summarize its numerator
|
|
95 and denominator components.
|
|
96
|
|
97 Parameters
|
|
98 ----------
|
|
99 table : FeatureTable[Frequency]
|
|
100 A table of abundances.
|
|
101 tree : Hierarchy
|
|
102 The tree used to calculate the balances.
|
|
103 taxonomy : FeatureData[Taxonomy]
|
|
104 Taxonomy information for the OTUs.
|
|
105 balance_name : Str
|
|
106 Name of the balance to summarize.
|
|
107 pseudocount : Float, optional
|
|
108 The pseudocount to add to avoid division by zero.
|
|
109 taxa_level : Int, optional
|
|
110 Level of taxonomy to summarize.
|
|
111 n_features : Int, optional
|
|
112 The number of features to plot in the proportion plot.
|
|
113 threshold : Float, optional
|
|
114 A threshold to designate discrete categories for a numerical metadata
|
|
115 column. This will split the numerical column values into two
|
|
116 categories, values below the threshold, and values above the threshold.
|
|
117 If not specified, this threshold will default to the mean.
|
|
118 metadata : MetadataColumn[Categorical | Numeric], optional
|
|
119 Metadata column for plotting the balance (optional).
|
|
120
|
|
121 Returns
|
|
122 -------
|
|
123 visualization : Visualization
|
|
124 ]]></help>
|
|
125 <macros>
|
|
126 <import>qiime_citation.xml</import>
|
|
127 </macros>
|
|
128 <expand macro="qiime_citation"/>
|
|
129 </tool>
|