forked from geraldinepascal/FROGS-wrappers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr_import_data.xml
138 lines (105 loc) · 5.38 KB
/
r_import_data.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0"?>
<!--
# Copyright (C) 2017 INRA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<tool name="FROGSSTAT Phyloseq Import Data" id="FROGSSTAT_Phyloseq_Import_Data" version="1.0.0">
<description>from 3 files: biomfile, samplefile, treefile </description>
<requirements>
<requirement type="package" version="2.0.1">frogs</requirement>
</requirements>
<stdio>
<exit_code range="1:" />
<exit_code range=":-1" />
</stdio>
<command>r_import_data.py --biomfile $biomfile
#if $samplefile
--samplefile $samplefile
#end if
--treefile $treefile
--ranks "$ranks"
#if $normalization
--normalization
#end if
--html $html
--rdata $data
</command>
<inputs>
<!-- Files -->
<param format="biom1" name="biomfile" type="data" label="Standard biom file" help="The file contains the OTU informations (format: biom1)." optional="false">
<validator type="empty_field" message="This parameter is required." />
</param>
<param format="tabular" name="samplefile" type="data" label="Sample tsv file" help="The file contains the samples informations (format: tabular)." optional="false">
<validator type="empty_field" message="This parameter is required." />
</param>
<param format="nhx" name="treefile" type="data" label="Tree file" help="The file contains the tree informations (format: Newick - nhx or nwk)." optional="true" />
<!-- Parameters -->
<param name="ranks" type="text" label="Names of taxonomics levels" help="The ordered taxonomic levels stored in BIOM. Each level is separated by one space." value="Kingdom Phylum Class Order Family Genus Species" size="80" optional="false"/>
<param name="normalization" type="boolean" label="Do you want to normalise your data ?" help="To normalise data before analysis." optional="false" />
</inputs>
<outputs>
<data format="rdata" name="data" label="${tool.name}: data.Rdata" from_work_dir="data.Rdata"/>
<data format="html" name="html" label="${tool.name}: summary.html" from_work_dir="summary.html"/>
</outputs>
<tests>
<test>
<param name="biomfile" value="references/chaillou.biom"/>
<param name="samplefile" value="references/sample_metadata.tsv"/>
<param name="treefile" value="references/tree.nwk"/>
<output name="data" value="references/11-phylo_import.Rdata"/>
</test>
</tests>
<help>
.. image:: static/images/FROGS_logo.png
:height: 144
:width: 110
.. class:: infomark page-header h2
What it does
Launch Rmarkdown script to import data from 3 files: biomfile, samplefile, treefile into a `phyloseq <https://joey711.github.io/phyloseq/>`_ object.
.. class:: infomark page-header h2
Inputs/Outputs
.. class:: h3
Input
**OTU biom file**:
The OTU biom file (format `biom1 <http://biom-format.org/documentation/format_versions/biom-1.0.html>`_).
This file is the result of FROGS BIOM to std BIOM.
The example of biom file:
.. image:: static/images/biomfile.png
:height: 30
:width: 733
**Newick file** (tree.nwk):
Newick file (format `nxh <https://en.wikipedia.org/wiki/Newick_format>`_) is the result of FROGS Tree:
.. image:: static/images/nwk_treefile.png
**Sample file**:
The file contains the conditions of experiment with sample ID in the first column:
.. image:: static/images/phyloseq_samplefile.png
:height: 115
:width: 369
.. class:: h3
Output
**Html file** (format `HTML <https://en.wikipedia.org/wiki/HTML>`_): The summary of phyloseq object.
.. image:: static/images/phyloseq_import_data_html.png
**Data file** (format rdata): The informations of data in one phyloseq object.
.. class:: infomark page-header h2
**Contact**
Contacts: frogs@inra.fr
Repository: https://github.com/geraldinepascal/FROGS
Please cite the FROGS Publication: *Escudie F., Auer L., Bernard M., Cauquil L., Vidal K., Maman S., Mariadassou M., Combes S., Hernandez-Raquet G., Pascal G., 2016. FROGS: Find Rapidly OTU with Galaxy Solution. In: ISME-2016 Montreal, CANADA ,* http://bioinfo.genotoul.fr/wp-content/uploads/FROGS_ISME2016_poster.pdf
Depending on the help provided you can cite us in acknowledgements, references or both.
</help>
<citations>
<citation type="doi">10.7287/peerj.preprints.386v1</citation>
</citations>
</tool>