0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_longitudinal_first-differences" name="qiime longitudinal first-differences" version="2019.4">
|
|
3 <description> - Compute first differences or difference from baseline between sequential states</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime longitudinal first-differences
|
|
9
|
|
10 --p-state-column="$pstatecolumn"
|
6
|
11 --p-metric="$pmetric"
|
|
12
|
|
13
|
|
14
|
|
15 #if '__pd__' in str($pindividualidcolumn):
|
|
16 #set $pwhere_temp = $pindividualidcolumn.replace('__pd__', "#")
|
|
17 #set $pindividualidcolumn = $pwhere_temp
|
|
18 #end if
|
0
|
19 --p-individual-id-column="$pindividualidcolumn"
|
6
|
20
|
|
21
|
0
|
22
|
|
23 #if str($itable) != 'None':
|
|
24 --i-table=$itable
|
|
25 #end if
|
|
26
|
|
27 #if str($preplicatehandling) != 'None':
|
|
28 --p-replicate-handling=$preplicatehandling
|
|
29 #end if
|
|
30
|
|
31 #if str($pbaseline):
|
|
32 --p-baseline="$pbaseline"
|
|
33 #end if
|
|
34
|
|
35
|
|
36 #if $input_files_mmetadatafile:
|
|
37 #def list_dict_to_string(list_dict):
|
|
38 #set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
|
|
39 #for d in list_dict[1:]:
|
|
40 #set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
|
|
41 #end for
|
|
42 #return $file_list
|
|
43 #end def
|
|
44 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
|
|
45 #end if
|
|
46
|
|
47
|
|
48 --o-first-differences=ofirstdifferences
|
|
49 ;
|
|
50 cp ofirstdifferences.qza $ofirstdifferences
|
|
51 ]]></command>
|
|
52 <inputs>
|
|
53 <param label="--p-state-column: TEXT Metadata column containing state (time) variable information. [required]" name="pstatecolumn" optional="False" type="text"/>
|
|
54 <param label="--p-individual-id-column: TEXT Metadata column containing IDs for individual subjects. [required]" name="pindividualidcolumn" optional="False" type="text"/>
|
|
55 <param label="--p-metric: TEXT Numerical metadata or artifact column to test. [required]" name="pmetric" optional="False" type="text"/>
|
|
56 <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="True" type="data"/>
|
|
57 <param label="--p-replicate-handling: " name="preplicatehandling" optional="True" type="select">
|
|
58 <option selected="True" value="None">Selection is Optional</option>
|
|
59 <option value="error">error</option>
|
|
60 <option value="random">random</option>
|
|
61 <option value="drop">drop</option>
|
|
62 </param>
|
|
63 <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="True" type="float"/>
|
|
64
|
6
|
65 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file [required]">
|
0
|
66 <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" />
|
|
67 </repeat>
|
|
68
|
|
69 </inputs>
|
|
70 <outputs>
|
|
71 <data format="qza" label="${tool.name} on ${on_string}: firstdifferences.qza" name="ofirstdifferences"/>
|
|
72 </outputs>
|
|
73 <help><![CDATA[
|
|
74 Compute first differences or difference from baseline between sequential states
|
|
75 ###############################################################################
|
|
76
|
|
77 Calculates first differences in "metric" between sequential states for
|
|
78 samples collected from individual subjects sampled repeatedly at two or
|
|
79 more states. First differences can be performed on a metadata column
|
|
80 (including artifacts that can be input as metadata) or a feature in a
|
|
81 feature table. Outputs a data series of first differences for each
|
|
82 individual subject at each sequential pair of states, labeled by the
|
|
83 SampleID of the second state (e.g., paired differences between time 0 and
|
|
84 time 1 would be labeled by the SampleIDs at time 1). This file can be used
|
|
85 as input to linear mixed effects models or other longitudinal or diversity
|
|
86 methods to compare changes in first differences across time or among groups
|
|
87 of subjects. Also supports differences from baseline (or other static
|
|
88 comparison state) by setting the "baseline" parameter.
|
|
89
|
|
90 Parameters
|
|
91 ----------
|
|
92 metadata : Metadata
|
|
93 Sample metadata file containing individual_id_column.
|
|
94 state_column : Str
|
|
95 Metadata column containing state (time) variable information.
|
|
96 individual_id_column : Str
|
|
97 Metadata column containing IDs for individual subjects.
|
|
98 metric : Str
|
|
99 Numerical metadata or artifact column to test.
|
|
100 replicate_handling : Str % Choices('error', 'random', 'drop'), optional
|
|
101 Choose how replicate samples are handled. If replicates are detected,
|
|
102 "error" causes method to fail; "drop" will discard all replicated
|
|
103 samples; "random" chooses one representative at random from among
|
|
104 replicates.
|
|
105 baseline : Float, optional
|
|
106 A value listed in the state_column metadata column against which all
|
|
107 other states should be compared. Toggles calculation of static
|
|
108 differences instead of first differences (which are calculated if no
|
|
109 value is given for baseline). If a "baseline" value is provided, sample
|
|
110 differences at each state are compared against the baseline state,
|
|
111 instead of the previous state. Must be a value listed in the
|
|
112 state_column.
|
|
113 table : FeatureTable[RelativeFrequency], optional
|
|
114 Feature table to optionally use for computing first differences.
|
|
115
|
|
116 Returns
|
|
117 -------
|
|
118 first_differences : SampleData[FirstDifferences]
|
|
119 Series of first differences.
|
|
120 ]]></help>
|
|
121 <macros>
|
|
122 <import>qiime_citation.xml</import>
|
|
123 </macros>
|
|
124 <expand macro="qiime_citation"/>
|
|
125 </tool>
|