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