Mercurial > repos > frogs > frogs_core
comparison normalisation_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 | 31abf44b6599 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:cd7675c5b15a |
|---|---|
| 1 <?xml version="1.0"?> | |
| 2 <macros> | |
| 3 <token name="@NORMALISATION_CMD_LINE@"> | |
| 4 normalisation.py | |
| 5 --input-biom '$input_biom' | |
| 6 --input-fasta '$input_fasta' | |
| 7 | |
| 8 #if $sampling_method.sampling_by_min == "yes" | |
| 9 --sampling-by-min | |
| 10 #else | |
| 11 --num-reads $sampling_method.num_reads | |
| 12 | |
| 13 #if $sampling_method.delete_samples == "true" | |
| 14 --delete-samples | |
| 15 #end if | |
| 16 #end if | |
| 17 | |
| 18 --output-biom '$output_biom' | |
| 19 --output-fasta '$output_fasta' | |
| 20 --html '$html' | |
| 21 </token> | |
| 22 | |
| 23 <xml name="normalisation_inputs"> | |
| 24 <!-- Files --> | |
| 25 <param argument="--input-fasta" type="data" format="fasta" label="Sequence file (.fasta)" help="The sequence file to normalise." /> | |
| 26 <param argument="--input-biom" type="data" format="biom1" label="Abundance file (.biom)" help="The abundance file to normalise." /> | |
| 27 | |
| 28 <!-- Parameters --> | |
| 29 <conditional name="sampling_method"> | |
| 30 <param name="sampling_by_min" type="select" label="Sampling method" help="Sample the total number of sequences per sample based on the number of sequences in the smallest sample (--sampling-by-min), or by defining a number of sequences manually (--num-reads)." display="radio"> | |
| 31 <option value="yes" selected="true">automatically, based on the number of sequences in the smallest sample </option> | |
| 32 <option value="no">manually, by setting the number of sequences</option> | |
| 33 </param> | |
| 34 <when value="yes"/> | |
| 35 <when value="no"> | |
| 36 <param name="num_reads" type="integer" min="1" value="" label="Number of reads" help="The final number of reads per sample." /> | |
| 37 <param argument="--delete-samples" type="select" label="Removal samples that have an initial number of reads below the number of reads to sample." display="radio"> | |
| 38 <option value="false">No, subsampling threshold need to at most equal to the smallest sample</option> | |
| 39 <option value="true">Yes, subsampling threshold may be greater than the smallest sample</option> | |
| 40 </param> | |
| 41 </when> | |
| 42 </conditional> | |
| 43 </xml> | |
| 44 | |
| 45 <!-- Test --> | |
| 46 <xml name="normalisation_test_input"> | |
| 47 <param name="input_fasta" value="references/08-affiliation_postprocessed.fasta" /> | |
| 48 <param name="input_biom" value="references/08-affiliation_postprocessed.biom" /> | |
| 49 | |
| 50 <conditional name="sampling_method"> | |
| 51 <param name="sampling_by_min" value="no" /> | |
| 52 <param name="num_reads" value="100" /> | |
| 53 <param name="delete_samples" value="true" /> | |
| 54 </conditional> | |
| 55 </xml> | |
| 56 | |
| 57 <xml name="normalisation_test_output"> | |
| 58 <!-- Because of random sampling results may slightly vary --> | |
| 59 <output name="output_fasta" file="references/09-normalisation.fasta" compare="diff" lines_diff="4" /> | |
| 60 <!-- Because of random sampling results may slightly vary --> | |
| 61 <output name="html" file="references/09-normalisation.html" compare="sim_size" delta="0" /> | |
| 62 <output name="html" file="references/09-normalisation.html" compare="diff" lines_diff="4" /> | |
| 63 </xml> | |
| 64 </macros> |
