0
|
1 <tool id="mt_for_mq" name="MT_for_MQ" version="1.0">
|
|
2 <description>Tool to prepare outputs from ASaiM for Metaquantome</description>
|
|
3 <requirements>
|
|
4 <requirement type="package" version="1.2.1">r-tidyverse</requirement>
|
1
|
5 <requirement type="package" version="1.0.0">r-dplyr</requirement>
|
0
|
6 <requirement type="package" version="1.3.1">r-readr</requirement>
|
|
7 </requirements>
|
|
8 <command detect_errors="exit_code"><![CDATA[
|
|
9
|
|
10 #if $options.mode == "f" or $options.mode == "ft":
|
|
11 Rscript '$__tool_directory__/MT_for_iMQ.R' '$options.input_files' '$options.mode' $options.ontology $mq_output
|
|
12 #elif $options.mode == "t":
|
|
13 mkdir in_dir
|
|
14 #for $input in $options.input_files:
|
|
15 && cp '$input' 'in_dir/${input.name.rsplit('.',1)[0]}'
|
|
16 #end for
|
|
17 && Rscript '$__tool_directory__/MT_for_iMQ.R' in_dir t NA $mq_output
|
|
18 #end if
|
|
19
|
|
20 ]]>
|
|
21 </command>
|
|
22
|
|
23 <inputs>
|
|
24 <conditional name="options">
|
|
25 <param type="select" display="radio" name="mode" label="Mode">
|
|
26 <option value="f">Functional</option>
|
|
27 <option value="t" selected="true">Taxonomic</option>
|
|
28 <option value="ft">Functional-Taxonomic</option>
|
|
29 </param>
|
|
30 <when value="t">
|
|
31 <param name="ontology" type="hidden" value="NA" />
|
|
32 <param type="data" name="input_files" format="tsv,tabular,txt" label="Files from ASaiM for all samples (named after sample)" multiple="true" />
|
|
33 </when>
|
|
34 <when value="f">
|
|
35 <param type="select" name="ontology" label="GO namespace" multiple="true" optional="false">
|
|
36 <option value="molecular_function">molecular function</option>
|
|
37 <option value="biological_process">biological proces</option>
|
|
38 <option value="cellular_component">cellular component</option>
|
|
39 </param>
|
|
40 <param type="data" name="input_files" format="tsv,tabular,txt" label="File from HIUMAnN2 renormalize function" />
|
|
41 </when>
|
|
42 <when value="ft">
|
|
43 <param type="select" name="ontology" label="GO namespace" multiple="true" optional="false">
|
|
44 <option value="molecular_function">molecular function</option>
|
|
45 <option value="biological_process">biological proces</option>
|
|
46 <option value="cellular_component">cellular component</option>
|
|
47 </param>
|
|
48 <param type="data" name="input_files" format="tsv,tabular,txt" label="File from HIUMAnN2 renormalize function" />
|
|
49 </when>
|
|
50 </conditional>
|
|
51 </inputs>
|
|
52
|
|
53 <outputs>
|
|
54 <data name="mq_output" format="tabular" label="mq_${options.mode}_input.tabular"/>
|
|
55 </outputs>
|
|
56
|
|
57
|
|
58 <tests>
|
|
59 <test>
|
|
60 <param name="input_files" value="T4A.tsv,T4B.tsv,T4C.tsv,T7A.tsv,T7B.tsv,T7C.tsv" ftype="tsv"/>
|
|
61 <param name="mode" value="f"/>
|
|
62 <param name="ontology" value="molecular_function,biological_process"/>
|
|
63 <output name="mq_output" file="mq_input.tabular">
|
|
64 <assert_contents>
|
|
65 <has_text text="namespace"/>
|
|
66 </assert_contents>
|
|
67 </output>
|
|
68 </test>
|
|
69 </tests>
|
|
70
|
|
71
|
|
72
|
|
73 <help><![CDATA[
|
|
74
|
|
75 **MT2MQ**: Metatranscriptomics to Metaquantome
|
|
76
|
|
77 MT2MQ is a tool to prepare metatrascriptomic results for further analysis with MetaQuantome, which currently only supports metaproteomic data.
|
|
78 This tool takes in tabular files with taxonomic or functional results acquired from metatranscriptomic data. If taxonomic, the data should be the genus-level MetaPhlan results. If functional, the data should be the gene families output from HUMAnN2. Each sample and replicate should be contained in a single file, which must be named as the sample is.
|
|
79
|
|
80 **Outputs**:
|
|
81
|
|
82 MT2MQ produces a single tabular output, formatted to be used as input for Metaquantome.
|
|
83
|
|
84 ]]></help>
|
|
85
|
|
86 <citations>
|
|
87 <citation type="bibtex">
|
|
88 @misc{MT_for_MQ,
|
|
89 author={Crane, Marie},
|
|
90 year={2020},
|
|
91 title={ASaiM to MetaQuantome}
|
|
92 }
|
|
93 </citation>
|
|
94 </citations>
|
|
95 </tool> |