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