0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_diversity_alpha-rarefaction" name="qiime diversity alpha-rarefaction" version="2019.4">
|
|
3 <description> - Alpha rarefaction curves</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime diversity alpha-rarefaction
|
|
9
|
|
10 --i-table=$itable
|
6
|
11
|
|
12
|
|
13 #if str($pmaxdepth):
|
|
14 --p-max-depth="$pmaxdepth"
|
|
15 #end if
|
0
|
16
|
|
17 #if str($iphylogeny) != 'None':
|
|
18 --i-phylogeny=$iphylogeny
|
|
19 #end if
|
|
20
|
|
21 #if str($pmetrics) != 'None':
|
|
22 --p-metrics=$pmetrics
|
|
23 #end if
|
|
24
|
|
25
|
6
|
26 #if str($pmindepth):
|
0
|
27 --p-min-depth=$pmindepth
|
|
28 #end if
|
|
29
|
6
|
30 #if str($psteps):
|
0
|
31 --p-steps=$psteps
|
|
32 #end if
|
|
33
|
6
|
34 #if str($piterations):
|
0
|
35 --p-iterations=$piterations
|
|
36 #end if
|
|
37
|
|
38 #if $input_files_mmetadatafile:
|
|
39 #def list_dict_to_string(list_dict):
|
|
40 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
41 #for d in list_dict[1:]:
|
6
|
42 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
0
|
43 #end for
|
|
44 #return $file_list
|
|
45 #end def
|
|
46 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
|
47 #end if
|
|
48
|
|
49 --o-visualization=ovisualization
|
|
50 ;
|
|
51 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
52 && cp -r out/* '$ovisualization.files_path'
|
|
53 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
54 ]]></command>
|
|
55 <inputs>
|
|
56 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] Feature table to compute rarefaction curves from. [required]" name="itable" optional="False" type="data"/>
|
|
57 <param label="--p-max-depth: INTEGER The maximum rarefaction depth. Must be greater than Range(1, None) min-depth. [required]" name="pmaxdepth" optional="False" min="1" value="" type="integer"/>
|
|
58 <param format="qza,no_unzip.zip" label="--i-phylogeny: ARTIFACT Optional phylogeny for phylogenetic metrics. Phylogeny[Rooted] [optional]" name="iphylogeny" optional="True" type="data"/>
|
|
59 <param label="--p-metrics: " name="pmetrics" optional="True" type="select">
|
|
60 <option selected="True" value="None">Selection is Optional</option>
|
|
61 <option value="dominance">dominance</option>
|
|
62 <option value="ace">ace</option>
|
|
63 <option value="brillouin_d">brillouin_d</option>
|
|
64 <option value="margalef">margalef</option>
|
|
65 <option value="menhinick">menhinick</option>
|
|
66 <option value="mcintosh_d">mcintosh_d</option>
|
|
67 <option value="berger_parker_d">berger_parker_d</option>
|
|
68 <option value="enspie">enspie</option>
|
|
69 <option value="doubles">doubles</option>
|
|
70 <option value="lladser_pe">lladser_pe</option>
|
|
71 <option value="observed_otus">observed_otus</option>
|
|
72 <option value="faith_pd">faith_pd</option>
|
|
73 <option value="simpson_e">simpson_e</option>
|
|
74 <option value="robbins">robbins</option>
|
|
75 <option value="shannon">shannon</option>
|
|
76 <option value="pielou_e">pielou_e</option>
|
|
77 <option value="singles">singles</option>
|
|
78 <option value="michaelis_menten_fit">michaelis_menten_fit</option>
|
|
79 <option value="heip_e">heip_e</option>
|
|
80 <option value="mcintosh_e">mcintosh_e</option>
|
|
81 <option value="fisher_alpha">fisher_alpha</option>
|
|
82 <option value="goods_coverage">goods_coverage</option>
|
|
83 <option value="chao1">chao1</option>
|
|
84 <option value="gini_index">gini_index</option>
|
|
85 <option value="simpson">simpson</option>
|
|
86 </param>
|
|
87 <param label="--p-min-depth: INTEGER The minimum rarefaction depth. Range(1, None) [default: 1]" name="pmindepth" optional="True" type="integer" min="1" value="1"/>
|
|
88 <param label="--p-steps: INTEGER The number of rarefaction depths to include between Range(2, None) min-depth and max-depth. [default: 10]" name="psteps" optional="True" type="integer" min="2" value="10"/>
|
|
89 <param label="--p-iterations: INTEGER The number of rarefied feature tables to compute at Range(1, None) each step. [default: 10]" name="piterations" optional="True" type="integer" min="1" value="10"/>
|
|
90
|
|
91 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file">
|
|
92 <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. [optional]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
93 </repeat>
|
|
94
|
|
95 </inputs>
|
|
96 <outputs>
|
|
97 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
98 </outputs>
|
|
99 <help><![CDATA[
|
|
100 Alpha rarefaction curves
|
|
101 ########################
|
|
102
|
|
103 Generate interactive alpha rarefaction curves by computing rarefactions
|
|
104 between `min_depth` and `max_depth`. The number of intermediate depths to
|
|
105 compute is controlled by the `steps` parameter, with n `iterations` being
|
|
106 computed at each rarefaction depth. If sample metadata is provided, samples
|
|
107 may be grouped based on distinct values within a metadata column.
|
|
108
|
|
109 Parameters
|
|
110 ----------
|
|
111 table : FeatureTable[Frequency]
|
|
112 Feature table to compute rarefaction curves from.
|
|
113 max_depth : Int % Range(1, None)
|
|
114 The maximum rarefaction depth. Must be greater than min_depth.
|
|
115 phylogeny : Phylogeny[Rooted], optional
|
|
116 Optional phylogeny for phylogenetic metrics.
|
|
117 metrics : Set[Str % Choices('pielou_e', 'simpson_e', 'shannon', 'margalef', 'menhinick', 'brillouin_d', 'mcintosh_e', 'doubles', 'robbins', 'simpson', 'enspie', 'fisher_alpha', 'heip_e', 'singles', 'michaelis_menten_fit', 'observed_otus', 'gini_index', 'dominance', 'goods_coverage', 'mcintosh_d', 'faith_pd', 'ace', 'chao1', 'lladser_pe', 'berger_parker_d')], optional
|
|
118 The metrics to be measured. By default computes observed_otus, shannon,
|
|
119 and if phylogeny is provided, faith_pd.
|
|
120 metadata : Metadata, optional
|
|
121 The sample metadata.
|
|
122 min_depth : Int % Range(1, None), optional
|
|
123 The minimum rarefaction depth.
|
|
124 steps : Int % Range(2, None), optional
|
|
125 The number of rarefaction depths to include between min_depth and
|
|
126 max_depth.
|
|
127 iterations : Int % Range(1, None), optional
|
|
128 The number of rarefied feature tables to compute at each step.
|
|
129
|
|
130 Returns
|
|
131 -------
|
|
132 visualization : Visualization
|
|
133 ]]></help>
|
|
134 <macros>
|
|
135 <import>qiime_citation.xml</import>
|
|
136 </macros>
|
|
137 <expand macro="qiime_citation"/>
|
|
138 </tool>
|