comparison processing_long_reads_macros.xml @ 0:cd7675c5b15a draft

planemo upload for repository https://github.com/geraldinepascal/FROGS-wrappers/ commit 78ca62b54aee22893d278d9c3d495527be405f8a
author frogs
date Wed, 04 Feb 2026 13:15:55 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cd7675c5b15a
1 <?xml version="1.0"?>
2 <macros>
3 <token name="@PROCESSING_LONG_READS_CMD_LINE@">
4 #set $sep = ' '
5
6 reads_processing.py longreads
7 @CPUS@
8
9 ## INPUTS
10 #if $input_files.file_type == "archive"
11 --input-archive '${input_files.input_archive}'
12 #else
13 --samples-names
14 #for $current in $input_files.samples
15 $sep'${current.samples_names.strip()}'
16 #end for
17 --input-R1
18 #for $current in $input_files.samples
19 $sep'${current.input_R1}'
20 #end for
21 #end if
22
23 ## AMPLICON PARAMETERS
24 --min-amplicon-size $min_amplicon_size
25 --max-amplicon-size $max_amplicon_size
26
27 ## PRIMERS
28 #if $is_primer_in_seq.primer_choice == "true"
29 --five-prim-primer '$is_primer_in_seq.five_prim_primer'
30 --three-prim-primer '$is_primer_in_seq.three_prim_primer'
31 #else
32 --without-primers
33 #end if
34
35 ## PROCESS TYPE
36 #if $process_type.process == "Preprocess only"
37 --process preprocess-only
38 #elif $process_type.process == "Clustering Swarm"
39 --process swarm
40 --distance $process_type.distance
41 #if $process_type.cluster_improvements.clustering_options != "no-refinement"
42 $process_type.cluster_improvements.clustering_options
43 #end if
44 #elif $process_type.process == "Denoising DADA2"
45 --process dada2
46 --sample-inference $process_type.sample_inference
47 #end if
48
49 ## OUTPUTS
50 --output-biom $output_biom
51 --output-fasta $output_fasta
52 --html $html
53 #if $process_type.process == "Clustering Swarm"
54 --output-compo $output_cluster_compo
55 #end if
56 </token>
57
58 <xml name="processing_long_reads_inputs">
59 <!-- Files -->
60 <conditional name="input_files">
61 <param name="file_type" type="select" label="Input type" help="Sample files can be provided either as a single TAR archive or as separate files per sample (one or two files each).">
62 <option value="archive" selected="true">TAR Archive</option>
63 <option value="files_per_samples" >Files per samples</option>
64 </param>
65 <when value="archive">
66 <param argument="--input-archive" type="data" format="tar,tgz" label="TAR archive file" help="The TAR file containing the long reads (.fastq.gz) for each sample. Supported sequencers: PacBio and Oxford Nanopore." />
67 </when>
68 <when value="files_per_samples">
69 <repeat name="samples" title="Samples" default="1" min="1">
70 <param argument="--samples-names" type="text" label="Sample name" help="The sample name.">
71 <expand macro="restricted_sanitizer_validator"/>
72 </param>
73 <param argument="--input-R1" type="data" format="fastq" label="Long reads (.fastq.gz)" help="fastq file of long reads. Supported sequencers: PACBIO and ONT." />
74 </repeat>
75 </when>
76 </conditional>
77
78 <!-- Amplicons Parameters-->
79 <param argument="--min-amplicon-size" type="integer" value="" label="Minimum amplicon length" help="The minimum length of the amplicons (including primers)"/>
80 <param argument="--max-amplicon-size" type="integer" value="" label="Maximum amplicon length" help="The maximum length of the amplicons (including primers)"/>
81
82 <!-- Primers -->
83 <conditional name="is_primer_in_seq">
84 <param name="primer_choice" type="select" display="radio" label="Do the sequences include PCR primers?" help="Indicate whether the sequences still include PCR primers. Select “Yes” if primers are present, “No” if they have already been removed." >
85 <option value="true" selected="true">Yes</option>
86 <option value="false">No</option>
87 </param>
88 <when value="true">
89 <param argument="--five-prim-primer" type="text" label="5' primer" help="Enter the 5' primer sequence. Wildcards are allowed. The sequence must be provided in 5' → 3' orientation.">
90 <expand macro="only_letter_sanitizer_validator"/>
91 </param>
92 <param argument="--three-prim-primer" type="text" label="3' primer" help="Enter the 3' primer sequence. Wildcards are allowed. The sequence must be provided in 5' → 3' orientation.">
93 <expand macro="only_letter_sanitizer_validator"/>
94 </param>
95 </when>
96 <when value="false"/>
97 </conditional>
98
99 <!-- Preprocessing only, clustering or denoising -->
100 <conditional name="process_type">
101 <param argument="--process" type="select" display="radio" label="Process type" help="Select the type of process to run">
102 <option value="Preprocess only">Preprocessing only</option>
103 <option value="Clustering Swarm" selected="true">Preprocessing and clustering with Swarm</option>
104 <option value="Denoising DADA2">Preprocessing and denoising with DADA2. /!\ Only Pacbio sequencers are currently supported /!\.</option>
105 </param>
106 <when value="Preprocess only"/>
107 <when value="Clustering Swarm">
108 <param argument="--distance" type="integer" min="1" value="1" optional="false" label="Swarm distance threshold" help="Distance threshold used by Swarm for clustering."/>
109 <conditional name="cluster_improvements">
110 <param name="clustering_options" type="select" display="radio" label="Clustering refinement" help="(i) With --distance = 1, use the Swarm --fastidious option to refine clustering (recommended since FROGS 3.2). (ii) With --distance > 1, enable pre-clustering to reduce redundancy before final clustering step. (iii) Select this option to apply neither refinement nor pre-clustering.">
111 <option value="--fastidious" selected="true">With --distance = 1, refine clusters with Swarm --fastidious option (recommended since FROGS 3.2)</option>
112 <option value="--pre-clustering">With --distance > 1, perform a pre-clustering step with FROGS --pre-clustering option</option>
113 <option value="no-refinement">No clustering refinement</option>
114 </param>
115 <when value="--fastidious"/>
116 <when value="--pre-clustering"/>
117 <when value="no-refinement"/>
118 </conditional>
119 </when>
120 <when value="Denoising DADA2">
121 <param argument="--sample-inference" type="select" display="radio" label="DADA2 pooling method" help="Choose how to consider sample prior to sample inferance">
122 <option value="pseudo-pooling" selected="true">Pseudo pooling, samples will be pseudo-pooled prior to sample inference.</option>
123 <option value="independent">Independent, sample inference will be performed on each sample individually.</option>
124 <option value="pooling">Full pooling, all samples will be pooled together prior to sample inference.</option>
125 </param>
126 </when>
127 </conditional>
128 </xml>
129
130 <!-- Test swarm -->
131 <xml name="swarm_processing_long_reads_test_input">
132 <!-- Files -->
133 <conditional name="input_files">
134 <param name="file_type" value="archive" />
135 <param name="input_archive" ftype="tgz" value="input/LongReads.tar.gz" />
136 </conditional>
137
138 <!-- Amplicons Parameters-->
139 <param name="min_amplicon_size" value="400"/>
140 <param name="max_amplicon_size" value="3000"/>
141
142 <!-- Primers -->
143 <conditional name="is_primer_in_seq">
144 <param name="primer_choice" value="true" />
145 <param name="five_prim_primer" value="AGRGTTYGATYMTGGCTCAG" />
146 <param name="three_prim_primer" value="AAGTCGTAACAAGGTARCY"/>
147 </conditional>
148
149 <!-- Preprocessing only, clustering or denoising -->
150 <conditional name="process_type">
151 <param name="process" value="Clustering Swarm" />
152 <conditional name="cluster_improvements">
153 <param name="clustering_options" value="no-refinement" />
154 </conditional>
155 </conditional>
156 </xml>
157
158 <xml name="swarm_processing_long_reads_test_output">
159 <output name="output_biom" file="references/01-reads_processing-long-swarm.biom" compare="sim_size" delta="0" />
160 <output name="output_fasta" file="references/01-reads_processing-long-swarm.fasta" compare="diff" lines_diff="0" />
161 <output name="output_cluster_compo" file="references/01-reads_processing-long-swarm_compo.tsv" compare="diff" lines_diff="0" />
162 <output name="html" file="references/01-reads_processing-long-swarm.html" compare="diff" lines_diff="0" />
163 </xml>
164
165 <!-- Test dada2 -->
166 <xml name="dada2_processing_long_reads_test_input">
167 <!-- Files -->
168 <conditional name="input_files">
169 <param name="file_type" value="archive" />
170 <param name="input_archive" ftype="tgz" value="input/LongReads.tar.gz" />
171 </conditional>
172
173 <!-- Amplicons Parameters-->
174 <param name="min_amplicon_size" value="400"/>
175 <param name="max_amplicon_size" value="3000"/>
176
177 <!-- Primers -->
178 <conditional name="is_primer_in_seq">
179 <param name="primer_choice" value="true" />
180 <param name="five_prim_primer" value="AGRGTTYGATYMTGGCTCAG" />
181 <param name="three_prim_primer" value="AAGTCGTAACAAGGTARCY"/>
182 </conditional>
183
184 <!-- Preprocessing only, clustering or denoising -->
185 <conditional name="process_type">
186 <param name="process" value="Denoising DADA2" />
187 </conditional>
188 </xml>
189
190 <xml name="dada2_processing_long_reads_test_output">
191 <output name="output_biom" file="references/01-reads_processing-long-dada2.biom" compare="sim_size" delta="0" />
192 <output name="output_fasta" file="references/01-reads_processing-long-dada2.fasta" compare="diff" lines_diff="0" />
193 <output name="html" file="references/01-reads_processing-long-dada2.html" compare="diff" lines_diff="0" />
194 </xml>
195 </macros>