comparison normalisation.xml.bak @ 30:fce825ec2c84 draft default tip

planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 01b92e7e17eb8bc125451bf41684f512cf16d3c5-dirty
author oinizan
date Fri, 02 May 2025 07:44:22 +0000
parents
children
comparison
equal deleted inserted replaced
29:3ed27e75a1e2 30:fce825ec2c84
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_normalisation" name="FROGS Abundance normalisation" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="22.05">
19 <description>Normalise ASV abundance. </description>
20
21 <macros>
22 <import>macros.xml</import>
23 </macros>
24 <expand macro="requirements"/>
25
26 <command detect_errors="exit_code">
27 [<![CDATA[
28 normalisation.py
29 --input-biom '$input_biom'
30 --input-fasta '$input_fasta'
31
32 #if $sampling_method.sampling_by_min == "yes"
33 --sampling-by-min
34 #else
35 --num-reads '$sampling_method.num_reads'
36
37 #if $sampling_method.delete_samples == "true"
38 --delete-samples
39 #end if
40 #end if
41
42 --output-biom '$output_biom'
43 --output-fasta '$output_fasta'
44 --summary-file '$summary_file'
45 ]]>
46 </command>
47 <inputs>
48 <param format="fasta" argument="--input-fasta" type="data" label="Sequence file" help="Sequence file to normalise (format: fasta)." />
49 <param format="biom1" argument="--input-biom" type="data" label="Abundance file" help="Abundance file to normalise (format: BIOM)." />
50 <conditional name="sampling_method">
51 <param argument="--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">
52 <option value="yes" selected="true">Sampling by the number of sequences of the smallest sample</option>
53 <option value="no">Select a number of sequences</option>
54 </param>
55 <when value="yes"/>
56 <when value="no">
57 <param argument="--num-reads" type="integer" optional="true" min="1" value="" label="Number of reads" help="The final number of reads per sample." />
58 <param argument="--delete-samples" type="select" label="Remove samples that have an initial number of reads below the number of reads to sample ?" display="radio">
59 <option value="false">No, subsampling threshold need to at most equal to the smallest sample</option>
60 <option value="true">Yes, subsampling threshold may be greater than the smallest sample</option>
61 </param>
62 </when>
63 </conditional>
64 </inputs>
65 <outputs>
66 <data format="fasta" name="output_fasta" label="${tool.name}: normalised_sequences.fasta" from_work_dir="normalised.fasta" />
67 <data format="biom1" name="output_biom" label="${tool.name}: normalised_abundance.biom" from_work_dir="normalised.biom" />
68 <data format="html" name="summary_file" label="${tool.name}: report.html" from_work_dir="report.html" />
69 </outputs>
70 <tests>
71 <test>
72 <param name="input_fasta" value="references/08-affiliation_postprocessed.fasta"/>
73 <param name="input_biom" value="references/08-affiliation_postprocessed.biom"/>
74 <conditional name="sampling_method">
75 <param name="sampling_by_min" value="no"/>
76 <param name="num_reads" value="100"/>
77 </conditional>
78 <output name="summary_file" file="references/09-normalisation.html" compare="sim_size" delta="0" />
79 <output name="summary_file" file="references/09-normalisation.html" compare="diff" lines_diff="4" />
80 <output name="output_fasta" file="references/09-normalisation.fasta" compare="diff" lines_diff="12" />
81 </test>
82 </tests>
83 <help>
84
85 @HELP_LOGO@
86
87 .. class:: infomark page-header h2
88
89 What it does
90
91 This tool keeps, in each sample, the same number of elements by random sampling.
92
93 .. class:: infomark page-header h2
94
95 Inputs/outputs
96
97 .. class:: h3
98
99 Inputs
100
101 **Sequence file**:
102
103 The sequences (format `FASTA &lt;https://en.wikipedia.org/wiki/FASTA_format&gt;`_).
104
105 **Abundance file**:
106
107 The abundance of each ASV in each sample (format `BIOM &lt;http://biom-format.org/&gt;`_).
108
109 **Sampling method**:
110
111 Sequence normalisation method :
112
113 - **Sampling by the number of sequences of the smallest sample** : Automatically detects the number of sequences of the smallest sample, and selects this number for all other samples.
114 - **Select number of sequences** : Manually select a number of sequences.
115
116 With this number, a random draw of sequences is made and once normalisation is complete, each sample will contain the specified number of sequences.
117
118 .. class:: warningmark
119
120 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.
121
122 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).
123
124 .. class:: h3
125
126 Outputs
127
128 **Sequence file** (normalised_seed.fasta):
129
130 The normalised sequence file (format `FASTA &lt;https://en.wikipedia.org/wiki/FASTA_format&gt;`_).
131
132 **Abundance file** (normalised_abundance.biom):
133
134 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;`_).
135
136 **Report file** (report.html):
137
138 Information about discarded data (format `HTML &lt;https://en.wikipedia.org/wiki/HTML&gt;`_).
139
140
141 .. class:: infomark page-header h2
142
143
144 @HELP_CONTACT@
145
146 </help>
147 <expand macro="citations" />
148 </tool>