comparison metaquantome_expand.xml @ 0:170b5fa2402d draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/metaquantome commit d45eb2747cc58e1120b3935f10ab47c4e0f8f44a
author galaxyp
date Thu, 25 Apr 2019 13:46:17 -0400
parents
children 990b4560ead7
comparison
equal deleted inserted replaced
-1:000000000000 0:170b5fa2402d
1 <tool id="metaquantome_expand" name="metaQuantome: expand" version="@GVERSION@">
2 <description>a set of functional or taxonomy annotations</description>
3 <macros>
4 <import>macros.xml</import>
5 <xml name="FUNC_FILE">
6 <param argument="--func_file" type="data" format="tabular" label="Functional file"
7 help="Tabular file with a peptide sequence column and a functional assignment column with GO terms, EC number, or COG."/>
8 <param argument="--pep_colname_func" type="text" label="Functional file: peptide column name" value="peptide"
9 help="The column name within the function file that corresponds to the peptide sequences">
10 <validator type="empty_field"/>
11 </param>
12 </xml>
13 <xml name="FUNC_COLNAME">
14 <param argument="--func_colname" type="text" label="Functional column name"
15 help="The column name within the function file with the functional terms">
16 <validator type="empty_field"/>
17 </param>
18 </xml>
19 <xml name="TAX_FILE">
20 <param argument="--tax_file" type="data" format="tabular" label="Taxonomy assignments file"/>
21 <param argument="--pep_colname_tax" type="text" label="Taxonomy file: peptide column name" value="peptide"
22 help="The column name within the taxonomy file that corresponds to the peptide sequences">
23 <validator type="empty_field"/>
24 </param>
25 </xml>
26 <xml name="TAX_COLNAME">
27 <param argument="--tax_colname" type="text" label="Taxonomy column name">
28 <help>
29 Name of column in taxonomy annotation file that contains
30 the lowest common ancestor (LCA) annotation. The annotations must
31 be either NCBI taxids (strongly preferred) or taxonomy
32 names.
33 </help>
34 <validator type="empty_field"/>
35 </param>
36 </xml>
37 <xml name="FT_TAR_RANK">
38 <param argument="--ft_tar_rank" type="select" label="rank at which to group taxonomy">
39 <option value="species">species</option>
40 <option value="genus" selected="true">genus</option>
41 <option value="family">family</option>
42 <option value="order">order</option>
43 <option value="class">class</option>
44 <option value="phylum">phylum</option>
45 <option value="kingdom">kingdom</option>
46 </param>
47 </xml>
48 <token name="@FUNC_FILE@">
49 --func_file='$mode_args.func_file'
50 --pep_colname_func='$mode_args.pep_colname_func'
51 </token>
52 <token name="@FUNC_COLNAME@">
53 --func_colname='$mode_args.func_colname'
54 </token>
55 <token name="@ONTOLOGY@">
56 --ontology='$mode_args.ontology_args.ontology'
57 #if $mode_args.ontology_args.ontology == 'go'
58 #if $mode_args.ontology_args.slim_down
59 --slim_down
60 #end if
61 #end if
62 </token>
63 <token name="@TAX_FILE@">
64 --tax_file='$mode_args.tax_file'
65 --pep_colname_tax='$mode_args.pep_colname_tax'
66 </token>
67 <token name="@TAX_COLNAME@">
68 --tax_colname='$mode_args.tax_colname'
69 </token>
70 <token name="@FT_TAR_RANK@">
71 --ft_tar_rank='$mode_args.ft_tar_rank'
72 </token>
73 </macros>
74 <expand macro="requirements" />
75 <command detect_errors="exit_code"><![CDATA[
76 tar -xf '$db_tar' &&
77 metaquantome expand
78 --data_dir ./data
79 --samps '$samps'
80 --mode '$mode_args.mode'
81 --int_file='$int_file'
82 --pep_colname_int='$pep_colname_int'
83 #if $mode_args.mode == 'f'
84 @FUNC_FILE@
85 @FUNC_COLNAME@
86 @ONTOLOGY@
87 #elif $mode_args.mode =='t'
88 @TAX_FILE@
89 @TAX_COLNAME@
90 #elif $mode_args.mode == 'ft'
91 @FUNC_FILE@
92 @FUNC_COLNAME@
93 @ONTOLOGY@
94 @TAX_FILE@
95 @TAX_COLNAME@
96 @FT_TAR_RANK@
97 #end if
98 --outfile='$outfile'
99 ]]></command>
100 <inputs>
101 <param name="db_tar" type="data" format="tar" label="Database Archive File"
102 help="must be created by 'metaQuantome: download'"/>
103 <expand macro="SAMPS"/>
104 <conditional name="mode_args">
105 <param argument="--mode" type="select" label="Mode">
106 <option value="f">Functional analysis</option>
107 <option value="t">Taxonomic analysis</option>
108 <option value="ft">Functional-taxonomic interaction analysis</option>
109 </param>
110 <when value="f">
111 <expand macro="FUNC_FILE"/>
112 <expand macro="ONTOLOGY_ARGS"/>
113 <expand macro="FUNC_COLNAME"/>
114 </when>
115 <when value="t">
116 <expand macro="TAX_FILE"/>
117 <expand macro="TAX_COLNAME"/>
118 </when>
119 <when value="ft">
120 <expand macro="FUNC_FILE"/>
121 <expand macro="FUNC_COLNAME"/>
122 <expand macro="ONTOLOGY_ARGS"/>
123 <expand macro="TAX_FILE"/>
124 <expand macro="TAX_COLNAME"/>
125 <expand macro="FT_TAR_RANK"/>
126 </when>
127 </conditional>
128 <param argument="--int_file" type="data" format="tabular" label="Intensity file"
129 help=""/>
130 <param argument="--pep_colname_int" type="text" value="peptide" label="Intensity file: peptide column name"
131 help="The column name within the intensity file that corresponds to the peptide sequences">
132 <validator type="empty_field"/>
133 </param>
134 </inputs>
135 <outputs>
136 <data format="tabular" name="outfile" label="${tool.name} on ${on_string} expanded"/>
137 </outputs>
138 <tests>
139 <test>
140 <param name="db_tar" value="ec.tar" ftype="tar"/>
141 <param name="samps" value="samples_basic.tab" ftype="tabular"/>
142 <param name="int_file" value="int_ttest.tab" ftype="tabular"/>
143 <param name="pep_colname_int" value="peptide" />
144 <param name="func_file" value="multiple_func.tab" />
145 <param name="pep_colname_func" value="peptide" />
146 <param name="func_colname" value="ec"/>
147 <param name="mode" value="f" />
148 <param name="ontology" value="ec" />
149 <output name="outfile">
150 <assert_contents>
151 <has_text text="1.2.7.10"/>
152 </assert_contents>
153 </output>
154 </test>
155 </tests>
156 <help>
157 <![CDATA[
158 metaQuantome expand
159 ===================
160
161 The *expand* module is the first analysis step in the metaQuantome analysis workflow,
162 and can be run to analyze function, taxonomy, or function and taxonomy together.
163
164 To prepare to run this module, you must create your samples file with
165 "metaQuantome: create samples file" and download the necessary databases with
166 "metaQuantome: database".
167
168 Some example analysis workflows are:
169
170 1. Get the functional, taxonomic, or functional-taxonomic distribution: run expand, filter, and viz.
171 2. Cluster analysis: run expand, filter, and viz. The viz module has heatmaps and PCA plots for cluster analysis.
172 3. Differential expression: run expand, filter, stat, and viz.
173
174
175 The following information is required for all 3 analysis modes
176 (function, taxonomy, and function-taxonomy).
177
178 - experimental design information.
179 - a tab-separated peptide intensity file.
180 - the name of the peptide column in the intensity file.
181
182 Function mode
183 -------------
184
185 In function mode, the following information is required:
186
187 - the ontology being used: Gene Ontology (GO), Clusters of Orthologous Groups (COG), or Enzyme Commission (EC) numbers.
188 - a tab-separated functional annotation file, with a peptide column and a functional annotation column. An entry in the functional annotation column may contain multiple functional annotations separated by commas.
189 - the name of the peptide column in the functional annotation file.
190 - the name of the functional annotation column in the functional annotation file.
191
192 Taxonomy mode
193 -------------
194
195 In taxonomy mode, the following information is required:
196
197 - a tab-separated taxonomy annotation file, with a peptide column and a taxonomy annotation column. The taxonomic annotations should be the lowest common ancestor (LCA) for each peptide, preferably given as NCBI taxonomy IDs.
198 - the name of the peptide column in the taxonomic annotation file.
199 - the name of the taxonomy annotation column in the taxonomy annotation file.
200
201 Function-Taxonomy mode
202 ----------------------
203
204 In the combined mode, all of the above must be provided. In addition, the "target rank" must be provided, which is the desired taxonomic rank at which to summarize the function/taxonomy results.
205
206 Output of the expand module
207 ---------------------------
208
209 The structure of the output file depends on the analysis mode and the experimental design,
210 but the columns generally look like this, with one row for each term:
211
212 ======= ======================= ======================= ====================== ========================= ==========================
213 term id info about term. mean term intensity term intensity number of unique peptides number of sample children
214 (one or more columns) (by sample group) (by sample) (by sample) in each sample
215 ======= ======================= ======================= ====================== ========================= ==========================
216 term1 name, rank, etc. note that this this is the log2 integer. 0 is coded as NA integer. 0 is coded as NA
217 is the log2 of the mean of term intensity
218 intensity in each sample.
219 Missing data is coded
220 as NA.
221 ======= ======================= ======================= ====================== ========================= ==========================
222
223 The next step in the metaQuantome workflow is "filter", which
224 filters out rows that don't meet certain conditions on the intensity,
225 the number of unique peptides annotated with each term, and the
226 number of sample children.
227
228 Questions, Comments, Problems, Kudos
229 ------------------------------------
230
231 Please file any issues at https://github.com/galaxyproteomics/tools-galaxyp/issues.
232 ]]></help>
233 <expand macro="citations" />
234 </tool>