annotate qiime2-2020.8/qiime_feature-table_group.xml @ 20:d93d8888f0b0 draft

Uploaded
author florianbegusch
date Fri, 04 Sep 2020 12:44:24 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
1 <?xml version="1.0" ?>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
2 <tool id="qiime_feature-table_group" name="qiime feature-table group"
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
3 version="2020.8">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
4 <description>Group samples or features by a metadata column</description>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
5 <requirements>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
6 <requirement type="package" version="2020.8">qiime2</requirement>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
7 </requirements>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
8 <command><![CDATA[
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
9 qiime feature-table group
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
10
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
11 --i-table=$itable
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
12
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
13 --p-axis=$paxis
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
14 # if $input_files_mmetadatafile:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
15 # def list_dict_to_string(list_dict):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
16 # set $file_list = list_dict[0]['additional_input'].__getattr__('file_name')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
17 # for d in list_dict[1:]:
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
18 # set $file_list = $file_list + ' --m-metadata-file=' + d['additional_input'].__getattr__('file_name')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
19 # end for
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
20 # return $file_list
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
21 # end def
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
22 --m-metadata-file=$list_dict_to_string($input_files_mmetadatafile)
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
23 # end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
24
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
25 #if '__ob__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
26 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__ob__', '[')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
27 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
28 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
29 #if '__cb__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
30 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__cb__', ']')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
31 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
32 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
33 #if 'X' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
34 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('X', '\\')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
35 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
36 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
37 #if '__sq__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
38 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__sq__', "'")
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
39 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
40 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
41 #if '__db__' in str($mmetadatacolumn):
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
42 #set $mmetadatacolumn_temp = $mmetadatacolumn.replace('__db__', '"')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
43 #set $mmetadatacolumn = $mmetadatacolumn_temp
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
44 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
45
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
46 --m-metadata-column=$mmetadatacolumn
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
47
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
48
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
49 --p-mode=$pmode
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
50
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
51 --o-grouped-table=ogroupedtable
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
52
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
53 #if str($examples) != 'None':
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
54 --examples=$examples
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
55 #end if
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
56
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
57 ;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
58 cp ogroupedtable.qza $ogroupedtable
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
59
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
60 ]]></command>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
61 <inputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
62 <param format="qza,no_unzip.zip" label="--i-table: ARTIFACT FeatureTable[Frequency] The table to group samples or features on. [required]" name="itable" optional="False" type="data" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
63 <param label="--p-axis: " name="paxis" optional="False" type="select">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
64 <option value="sample">sample</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
65 <option value="feature">feature</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
66 </param>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
67 <repeat name="input_files_mmetadatafile" optional="True" title="--m-metadata-file">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
68 <param format="tabular,qza,no_unzip.zip" label="--m-metadata-file: METADATA" name="additional_input" optional="True" type="data" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
69 </repeat>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
70 <param label="--m-metadata-column: COLUMN MetadataColumn[Categorical] A column defining the groups. Each unique value will become a new ID for the table on the given `axis`. [required]" name="mmetadatacolumn" optional="False" type="text" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
71 <param label="--p-mode: " name="pmode" optional="False" type="select">
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
72 <option value="sum">sum</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
73 <option value="mean-ceiling">mean-ceiling</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
74 <option value="median-ceiling">median-ceiling</option>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
75 </param>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
76 <param label="--examples: Show usage examples and exit." name="examples" optional="False" type="data" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
77
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
78 </inputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
79
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
80 <outputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
81 <data format="qza" label="${tool.name} on ${on_string}: groupedtable.qza" name="ogroupedtable" />
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
82
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
83 </outputs>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
84
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
85 <help><![CDATA[
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
86 Group samples or features by a metadata column
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
87 ###############################################################
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
88
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
89 Group samples or features in a feature table using metadata to define the
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
90 mapping of IDs to a group.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
91
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
92 Parameters
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
93 ----------
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
94 table : FeatureTable[Frequency]
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
95 The table to group samples or features on.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
96 axis : Str % Choices('sample', 'feature')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
97 Along which axis to group. Each ID in the given axis must exist in
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
98 `metadata`.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
99 metadata : MetadataColumn[Categorical]
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
100 A column defining the groups. Each unique value will become a new ID
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
101 for the table on the given `axis`.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
102 mode : Str % Choices('sum', 'mean-ceiling', 'median-ceiling')
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
103 How to combine samples or features within a group. `sum` will sum the
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
104 frequencies across all samples or features within a group; `mean-
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
105 ceiling` will take the ceiling of the mean of these frequencies;
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
106 `median-ceiling` will take the ceiling of the median of these
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
107 frequencies.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
108
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
109 Returns
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
110 -------
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
111 grouped_table : FeatureTable[Frequency]
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
112 A table that has been grouped along the given `axis`. IDs on that axis
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
113 are replaced by values in the `metadata` column.
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
114 ]]></help>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
115 <macros>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
116 <import>qiime_citation.xml</import>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
117 </macros>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
118 <expand macro="qiime_citation"/>
d93d8888f0b0 Uploaded
florianbegusch
parents:
diff changeset
119 </tool>