annotate qiime2/qiime_longitudinal_first-differences.xml @ 14:a0a8d77a991c draft

Uploaded
author florianbegusch
date Thu, 03 Sep 2020 09:51:29 +0000
parents f190567fe3f6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
2 <tool id="qiime_longitudinal_first-differences" name="qiime longitudinal first-differences"
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
3 version="2020.8">
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
4 <description>Compute first differences or difference from baseline between sequential states</description>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
5 <requirements>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
6 <requirement type="package" version="2020.8">qiime2</requirement>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
7 </requirements>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
8 <command><![CDATA[
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
9 qiime longitudinal first-differences
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
10
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
11 #if str($itable) != 'None':
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
12 --i-table=$itable
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
13 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
14 # if $input_files_mmetadatafile:
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
15 # def list_dict_to_string(list_dict):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
16 # set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
17 # for d in list_dict[1:]:
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
18 # set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
19 # end for
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
20 # return $file_list
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
21 # end def
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
22 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
23 # end if
6
florianbegusch
parents: 4
diff changeset
24
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
25 #if '__ob__' in str($pstatecolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
26 #set $pstatecolumn_temp = $pstatecolumn.replace('__ob__', '[')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
27 #set $pstatecolumn = $pstatecolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
28 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
29 #if '__cb__' in str($pstatecolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
30 #set $pstatecolumn_temp = $pstatecolumn.replace('__cb__', ']')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
31 #set $pstatecolumn = $pstatecolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
32 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
33 #if 'X' in str($pstatecolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
34 #set $pstatecolumn_temp = $pstatecolumn.replace('X', '\\')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
35 #set $pstatecolumn = $pstatecolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
36 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
37 #if '__sq__' in str($pstatecolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
38 #set $pstatecolumn_temp = $pstatecolumn.replace('__sq__', "'")
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
39 #set $pstatecolumn = $pstatecolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
40 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
41 #if '__db__' in str($pstatecolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
42 #set $pstatecolumn_temp = $pstatecolumn.replace('__db__', '"')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
43 #set $pstatecolumn = $pstatecolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
44 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
45
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
46 --p-state-column=$pstatecolumn
6
florianbegusch
parents: 4
diff changeset
47
florianbegusch
parents: 4
diff changeset
48
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
49 #if '__ob__' in str($pindividualidcolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
50 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('__ob__', '[')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
51 #set $pindividualidcolumn = $pindividualidcolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
52 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
53 #if '__cb__' in str($pindividualidcolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
54 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('__cb__', ']')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
55 #set $pindividualidcolumn = $pindividualidcolumn_temp
6
florianbegusch
parents: 4
diff changeset
56 #end if
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
57 #if 'X' in str($pindividualidcolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
58 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('X', '\\')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
59 #set $pindividualidcolumn = $pindividualidcolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
60 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
61 #if '__sq__' in str($pindividualidcolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
62 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('__sq__', "'")
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
63 #set $pindividualidcolumn = $pindividualidcolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
64 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
65 #if '__db__' in str($pindividualidcolumn):
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
66 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('__db__', '"')
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
67 #set $pindividualidcolumn = $pindividualidcolumn_temp
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
68 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
69
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
70 --p-individual-id-column=$pindividualidcolumn
6
florianbegusch
parents: 4
diff changeset
71
florianbegusch
parents: 4
diff changeset
72
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
73 --p-metric=$pmetric
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
74
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
75 #if str($preplicatehandling) != 'None':
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
76 --p-replicate-handling=$preplicatehandling
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
77 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
78
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
79 #if str($pbaseline):
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
80 --p-baseline=$pbaseline
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
81 #end if
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
82 --o-first-differences=ofirstdifferences
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
83
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
84 #if str($examples) != 'None':
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
85 --examples=$examples
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
86 #end if
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
87
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
88 ;
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
89 cp ofirstdifferences.qza $ofirstdifferences
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
90
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
91 ]]></command>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
92 <inputs>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
93 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[RelativeFrequency] Feature table to optionally use for computing first differences. [optional]" name="itable" optional="False" type="data" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
94 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file">
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
95 <param format="tabular,qza,no_unzip.zip" label="--m-metadata-file: METADATA... (multiple Sample metadata file containing arguments will be individual-id-column. merged) [required]" name="additional_input" optional="False" type="data" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
96 </repeat>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
97 <param label="--p-state-column: TEXT Metadata column containing state (time) variable information. [required]" name="pstatecolumn" optional="False" type="text" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
98 <param label="--p-individual-id-column: TEXT Metadata column containing IDs for individual subjects. [required]" name="pindividualidcolumn" optional="False" type="text" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
99 <param label="--p-metric: TEXT Numerical metadata or artifact column to test. [required]" name="pmetric" optional="False" type="text" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
100 <param label="--p-replicate-handling: " name="preplicatehandling" optional="True" type="select">
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
101 <option selected="True" value="None">Selection is Optional</option>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
102 <option value="error">error</option>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
103 <option value="random">random</option>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
104 <option value="drop">drop</option>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
105 </param>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
106 <param label="--p-baseline: NUMBER A value listed in the state-column metadata column against which all other states should be compared. Toggles calculation of static differences instead of first differences (which are calculated if no value is given for baseline). If a \'baseline\' value is provided, sample differences at each state are compared against the baseline state, instead of the previous state. Must be a value listed in the state-column. [optional]" name="pbaseline" optional="False" type="text" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
107 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
108
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
109 </inputs>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
110
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
111 <outputs>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
112 <data format="qza" label="${tool.name} on ${on_string}: firstdifferences.qza" name="ofirstdifferences" />
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
113
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
114 </outputs>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
115
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
116 <help><![CDATA[
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
117 Compute first differences or difference from baseline between sequential states
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
118 ###############################################################
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
119
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
120
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
121 Calculates first differences in "metric" between sequential states for
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
122 samples collected from individual subjects sampled repeatedly at two or
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
123 more states. First differences can be performed on a metadata column
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
124 (including artifacts that can be input as metadata) or a feature in a
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
125 feature table. Outputs a data series of first differences for each
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
126 individual subject at each sequential pair of states, labeled by the
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
127 SampleID of the second state (e.g., paired differences between time 0 and
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
128 time 1 would be labeled by the SampleIDs at time 1). This file can be used
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
129 as input to linear mixed effects models or other longitudinal or diversity
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
130 methods to compare changes in first differences across time or among groups
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
131 of subjects. Also supports differences from baseline (or other static
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
132 comparison state) by setting the "baseline" parameter.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
133
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
134 Parameters
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
135 ----------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
136 metadata : Metadata
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
137 Sample metadata file containing individual_id_column.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
138 state_column : Str
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
139 Metadata column containing state (time) variable information.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
140 individual_id_column : Str
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
141 Metadata column containing IDs for individual subjects.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
142 metric : Str
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
143 Numerical metadata or artifact column to test.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
144 replicate_handling : Str % Choices('error', 'random', 'drop'), optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
145 Choose how replicate samples are handled. If replicates are detected,
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
146 "error" causes method to fail; "drop" will discard all replicated
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
147 samples; "random" chooses one representative at random from among
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
148 replicates.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
149 baseline : Float, optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
150 A value listed in the state_column metadata column against which all
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
151 other states should be compared. Toggles calculation of static
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
152 differences instead of first differences (which are calculated if no
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
153 value is given for baseline). If a "baseline" value is provided, sample
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
154 differences at each state are compared against the baseline state,
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
155 instead of the previous state. Must be a value listed in the
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
156 state_column.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
157 table : FeatureTable[RelativeFrequency], optional
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
158 Feature table to optionally use for computing first differences.
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
159
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
160 Returns
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
161 -------
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
162 first_differences : SampleData[FirstDifferences]
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
163 Series of first differences.
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
164 ]]></help>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
165 <macros>
0
370e0b6e9826 Uploaded
florianbegusch
parents:
diff changeset
166 <import>qiime_citation.xml</import>
14
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
167 </macros>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
168 <expand macro="qiime_citation"/>
a0a8d77a991c Uploaded
florianbegusch
parents: 9
diff changeset
169 </tool>