Mercurial > repos > frogs > frogs_core
comparison processing_454_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_454_READS_CMD_LINE@"> | |
| 4 #set $sep = ' ' | |
| 5 | |
| 6 reads_processing.py 454 | |
| 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 --five-prim-primer '$five_prim_primer' | |
| 29 --three-prim-primer '$three_prim_primer' | |
| 30 | |
| 31 ## PROCESS TYPE | |
| 32 #if $process_type.process == "Preprocess only" | |
| 33 --process preprocess-only | |
| 34 #elif $process_type.process == "Clustering Swarm" | |
| 35 --process swarm | |
| 36 --distance $process_type.distance | |
| 37 #if $process_type.cluster_improvements.clustering_options != "no-refinement" | |
| 38 $process_type.cluster_improvements.clustering_options | |
| 39 #end if | |
| 40 #end if | |
| 41 | |
| 42 ## OUTPUTS | |
| 43 --output-biom $output_biom | |
| 44 --output-fasta $output_fasta | |
| 45 --html $html | |
| 46 #if $process_type.process == "Clustering Swarm" | |
| 47 --output-compo $output_cluster_compo | |
| 48 #end if | |
| 49 </token> | |
| 50 | |
| 51 <xml name="processing_454_reads_inputs"> | |
| 52 <!-- Files --> | |
| 53 <conditional name="input_files"> | |
| 54 <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 file each)."> | |
| 55 <option value="archive" selected="true">TAR Archive</option> | |
| 56 <option value="files_per_samples" >Files per samples</option> | |
| 57 </param> | |
| 58 <when value="archive"> | |
| 59 <param argument="--input-archive" type="data" format="tar,tgz" label="TAR archive file" help="The TAR file containing the 454 single-end reads (.fastq.gz) for each sample. Supported sequencers: ROCHE 454." /> | |
| 60 </when> | |
| 61 <when value="files_per_samples"> | |
| 62 <repeat name="samples" title="Samples" default="1" min="1"> | |
| 63 <param argument="--samples-names" type="text" label="Sample name" help="The sample name."> | |
| 64 <expand macro="restricted_sanitizer_validator"/> | |
| 65 </param> | |
| 66 <param argument="--input-R1" type="data" format="fastq" label="454 reads (.fastq.gz)" help="fastq file of 454 reads. Supported sequencers: ROCHE 454" /> | |
| 67 </repeat> | |
| 68 </when> | |
| 69 </conditional> | |
| 70 | |
| 71 <!-- Amplicons Parameters--> | |
| 72 <param argument="--min-amplicon-size" type="integer" value="" label="Minimum amplicon length" help="The minimum length of the amplicons (including primers)."/> | |
| 73 <param argument="--max-amplicon-size" type="integer" value="" label="Maximum amplicon length" help="The maximum length of the amplicons (including primers)."/> | |
| 74 | |
| 75 <!-- Primers --> | |
| 76 <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."> | |
| 77 <expand macro="only_letter_sanitizer_validator"/> | |
| 78 </param> | |
| 79 <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."> | |
| 80 <expand macro="only_letter_sanitizer_validator"/> | |
| 81 </param> | |
| 82 | |
| 83 <!-- Preprocessing only, clustering or denoising --> | |
| 84 <conditional name="process_type"> | |
| 85 <param argument="--process" type="select" display="radio" label="Process type" help="Select the type of process to perform"> | |
| 86 <option value="Preprocess only">Preprocessing only</option> | |
| 87 <option value="Clustering Swarm" selected="true">Preprocessing and clustering with Swarm</option> | |
| 88 </param> | |
| 89 <when value="Preprocess only"/> | |
| 90 <when value="Clustering Swarm"> | |
| 91 <param argument="--distance" type="integer" min="1" value="1" optional="false" label="Swarm distance threshold" help="Distance threshold used by Swarm for clustering."/> | |
| 92 <conditional name="cluster_improvements"> | |
| 93 <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."> | |
| 94 <option value="--fastidious" selected="true">With --distance = 1, refine clusters with Swarm --fastidious option (recommended since FROGS 3.2)</option> | |
| 95 <option value="--pre-clustering">With --distance > 1, perform a pre-clustering step with FROGS --pre-clustering option</option> | |
| 96 <option value="no-refinement">No clustering refinement</option> | |
| 97 </param> | |
| 98 <when value="--fastidious"/> | |
| 99 <when value="--pre-clustering"/> | |
| 100 <when value="no-refinement"/> | |
| 101 </conditional> | |
| 102 </when> | |
| 103 </conditional> | |
| 104 </xml> | |
| 105 | |
| 106 <!-- Test swarm --> | |
| 107 <xml name="swarm_processing_454_reads_test_input"> | |
| 108 <!-- Files --> | |
| 109 <conditional name="input_files"> | |
| 110 <param name="file_type" value="files_per_samples" /> | |
| 111 <repeat name="samples"> | |
| 112 <param name="samples_names" value="SRR443364_clipped" /> | |
| 113 <param name="input_R1" ftype="fastq" value="input/SRR443364_clipped.fastq.gz" /> | |
| 114 </repeat> | |
| 115 </conditional> | |
| 116 | |
| 117 <!-- Amplicons Parameters--> | |
| 118 <param name="min_amplicon_size" value="340"/> | |
| 119 <param name="max_amplicon_size" value="450"/> | |
| 120 | |
| 121 <!-- Primers --> | |
| 122 <param name="five_prim_primer" value="ACGGGAGGCAGCAG" /> | |
| 123 <param name="three_prim_primer" value="AGGATTAGATACCCTGGTA"/> | |
| 124 | |
| 125 <!-- Preprocessing only, clustering or denoising --> | |
| 126 <conditional name="process_type"> | |
| 127 <param name="process" value="Clustering Swarm" /> | |
| 128 <conditional name="cluster_improvements"> | |
| 129 <param name="clustering_options" value="no-refinement" /> | |
| 130 </conditional> | |
| 131 </conditional> | |
| 132 </xml> | |
| 133 | |
| 134 <xml name="swarm_processing_454_reads_test_output"> | |
| 135 <output name="output_biom" file="references/01-reads_processing-454-swarm.biom" compare="sim_size" delta="0" /> | |
| 136 <output name="output_fasta" file="references/01-reads_processing-454-swarm.fasta" compare="diff" lines_diff="0" /> | |
| 137 <output name="output_cluster_compo" file="references/01-reads_processing-454-swarm_compo.tsv" compare="diff" lines_diff="0" /> | |
| 138 <output name="html" file="references/01-reads_processing-454-swarm.html" compare="diff" lines_diff="0" /> | |
| 139 </xml> | |
| 140 </macros> |
