comparison r_beta_diversity.xml @ 0:59bc96331073 draft default tip

planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/tree/v3.1.0 commit 08296fc88e3e938c482c631bd515b3b7a0499647
author frogs
date Thu, 28 Feb 2019 10:14:49 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:59bc96331073
1 <?xml version="1.0"?>
2 <!--
3 # Copyright (C) 2017 INRA
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 -->
18 <tool name="FROGSSTAT Phyloseq Beta Diversity" id="FROGSSTAT_Phyloseq_Beta_Diversity" version="3.1">
19 <description>distance matrix</description>
20 <requirements>
21 <requirement type="package" version="3.1.0">frogs</requirement>
22 </requirements>
23 <stdio>
24 <exit_code range="1:" />
25 <exit_code range=":-1" />
26 </stdio>
27 <command>r_beta_diversity.py
28 --rdata $data
29 --varExp $varExp
30 #if $methods != "None"
31 #if $other_method != ""
32 --distance-methods $methods,$other_method
33 #else
34 --distance-methods $methods
35 #end if
36 #else
37 #if $other_method != ""
38 --distance-methods $other_method
39 #end if
40 #end if
41 --matrix-outdir BetaMatrix
42 --html $html
43 </command>
44 <inputs>
45 <!-- Files -->
46 <param format="rdata" name="data" type="data" label="Phyloseq object (format rdata)" help="This is the result of FROGS Phyloseq Import Data tool." optional="false">
47 <validator type="empty_field" message="This parameter is required." />
48 </param>
49 <!-- Parameters -->
50 <param name="varExp" type="text" label="Grouping variable" help="Experimental variable used to group samples (Treatment, Host type, etc)." optional="false" value="" size="20">
51 <validator type="empty_field" message="This parameter is required." />
52 </param>
53 <param name="methods" type="select" label="The methods of beta diversity" help="N.B. if the tree is not available in your RData, you cannot choose Unifrac or Weighted Unifrac" multiple="true" display="checkboxes">
54 <option value="unifrac" selected="False">Unifrac</option>
55 <option value="wunifrac" selected="False">Weighted Unifrac</option>
56 <option value="bray" selected="False">Bray-Curtis</option>
57 <option value="cc" selected="False">Jaccard</option>
58 </param>
59 <param type="text" name="other_method" label="Other method" help="The other methods of beta diversity that you want to use (comma separated value). c.f. details below." optional="false" value="" size="40"/>
60 </inputs>
61 <outputs>
62 <data format="html" name="html" label="${tool.name}: beta_diversity" from_work_dir="beta_diversity.html">
63 <discover_datasets pattern="__designation__" ext="tabular" directory="BetaMatrix" visible="true"/>
64 </data>
65 </outputs>
66 <tests>
67 <test>
68 <param name="data" value="references/14-phylo_import.Rdata" />
69 <param name="varExp" value="EnvType" />
70 <param name="methods" value="cc,unifrac" />
71 <!--output name="html" file="references/17-phylo_beta_div.html" compare="sim_size" delta="0" /-->
72 <output name="html">
73 <assert_contents>
74 <has_text_matching expression="html\sxmlns=.*" />
75 <has_text_matching expression="Phyloseq\s+\d+\.\d+\.\d+" />
76 </assert_contents>
77 </output>
78 </test>
79 </tests>
80
81 <help>
82
83 .. image:: static/images/frogs_images/FROGS_logo.png
84 :height: 144
85 :width: 110
86
87 .. class:: infomark page-header h2
88
89 What it does
90
91 Using `phyloseq &lt;https://joey711.github.io/phyloseq/&gt;`_ and customized R function, this tool compute beta distance matrix and display them in a heatmap
92
93
94 .. class:: infomark page-header h2
95
96 Inputs/Outputs
97
98 .. class:: h3
99
100 Input
101
102 **data file** (format RData):
103 One phyloseq object containing OTU abundance table, their taxonomies and optionnaly a phylogenetic tree, and the sample experiment metadata.
104 This file is the result of "FROGS Phyloseq Import Data tool".
105
106 **distance methods** :
107 The list of Phyloseq distanceMethodList is available here `distanceMethodList &lt;https://www.bioconductor.org/packages/devel/bioc/manuals/phyloseq/man/phyloseq.pdf&gt;`_ .
108 You have to copy the exact name as in this list in the parameter window "Other Method".
109 To use several methods, separate them by a space.
110
111 .. class:: h3
112
113 Output
114
115 **html file** (format `HTML &lt;https://en.wikipedia.org/wiki/HTML&gt;`_):
116
117 The review of beta diversity with heatmap plots:
118
119 .. image:: static/images/frogs_images/phyloseq_beta_diversity.png
120 :height: 609
121 :width: 800
122
123
124 **beta diversity matrix** (format tabular):
125 The distance matrix of beta diversity.
126
127 .. image:: static/images/frogs_images/phyloseq_beta_diversity_matrix.png
128
129 .. class:: infomark page-header h2
130
131 **Contact**
132
133 Contacts: frogs@inra.fr
134
135 Repository: https://github.com/geraldinepascal/FROGS
136 website: http://frogs.toulouse.inra.fr/
137
138 Please cite the **FROGS article**: *Escudie F., et al. Bioinformatics, 2018. FROGS: Find, Rapidly, OTUs with Galaxy Solution.*
139
140 </help>
141 <citations>
142 <citation type="doi">10.1093/bioinformatics/btx791</citation>
143 </citations>
144
145 </tool>