comparison affiliations_stat.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) 2015 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 id="FROGS_affiliations_stat" name="FROGS Affiliations stat" version="3.1">
19 <description>Process some metrics on taxonomies.</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>
28 affiliations_stat.py
29 --input-biom $biom
30 --output-file $summary_file
31 --rarefaction-ranks $rarefaction_ranks
32 #if $affiliation.affiliation_type == "FROGS_blast"
33 --taxonomic-ranks Domain Phylum Class Order Family Genus Species
34 --multiple-tag "blast_affiliations"
35 --tax-consensus-tag "blast_taxonomy"
36 --identity-tag "perc_identity"
37 --coverage-tag "perc_query_coverage"
38 #else if $affiliation.affiliation_type == "FROGS_rdp"
39 --taxonomic-ranks Domain Phylum Class Order Family Genus Species
40 --taxonomy-tag "rdp_taxonomy"
41 --bootstrap-tag "rdp_bootstrap"
42 #else
43 --taxonomic-ranks $affiliation.taxonomic_ranks
44 --taxonomy-tag "$affiliation.taxonomy_tag"
45 #if $affiliation.bootstrap_tag
46 --bootstrap-tag "$affiliation.bootstrap_tag"
47 #end if
48 #if $affiliation.identity_tag and $affiliation.coverage_tag
49 --identity-tag "$affiliation.identity_tag"
50 --coverage-tag "$affiliation.coverage_tag"
51 #end if
52 #end if
53 </command>
54 <inputs>
55 <!-- Files -->
56 <param format="biom1" name="biom" type="data" label="Abundance file" help="OTUs abundances and affiliations (format: BIOM)." optional="false" />
57 <!-- Parameters -->
58 <param name="rarefaction_ranks" type="text" label="Rarefaction ranks" help="The ranks that will be evaluated in rarefaction. Each rank is separated by one space." optional="false" value="Class Order Family Genus Species" size="80" />
59 <conditional name="affiliation">
60 <param name="affiliation_type" type="select" label="Affiliation processed" help="Select the type of affiliation processed. If your affiliation has been processed with an external tool: use 'Custom'.">
61 <option value="FROGS_blast" selected="true">FROGS blast</option>
62 <option value="FROGS_rdp">FROGS rdp</option>
63 <option value="custom">Custom</option>
64 </param>
65 <when value="FROGS_blast"></when>
66 <when value="FROGS_rdp"></when>
67 <when value="custom">
68 <param name="taxonomic_ranks" type="text" label="Taxonomic ranks" help="The ordered taxonomic ranks levels stored in BIOM. Each rank is separated by one space." optional="false" value="Domain Phylum Class Order Family Genus Species" size="80" />
69 <param name="taxonomy_tag" type="text" label="Taxonomy tag" help="The metadata title in BIOM for the taxonomy." optional="false" value="taxonomy" size="20" />
70 <param name="bootstrap_tag" type="text" label="Bootstrap tag" help="The metadata title in BIOM for the taxonomy bootstrap." value="" size="20" />
71 <param name="identity_tag" type="text" label="Identity tag" help="The metadata tag used in BIOM file to store the alignment identity." value="" size="20" />
72 <param name="coverage_tag" type="text" label="Coverage tag" help="The metadata tag used in BIOM file to store the alignment OTUs coverage." value="" size="20" />
73 </when>
74 </conditional>
75 </inputs>
76 <outputs>
77 <data format="html" name="summary_file" label="${tool.name}: summary.html" from_work_dir="summary.html"/>
78 </outputs>
79 <tests>
80 <test>
81 <param name="biom" value="references/06-affiliation.biom" />
82 <param name="rarefaction_ranks" value="Family Genus Species" />
83 <conditional name="affiliation">
84 <param name="affiliation_type" value="FROGS_blast" />
85 <param name="taxonomic_ranks" value="Domain Phylum Class Order Family Genus Species" />
86 <param name="taxonomy_tag" value="blast_taxonomy" />
87 <param name="identity_tag" value="perc_identity" />
88 <param name="coverage_tag" value="perc_query_coverage" />
89 <!-- pas de parametre dans le formulaire pour multiple-tag, uniquement une option dans la ligne de commande -->
90 </conditional>
91 <output name="summary_file" file="references/09-affiliationsStat.html" compare="sim_size" delta="0" />
92 <!-- log-file option presente dans la ligne de commande dans le test.sh n'apparait pas du tout ici -->
93 </test>
94 </tests>
95 <help>
96
97 .. image:: static/images/frogs_images/FROGS_logo.png
98 :height: 144
99 :width: 110
100
101
102 .. class:: infomark page-header h2
103
104 What it does
105
106 FROGS Affiliations stat computes several metrics and generates a HTML file describing OTUs based on their taxonomies and the quality of the affiliations.
107
108
109 .. class:: infomark page-header h2
110
111 Input/output
112
113 .. class:: h3
114
115 Input
116
117 **Abundance file**:
118
119 The abundance and affiliation of each OTUs in each sample (format `BIOM &lt;http://biom-format.org/&gt;`_). This file can be produced by FROGS Affiliation OTU.
120
121 The FROGS's tools working on clusters and others metagenomic workflows produce files in BIOM format.
122
123 .. class:: h3
124
125 Output
126
127 **Summary file** (summary.html):
128
129 OTUs taxonomies and affiliations metrics (format `HTML &lt;https://en.wikipedia.org/wiki/HTML&gt;`_):
130
131 *-Taxonomy distribution*: display the distribution of each taxon and the rarefaction for each taxonomic rank and for each sample
132
133 .. image:: static/images/frogs_images/FROGS_affiliation_stat_taxonomies.png
134 :height: 380
135 :width: 650
136
137 .. image:: static/images/frogs_images/FROGS_affiliation_stat_rarefaction.png
138 :height: 380
139 :width: 550
140
141 .. image:: static/images/frogs_images/FROGS_affiliation_stat_sunburst.png
142 :height: 380
143 :width: 430
144
145 -Bootstrap distribution: display for affiliation methods with bootstrap the bootstrap on each taxonomic rank
146
147 .. image:: static/images/frogs_images/FROGS_affiliation_stat_bootstrap.png
148 :height: 380
149 :width: 650
150
151 -Alignment distribution: display for affiliation methods with alignment the distribution of identity/covrage
152
153 .. image:: static/images/frogs_images/FROGS_affiliation_stat_alignment.png
154 :height: 380
155 :width: 650
156
157
158
159 ----
160
161 **Contact**
162
163 Contacts: frogs@inra.fr
164
165 Repository: https://github.com/geraldinepascal/FROGS
166 website: http://frogs.toulouse.inra.fr/
167
168 Please cite the **FROGS article**: *Escudie F., et al. Bioinformatics, 2018. FROGS: Find, Rapidly, OTUs with Galaxy Solution.*
169
170 </help>
171 <citations>
172 <citation type="doi">10.1093/bioinformatics/btx791</citation>
173 </citations>
174
175 </tool>