0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_longitudinal_plot-feature-volatility" name="qiime longitudinal plot-feature-volatility" version="2019.4">
|
|
3 <description> - Plot longitudinal feature volatility and importances</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime longitudinal plot-feature-volatility
|
|
9
|
|
10 --i-table=$itable
|
|
11 --i-importances=$iimportances
|
|
12 --p-state-column="$pstatecolumn"
|
|
13
|
4
|
14
|
|
15
|
|
16 #if '__sq__' in str($pindividualidcolumn):
|
|
17 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('__sq__', "'")
|
|
18 #set $pindividualidcolumn = $pindividualidcolumn_temp
|
|
19 #end if
|
|
20
|
0
|
21 #if str($pindividualidcolumn):
|
|
22 --p-individual-id-column="$pindividualidcolumn"
|
|
23 #end if
|
|
24
|
4
|
25
|
|
26
|
|
27
|
0
|
28 #if str($pdefaultgroupcolumn):
|
|
29 --p-default-group-column="$pdefaultgroupcolumn"
|
|
30 #end if
|
|
31
|
|
32 #if str($pyscale) != 'None':
|
|
33 --p-yscale=$pyscale
|
|
34 #end if
|
|
35
|
|
36
|
|
37 #if $input_files_mmetadatafile:
|
|
38 #def list_dict_to_string(list_dict):
|
|
39 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
40 #for d in list_dict[1:]:
|
|
41 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
|
42 #end for
|
|
43 #return $file_list
|
|
44 #end def
|
|
45 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
|
46 #end if
|
|
47
|
|
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[RelativeFrequency] Feature table containing features found in importances. [required]" name="itable" optional="False" type="data"/>
|
|
57 <param format="qza,no_unzip.zip" label="--i-importances: ARTIFACT FeatureData[Importance] Feature importance scores. [required]" name="iimportances" optional="False" type="data"/>
|
|
58 <param label="--p-state-column: TEXT Metadata column containing state (time) variable information. [required]" name="pstatecolumn" optional="False" type="text"/>
|
|
59 <param label="--p-individual-id-column: TEXT Metadata column containing IDs for individual subjects. [optional]" name="pindividualidcolumn" optional="True" type="text"/>
|
|
60 <param label="--p-default-group-column: TEXT The default metadata column on which to separate groups for comparison (all categorical metadata columns will be available in the visualization). [optional]" name="pdefaultgroupcolumn" optional="True" type="text"/>
|
|
61 <param label="--p-yscale: " name="pyscale" optional="True" type="select">
|
|
62 <option selected="True" value="None">Selection is Optional</option>
|
|
63 <option value="linear">linear</option>
|
|
64 <option value="pow">pow</option>
|
|
65 <option value="sqrt">sqrt</option>
|
|
66 <option value="log">log</option>
|
|
67 </param>
|
|
68
|
4
|
69 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file [required]">
|
0
|
70 <param label="--m-metadata-file: Metadata file or artifact viewable as metadata. This option may be supplied multiple times to merge metadata. [optional]" name="additional_input" type="data" format="tabular,qza,no_unzip.zip" />
|
|
71 </repeat>
|
|
72
|
|
73 </inputs>
|
|
74 <outputs>
|
|
75 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/>
|
|
76 </outputs>
|
|
77 <help><![CDATA[
|
|
78 Plot longitudinal feature volatility and importances
|
|
79 ####################################################
|
|
80
|
|
81 Plots an interactive control chart of feature abundances (y-axis) in each
|
|
82 sample across time (or state; x-axis). Feature importance scores and
|
|
83 descriptive statistics for each each feature are plotted in interactive bar
|
|
84 charts below the control chart, facilitating exploration of longitudinal
|
|
85 feature data. This visualization is intended for use with the feature-
|
|
86 volatility pipeline; use that pipeline to access this visualization.
|
|
87
|
|
88 Parameters
|
|
89 ----------
|
|
90 table : FeatureTable[RelativeFrequency]
|
|
91 Feature table containing features found in importances.
|
|
92 importances : FeatureData[Importance]
|
|
93 Feature importance scores.
|
|
94 metadata : Metadata
|
|
95 Sample metadata file containing individual_id_column.
|
|
96 state_column : Str
|
|
97 Metadata column containing state (time) variable information.
|
|
98 individual_id_column : Str, optional
|
|
99 Metadata column containing IDs for individual subjects.
|
|
100 default_group_column : Str, optional
|
|
101 The default metadata column on which to separate groups for comparison
|
|
102 (all categorical metadata columns will be available in the
|
|
103 visualization).
|
|
104 yscale : Str % Choices('linear', 'pow', 'sqrt', 'log'), optional
|
|
105 y-axis scaling strategy to apply.
|
|
106
|
|
107 Returns
|
|
108 -------
|
|
109 visualization : Visualization
|
|
110 ]]></help>
|
|
111 <macros>
|
|
112 <import>qiime_citation.xml</import>
|
|
113 </macros>
|
|
114 <expand macro="qiime_citation"/>
|
|
115 </tool>
|