annotate MT_for_MQ.xml @ 1:08a3a156c13e draft

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