Mercurial > repos > frogs > frogs_core
comparison affiliation_postprocess_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="@AFFILIATION_POSTPROCESS_CMD_LINE@"> | |
| 4 affiliation_postprocess.py | |
| 5 --input-biom '$input_biom' | |
| 6 --input-fasta '$input_fasta' | |
| 7 | |
| 8 #if $is_HVL.HVL_amplicon == "Yes" | |
| 9 --reference '$is_HVL.reference.fields.path' | |
| 10 #end if | |
| 11 | |
| 12 --identity $identity | |
| 13 --coverage $coverage | |
| 14 | |
| 15 --output-biom '$output_biom' | |
| 16 --output-fasta '$output_fasta' | |
| 17 --output-compo '$output_asv_compo' | |
| 18 </token> | |
| 19 | |
| 20 <xml name="affiliation_postprocess_inputs"> | |
| 21 <!-- Files --> | |
| 22 <param argument="--input-fasta" type="data" format="fasta" label="Sequence file (.fasta)" help="The sequence file to filter." /> | |
| 23 <param argument="--input-biom" type="data" format="biom1" label="Abundance file (.biom)" help="The abundance file to filter." /> | |
| 24 | |
| 25 <!-- Parameters --> | |
| 26 <conditional name="is_HVL"> | |
| 27 <param name="HVL_amplicon" type="select" display="radio" label="Is this an amplicon hyper variable in length?" help="Multi-affiliation tag may be resolved by selecting the shortest amplicon reference. For this, you need the reference fasta file of your target amplicon."> | |
| 28 <option value="No">No</option> | |
| 29 <option value="Yes" >Yes</option> | |
| 30 </param> | |
| 31 <when value="Yes"> | |
| 32 <param argument="--reference" type="select" label="Using reference database" help="Select reference from the list"> | |
| 33 <options from_data_table="frogs_HVL_db"/> | |
| 34 <validator type="no_options" message="A built-in database is not available"/> | |
| 35 </param> | |
| 36 </when> | |
| 37 <when value="No"/> | |
| 38 </conditional> | |
| 39 <param argument="--identity" type="float" min="0.0" max="100.0" value="99.0" label="Minimum identity for aggregation" help="ASVs will be aggregated if they share the same taxonomy with at least X% identity"/> | |
| 40 <param argument="--coverage" type="float" min="0.0" max="100.0" value="99.0" label="Minimum coverage for aggregation" help="ASVs will be aggregated if they share the same taxonomy with at least X% alignment coverage"/> | |
| 41 </xml> | |
| 42 | |
| 43 <!-- Test --> | |
| 44 <xml name="affiliation_postprocess_test_input"> | |
| 45 <param name="input_fasta" value="references/04-filters.fasta" /> | |
| 46 <param name="input_biom" value="references/06-affiliation.biom" /> | |
| 47 | |
| 48 <conditional name="is_HVL"> | |
| 49 <param name="HVL_amplicon" value="Yes" /> | |
| 50 <param name="reference" value="Unite_extract_ITS1_test" /> | |
| 51 </conditional> | |
| 52 </xml> | |
| 53 | |
| 54 <xml name="affiliation_postprocess_test_output"> | |
| 55 <!-- Diff size instead of line because biom include date --> | |
| 56 <output name="output_biom" file="references/08-affiliation_postprocessed.biom" compare="sim_size" delta="0" /> | |
| 57 <output name="output_fasta" file="references/08-affiliation_postprocessed.fasta" compare="diff" lines_diff="0" /> | |
| 58 <output name="output_asv_compo" file="references/08-affiliation_postprocessed.compo.tsv" compare="diff" lines_diff="0" /> | |
| 59 </xml> | |
| 60 </macros> |
