annotate MT_for_MQ.xml @ 0:16608175f23b draft

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