comparison qiime2/qiime_longitudinal_anova.xml @ 14:a0a8d77a991c draft

Uploaded
author florianbegusch
date Thu, 03 Sep 2020 09:51:29 +0000
parents f190567fe3f6
children
comparison
equal deleted inserted replaced
13:887cd4ad8e16 14:a0a8d77a991c
1 <?xml version="1.0" ?> 1 <?xml version="1.0" ?>
2 <tool id="qiime_longitudinal_anova" name="qiime longitudinal anova" version="2019.7"> 2 <tool id="qiime_longitudinal_anova" name="qiime longitudinal anova"
3 <description> - ANOVA test</description> 3 version="2020.8">
4 <requirements> 4 <description>ANOVA test</description>
5 <requirement type="package" version="2019.7">qiime2</requirement> 5 <requirements>
6 </requirements> 6 <requirement type="package" version="2020.8">qiime2</requirement>
7 <command><![CDATA[ 7 </requirements>
8 <command><![CDATA[
8 qiime longitudinal anova 9 qiime longitudinal anova
10 # if $input_files_mmetadatafile:
11 # def list_dict_to_string(list_dict):
12 # set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
13 # for d in list_dict[1:]:
14 # set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
15 # end for
16 # return $file_list
17 # end def
18 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
19 # end if
9 20
10 21 #if $pformula:
11 22 --p-formula
12
13 #if 'X' in str($pformula):
14 #set $pformula_temp = $pformula.replace('X', "~")
15 #set $pformula = $pformula_temp
16 #end if 23 #end if
17 24
18 --p-formula="$pformula"
19
20
21
22 #if str($psstype) != 'None': 25 #if str($psstype) != 'None':
23 --p-sstype=$psstype 26 --p-sstype=$psstype
24 #end if 27 #end if
25 28
29 --o-visualization=ovisualization
26 30
27 #if $input_files_mmetadatafile: 31 #if str($examples) != 'None':
28 #def list_dict_to_string(list_dict): 32 --examples=$examples
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 33 #end if
37 34
35 ;
36 cp ohierarchy.qza $ohierarchy
38 37
39 --o-visualization=ovisualization
40 ; 38 ;
41 qiime tools export --input-path ovisualization.qzv --output-path out && mkdir -p '$ovisualization.files_path' 39 qiime tools export ovisualization.qzv --output-path out
40 && mkdir -p '$ovisualization.files_path'
42 && cp -r out/* '$ovisualization.files_path' 41 && cp -r out/* '$ovisualization.files_path'
43 && mv '$ovisualization.files_path/index.html' '$ovisualization'; 42 && mv '$ovisualization.files_path/index.html' '$ovisualization'
44 ]]></command>
45 <inputs>
46 <param label="--p-formula: TEXT R-style formula specifying the model. All terms must be present in the sample metadata or metadata-transformable artifacts and can be continuous or categorical metadata columns. Formulae will be in the format 'a ~ b + c', where 'a' is the metric (dependent variable) and 'b' and 'c' are independent covariates. Use '+' to add a variable; '+ a:b' to add an interaction between variables a and b; '*' to include a variable and all interactions; and '-' to subtract a particular term (e.g., an interaction term). See https://patsy.readthedocs.io/en/latest/formulas.html for full documentation of valid formula operators. Always enclose formulae in quotes to avoid unpleasant surprises. [required]" name="pformula" optional="False" type="text"/>
47 <param label="--p-sstype: " name="psstype" optional="True" type="select">
48 <option selected="True" value="None">Selection is Optional</option>
49 <option value="I">I</option>
50 <option value="II">II</option>
51 <option value="III">III</option>
52 </param>
53 43
54 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file"> 44 ]]></command>
55 <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" /> 45 <inputs>
56 </repeat> 46 <repeat name="input_files_mmetadatafile" optional="False" title="--m-metadata-file">
47 <param format="tabular,qza,no_unzip.zip" label="--m-metadata-file: METADATA... (multiple Sample metadata containing formula terms. arguments will be merged) [required]" name="additional_input" optional="False" type="data" />
48 </repeat>
49 <param label="--p-formula: --p-formula: TEXT R-style formula specifying the model. All terms must be present in the sample metadata or metadata-transformable artifacts and can be continuous or categorical metadata columns. Formulae will be in the format \'a ~ b + c\', where \'a\' is the metric (dependent variable) and \'b\' and \'c\' are independent covariates. Use \'+\' to add a variable; \'+ a:b\' to add an interaction between variables a and b; \'*\' to include a variable and all interactions; and \'-\' to subtract a particular term (e.g., an interaction term). See https://patsy.readthedocs.io/en/latest/formulas.html for full documentation of valid formula operators. Always enclose formulae in quotes to avoid unpleasant surprises. [required]" name="pformula" selected="False" type="boolean" />
50 <param label="--p-sstype: " name="psstype" optional="True" type="select">
51 <option selected="True" value="None">Selection is Optional</option>
52 <option value="I">I</option>
53 <option value="II">II</option>
54 <option value="III">III</option>
55 </param>
56 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" />
57
58 </inputs>
57 59
58 </inputs> 60 <outputs>
59 <outputs> 61 <data format="html" label="${tool.name} on ${on_string}: visualization.html" name="ovisualization" />
60 <data format="html" label="${tool.name} on ${on_string}: visualization.qzv" name="ovisualization"/> 62
61 </outputs> 63 </outputs>
62 <help><![CDATA[ 64
65 <help><![CDATA[
63 ANOVA test 66 ANOVA test
64 ########## 67 ###############################################################
65 68
66 Perform an ANOVA test on any factors present in a metadata file and/or 69 Perform an ANOVA test on any factors present in a metadata file and/or
67 metadata-transformable artifacts. This is followed by pairwise t-tests to 70 metadata-transformable artifacts. This is followed by pairwise t-tests to
68 examine pairwise differences between categorical sample groups. 71 examine pairwise differences between categorical sample groups.
69 72
87 Type of sum of squares calculation to perform (I, II, or III). 90 Type of sum of squares calculation to perform (I, II, or III).
88 91
89 Returns 92 Returns
90 ------- 93 -------
91 visualization : Visualization 94 visualization : Visualization
92 ]]></help> 95 ]]></help>
93 <macros> 96 <macros>
94 <import>qiime_citation.xml</import> 97 <import>qiime_citation.xml</import>
95 </macros> 98 </macros>
96 <expand macro="qiime_citation"/> 99 <expand macro="qiime_citation"/>
97 </tool> 100 </tool>