0
|
1 <?xml version="1.0" ?>
|
|
2 <tool id="qiime_longitudinal_nmit" name="qiime longitudinal nmit" version="2019.4">
|
|
3 <description> - Nonparametric microbial interdependence test</description>
|
|
4 <requirements>
|
|
5 <requirement type="package" version="2019.4">qiime2</requirement>
|
|
6 </requirements>
|
|
7 <command><![CDATA[
|
|
8 qiime longitudinal nmit
|
|
9
|
|
10 --i-table=$itable
|
4
|
11
|
|
12
|
|
13
|
|
14
|
|
15 #if '__sq__' in str($pindividualidcolumn):
|
|
16 #set $pindividualidcolumn_temp = $pindividualidcolumn.replace('__sq__', "'")
|
|
17 #set $pindividualidcolumn = $pindividualidcolumn_temp
|
|
18 #end if
|
|
19
|
|
20 #if str($pindividualidcolumn):
|
|
21 --p-individual-id-column="$pindividualidcolumn"
|
|
22 #end if
|
|
23
|
|
24
|
|
25
|
0
|
26
|
|
27 #if str($pcorrmethod) != 'None':
|
|
28 --p-corr-method=$pcorrmethod
|
|
29 #end if
|
|
30
|
|
31 #if str($pdistmethod) != 'None':
|
|
32 --p-dist-method=$pdistmethod
|
|
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-distance-matrix=odistancematrix
|
|
49 ;
|
|
50 cp odistancematrix.qza $odistancematrix
|
|
51 ]]></command>
|
|
52 <inputs>
|
|
53 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[RelativeFrequency] Feature table to use for microbial interdependence test. [required]" name="itable" optional="False" type="data"/>
|
|
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-corr-method: " name="pcorrmethod" optional="True" type="select">
|
|
56 <option selected="True" value="None">Selection is Optional</option>
|
|
57 <option value="kendall">kendall</option>
|
|
58 <option value="pearson">pearson</option>
|
|
59 <option value="spearman">spearman</option>
|
|
60 </param>
|
|
61 <param label="--p-dist-method: " name="pdistmethod" optional="True" type="select">
|
|
62 <option selected="True" value="None">Selection is Optional</option>
|
|
63 <option value="fro">fro</option>
|
|
64 <option value="nuc">nuc</option>
|
|
65 </param>
|
|
66
|
4
|
67 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file [required]">
|
0
|
68 <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" />
|
|
69 </repeat>
|
|
70
|
|
71 </inputs>
|
|
72 <outputs>
|
|
73 <data format="qza" label="${tool.name} on ${on_string}: distancematrix.qza" name="odistancematrix"/>
|
|
74 </outputs>
|
|
75 <help><![CDATA[
|
|
76 Nonparametric microbial interdependence test
|
|
77 ############################################
|
|
78
|
|
79 Perform nonparametric microbial interdependence test to determine
|
|
80 longitudinal sample similarity as a function of temporal microbial
|
|
81 composition. For more details and citation, please see
|
|
82 doi.org/10.1002/gepi.22065
|
|
83
|
|
84 Parameters
|
|
85 ----------
|
|
86 table : FeatureTable[RelativeFrequency]
|
|
87 Feature table to use for microbial interdependence test.
|
|
88 metadata : Metadata
|
|
89 Sample metadata file containing individual_id_column.
|
|
90 individual_id_column : Str
|
|
91 Metadata column containing IDs for individual subjects.
|
|
92 corr_method : Str % Choices('kendall', 'pearson', 'spearman'), optional
|
|
93 The temporal correlation test to be applied.
|
|
94 dist_method : Str % Choices('fro', 'nuc'), optional
|
|
95 Temporal distance method, see numpy.linalg.norm for details.
|
|
96
|
|
97 Returns
|
|
98 -------
|
|
99 distance_matrix : DistanceMatrix
|
|
100 The resulting distance matrix.
|
|
101 ]]></help>
|
|
102 <macros>
|
|
103 <import>qiime_citation.xml</import>
|
|
104 </macros>
|
|
105 <expand macro="qiime_citation"/>
|
|
106 </tool>
|