comparison normalisation.xml @ 9:7bf54edaba24 draft

planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 3d595459e82ea1674c83543f41c18169c159450e-dirty
author oinizan
date Thu, 12 May 2022 10:44:30 +0000
parents 76dcbe930b1d
children ab9e3c8ab443
comparison
equal deleted inserted replaced
8:348387ffe793 9:7bf54edaba24
13 # GNU General Public License for more details. 13 # GNU General Public License for more details.
14 # 14 #
15 # You should have received a copy of the GNU General Public License 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/>. 16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 --> 17 -->
18 <tool id="FROGS_normalisation" name="FROGS Abundance normalisation" version="@TOOL_VERSION@+galaxy2"> 18 <tool id="FROGS_normalisation" name="FROGS Abundance normalisation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
19 <description>Normalise OTUs abundance.</description> 19 <description>Normalise OTUs abundance.</description>
20 20
21 <macros> 21 <macros>
22 <import>macros.xml</import> 22 <import>macros.xml</import>
23 </macros> 23 </macros>
24
25 <expand macro="requirements"/> 24 <expand macro="requirements"/>
26 25
27 <stdio> 26 <stdio>
28 <exit_code range="1:" /> 27 <exit_code range="1:" />
29 <exit_code range=":-1" /> 28 <exit_code range=":-1" />
30 </stdio> 29 </stdio>
31 <command> 30 <command>
32 normalisation.py 31 which normalisation.py;
32
33 normalisation.py
33 --input-biom '$input_biom' 34 --input-biom '$input_biom'
34 --input-fasta '$input_fasta' 35 --input-fasta '$input_fasta'
35 --num-reads $num_reads 36 #if $sampling_method.sampling_by_min == "yes"
37 --sampling-by-min
38 #else
39 --num-reads $sampling_method.num_reads
40 #if $sampling_method.delete_samples
41 --delete-samples
42 #end if
43 #end if
36 --output-biom '$output_biom' 44 --output-biom '$output_biom'
37 --output-fasta '$output_fasta' 45 --output-fasta '$output_fasta'
38 --summary-file '$summary_file' 46 --summary-file '$summary_file'
39 </command> 47 </command>
40 <inputs> 48 <inputs>
41 <param format="fasta" name="input_fasta" type="data" label="Sequence file" help="Sequence file to normalise (format: fasta)." /> 49 <param format="fasta" name="input_fasta" type="data" label="Sequence file" help="Sequence file to normalise (format: fasta)." />
42 <param format="biom1" name="input_biom" type="data" label="Abundance file" help="Abundance file to normalise (format: BIOM)." /> 50 <param format="biom1" name="input_biom" type="data" label="Abundance file" help="Abundance file to normalise (format: BIOM)." />
43 <param name="num_reads" type="integer" optional="false" min="1" value="" label="Number of reads" help="The final number of reads per sample." /> 51 <conditional name="sampling_method">
52 <param name="sampling_by_min" type="select" label="Sampling method" help='Sampling by the number of sequences of the smallest sample, or select a number manually' display='radio'>
53 <option value="yes" selected="true">Sampling by the number of sequences of the smallest sample</option>
54 <option value="no">Select a number of reads</option>
55 </param>
56 <when value="no">
57 <param name="num_reads" type="integer" optional="true" min="1" value="" label="Number of reads" help="The final number of reads per sample." />
58 <param name="delete_samples" type="boolean" label="Remove samples that have an initial number of reads below the number of reads to sample ?" />
59 </when>
60 </conditional>
44 </inputs> 61 </inputs>
45 <outputs> 62 <outputs>
46 <data format="fasta" name="output_fasta" label="${tool.name}: normalised_sequences.fasta" from_work_dir="normalised.fasta" /> 63 <data format="fasta" name="output_fasta" label="${tool.name}: normalised_sequences.fasta" from_work_dir="normalised.fasta" />
47 <data format="biom1" name="output_biom" label="${tool.name}: normalised_abundance.biom" from_work_dir="normalised.biom" /> 64 <data format="biom1" name="output_biom" label="${tool.name}: normalised_abundance.biom" from_work_dir="normalised.biom" />
48 <data format="html" name="summary_file" label="${tool.name}: report.html" from_work_dir="report.html" /> 65 <data format="html" name="summary_file" label="${tool.name}: report.html" from_work_dir="report.html" />
49 </outputs> 66 </outputs>
50 <tests> 67 <tests>
51 <test> 68 <test>
52 <param name="input_fasta" value="references/08-affiliation_postprocessed.fasta"/> 69 <param name="input_fasta" value="references/08-affiliation_postprocessed.fasta"/>
53 <param name="input_biom" value="references/08-affiliation_postprocessed.biom"/> 70 <param name="input_biom" value="references/08-affiliation_postprocessed.biom"/>
54 <param name="num_reads" value="100"/> 71 <conditional name="sampling_method">
72 <param name="sampling_by_min" value="true"/>
73 </conditional>
55 <output name="summary_file" file="references/09-normalisation.html" compare="sim_size" delta="0" /> 74 <output name="summary_file" file="references/09-normalisation.html" compare="sim_size" delta="0" />
56 <output name="summary_file" file="references/09-normalisation.html" compare="diff" lines_diff="4" /> 75 <output name="summary_file" file="references/09-normalisation.html" compare="diff" lines_diff="4" />
57 <output name="output_fasta" file="references/09-normalisation.fasta" compare="diff" lines_diff="12" /> 76 <output name="output_fasta" file="references/09-normalisation.fasta" compare="diff" lines_diff="12" />
58 </test> 77 </test>
59 </tests> 78 </tests>
81 100
82 **Abundance file**: 101 **Abundance file**:
83 102
84 The abundance of each OTU in each sample (format `BIOM &lt;http://biom-format.org/&gt;`_). 103 The abundance of each OTU in each sample (format `BIOM &lt;http://biom-format.org/&gt;`_).
85 104
105 **Sampling method**:
106
107 Sequence normalisation method :
108
109 - **Sampling by the number of sequences of the smallest sample** : Automatically detects the number of reads of the smallest sample, and selects this number for all other samples.
110 - **Select number of reads** : Manually select a number of reads.
111
112 .. image:: static/images/icon_warning_sml.gif
113
114 If the **remove samples** option is enabled, samples whose total number of sequences is lower than the specified number will be removed inside the abundance table.
115 If the option is disabled, the samples will be kept in the analysis but with a number of sequences lower than the specified number (the total number of the sample).
116
86 .. class:: h3 117 .. class:: h3
87 118
88 Outputs 119 Outputs
89 120
90 **Sequence file** (normalised_seed.fasta): 121 **Sequence file** (normalised_seed.fasta):
91 122
92 The normalised sequences file (format `FASTA &lt;https://en.wikipedia.org/wiki/FASTA_format&gt;`_). 123 The normalised sequences file (format `FASTA &lt;https://en.wikipedia.org/wiki/FASTA_format&gt;`_).
93 124
94 **Abundance file** (normalised_abundance.biom): 125 **Abundance file** (normalised_abundance.biom):
95 126
96 The normalised abundance file (format `BIOM &lt;http://biom-format.org/&gt;`_). 127 The normalised abundance file. If option **remove samples** has been chosen, then the abundance table will no longer contain information about the removed samples. (format `BIOM &lt;http://biom-format.org/&gt;`_).
97 128
98 **Summary file** (report.html): 129 **Report file** (report.html):
99 130
100 Information about discarded data (format `HTML &lt;https://en.wikipedia.org/wiki/HTML&gt;`_). 131 Information about discarded data (format `HTML &lt;https://en.wikipedia.org/wiki/HTML&gt;`_).
101 132
102 133
103 .. class:: infomark page-header h2 134 .. class:: infomark page-header h2
104 135
105 Advices
106
107 The number specified in "Number of reads" must be smaller than each total number of sequences by sample.
108
109 136
110 @HELP_CONTACT@ 137 @HELP_CONTACT@
111 138
112 </help> 139 </help>
113 140 <expand macro="citations" />
114 <citations>
115 <expand macro="citations" />
116 </citations>
117
118 </tool> 141 </tool>