0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_composition_ancom" name="qiime composition ancom" version="2019.4">
|
|
3 <description> - Apply ANCOM to identify features that differ in abundance.</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime composition ancom
|
|
9
|
|
10 --i-table=$itable
|
|
11
|
2
|
12 #if $input_files_mmetadatafile:
|
0
|
13 #def list_dict_to_string(list_dict):
|
|
14 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
15 #for d in list_dict[1:]:
|
|
16 #set $file_list = $file_list + ',' + d['additional_input'].__getattr__('file_name')
|
|
17 #end for
|
|
18 #return $file_list
|
|
19 #end def
|
2
|
20 #end if
|
0
|
21
|
|
22 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile) --m-metadata-column="$mmetadatacolumn"
|
|
23
|
|
24 #if str($pdifferencefunction) != 'None':
|
|
25 --p-difference-function=$pdifferencefunction
|
|
26 #end if
|
|
27
|
|
28 #if str($ptransformfunction) != 'None':
|
|
29 --p-transform-function=$ptransformfunction
|
|
30 #end if
|
|
31
|
|
32 --o-visualization=ovisualization;
|
|
33
|
|
34 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path'
|
|
35 && cp -r out/* '$ovisualization.files_path'
|
|
36 && mv '$ovisualization.files_path/index.html' '$ovisualization'
|
|
37 ]]></command>
|
|
38 <inputs>
|
|
39 <param format="qza,no_unzip.zip" label="--i-table: FeatureTable[Composition] - The feature table to be used for ANCOM computation. [required]" name="itable" optional="False" type="data"/>
|
|
40 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file">
|
|
41 <param format="tabular" label="--m-metadata-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [required]" name="additional_input" type="data"/>
|
|
42 </repeat>
|
|
43 <param label="--m-metadata-column: MetadataColumn[Categorical] - Column from metadata file or artifact viewable as metadata. The categorical sample metadata column to test for differential abundance across. [required]" name="mmetadatacolumn" optional="False" type="text"/>
|
|
44 <param label="--p-difference-function: " name="pdifferencefunction" optional="True" type="select">
|
|
45 <option selected="True" value="None">Selection is Optional</option>
|
|
46 <option value="mean_difference">mean_difference</option>
|
|
47 <option value="f_statistic">f_statistic</option>
|
|
48 </param>
|
|
49 <param label="--cmd-config: Use config file for command options" name="cmdconfig" optional="True" type="data"/>
|
|
50 <param label="--p-transform-function: " name="ptransformfunction" optional="True" type="select">
|
|
51 <option selected="True" value="None">Selection is Optional</option>
|
|
52 <option value="log">log</option>
|
|
53 <option value="clr">clr</option>
|
|
54 <option value="sqrt">sqrt</option>
|
|
55 </param>
|
|
56 </inputs>
|
|
57 <outputs>
|
|
58 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
59 </outputs>
|
|
60 <help><![CDATA[
|
|
61 Apply ANCOM to identify features that differ in abundance.
|
|
62 ##########################################################
|
|
63
|
|
64 Apply Analysis of Composition of Microbiomes (ANCOM) to identify features
|
|
65 that are differentially abundant across groups.
|
|
66
|
|
67 Parameters
|
|
68 ----------
|
|
69 table : FeatureTable[Composition]
|
|
70 The feature table to be used for ANCOM computation.
|
|
71 metadata : MetadataColumn[Categorical]
|
|
72 The categorical sample metadata column to test for differential
|
|
73 abundance across.
|
|
74 transform_function : Str % Choices('sqrt', 'log', 'clr'), optional
|
|
75 The method applied to transform feature values before generating
|
|
76 volcano plots.
|
|
77 difference_function : Str % Choices('mean_difference', 'f_statistic'), optional
|
|
78 The method applied to visualize fold difference in feature abundances
|
|
79 across groups for volcano plots.
|
|
80
|
|
81 Returns
|
|
82 -------
|
|
83 visualization : Visualization
|
|
84 ]]></help>
|
|
85 <macros>
|
|
86 <import>qiime_citation.xml</import>
|
|
87 </macros>
|
|
88 <expand macro="qiime_citation"/>
|
|
89 </tool>
|