annotate qiime2-2020.8/qiime_longitudinal_first-distances.xml @ 0:5c352d975ef7 draft

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